public class EvaluationResult extends Object
| Constructor and Description |
|---|
EvaluationResult(int total,
String map,
cz.cuni.amis.pogamut.base.utils.logging.LogCategory log,
String resultPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(Path path,
PathResult.ResultType type,
long duration)
Adds result for single path.
|
void |
addResult(Path path,
PathResult.ResultType type,
long duration,
cz.cuni.amis.pogamut.base3d.worldview.object.Location location,
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint nearestNavPoint)
Adds result for single path.
|
void |
export(boolean append)
Export complete statistics about evaluation.
|
void |
exportAggregate()
Exports aggregate statistics about evaluation.
|
String |
getLogFile() |
int |
getProcessedCount()
Number of processed paths.
|
int |
getTotalPaths()
Total number of paths for evaluation.
|
boolean |
hasFailedResult()
If the evaluation contains failed paths.
|
boolean |
isInitialized() |
void |
loadFromFile(File resultFile,
int remaining) |
void |
setLog(cz.cuni.amis.pogamut.base.utils.logging.LogCategory log) |
void |
startRecording(cz.cuni.amis.pogamut.base.communication.command.IAct act)
Starts recording.
|
void |
startRecording(cz.cuni.amis.pogamut.base.communication.command.IAct act,
Path path)
Starts recording of path.
|
void |
stopRecording(cz.cuni.amis.pogamut.base.communication.command.IAct act,
boolean delete)
Stops recording.
|
void |
stopRecording(cz.cuni.amis.pogamut.base.communication.command.IAct act,
Path path,
boolean delete)
Stops recording of path.
|
public void addResult(Path path, PathResult.ResultType type, long duration)
path - Added path.type - Result of evaluation.duration - Duration of navigation.public void addResult(Path path, PathResult.ResultType type, long duration, cz.cuni.amis.pogamut.base3d.worldview.object.Location location, cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint nearestNavPoint)
path - Added path.type - Result of evaluation.duration - Duration of navigation.location - Current bot location. (Failed only)nearestNavPoint - Nearest NavPoint. (Failed only)public void exportAggregate()
public void export(boolean append)
append - Append or overwritepublic void startRecording(cz.cuni.amis.pogamut.base.communication.command.IAct act)
act - public void startRecording(cz.cuni.amis.pogamut.base.communication.command.IAct act,
Path path)
act - path - public void stopRecording(cz.cuni.amis.pogamut.base.communication.command.IAct act,
Path path,
boolean delete)
act - path - delete - public void stopRecording(cz.cuni.amis.pogamut.base.communication.command.IAct act,
boolean delete)
act - delete - public String getLogFile()
public boolean hasFailedResult()
public int getTotalPaths()
public int getProcessedCount()
public void setLog(cz.cuni.amis.pogamut.base.utils.logging.LogCategory log)
public boolean isInitialized()
public void loadFromFile(File resultFile, int remaining)
Copyright © 2018 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.