cz.cuni.amis.pogamut.ut2004.navigation.evaluator.data
Class EvaluationResult

Package class diagram package EvaluationResult
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.navigation.evaluator.data.EvaluationResult

public class EvaluationResult
extends Object

Result of evaluation of corresponding task.

Author:
Bogo

Constructor Summary
EvaluationResult(int total, String map, cz.cuni.amis.pogamut.base.utils.logging.LogCategory log, String resultPath)
           
 
Method Summary
 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, 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvaluationResult

public EvaluationResult(int total,
                        String map,
                        cz.cuni.amis.pogamut.base.utils.logging.LogCategory log,
                        String resultPath)
Method Detail

addResult

public void addResult(Path path,
                      PathResult.ResultType type,
                      long duration)
Adds result for single path.

Parameters:
path - Added path.
type - Result of evaluation.
duration - Duration of navigation.

addResult

public void addResult(Path path,
                      PathResult.ResultType type,
                      long duration,
                      cz.cuni.amis.pogamut.base3d.worldview.object.Location location,
                      NavPoint nearestNavPoint)
Adds result for single path.

Parameters:
path - Added path.
type - Result of evaluation.
duration - Duration of navigation.
location - Current bot location. (Failed only)
nearestNavPoint - Nearest NavPoint. (Failed only)

exportAggregate

public void exportAggregate()
Exports aggregate statistics about evaluation. TODO: Create unique files on request?


export

public void export(boolean append)
Export complete statistics about evaluation.

Parameters:
append - Append or overwrite

startRecording

public void startRecording(cz.cuni.amis.pogamut.base.communication.command.IAct act)
Starts recording.

Parameters:
act -

startRecording

public void startRecording(cz.cuni.amis.pogamut.base.communication.command.IAct act,
                           Path path)
Starts recording of path. Saves record to corresponding file.

Parameters:
act -
path -

stopRecording

public void stopRecording(cz.cuni.amis.pogamut.base.communication.command.IAct act,
                          Path path,
                          boolean delete)
Stops recording of path. Possibly deletes the record.

Parameters:
act -
path -
delete -

stopRecording

public void stopRecording(cz.cuni.amis.pogamut.base.communication.command.IAct act,
                          boolean delete)
Stops recording. Possibly deletes the record.

Parameters:
act -
delete -

getLogFile

public String getLogFile()

hasFailedResult

public boolean hasFailedResult()
If the evaluation contains failed paths.

Returns:

getTotalPaths

public int getTotalPaths()
Total number of paths for evaluation.

Returns:

getProcessedCount

public int getProcessedCount()
Number of processed paths.

Returns:

setLog

public void setLog(cz.cuni.amis.pogamut.base.utils.logging.LogCategory log)

isInitialized

public boolean isInitialized()

loadFromFile

public void loadFromFile(File resultFile,
                         int remaining)


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.