cz.cuni.amis.pogamut.ut2004.navigation.evaluator.task
Class MapPathsEvaluationTask

Package class diagram package MapPathsEvaluationTask
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.navigation.evaluator.task.EvaluationTask<MapPathsBotParameters,MapPathsBot>
      extended by cz.cuni.amis.pogamut.ut2004.navigation.evaluator.task.MapPathsEvaluationTask
All Implemented Interfaces:
IEvaluationTask<MapPathsBotParameters,MapPathsBot>

public class MapPathsEvaluationTask
extends EvaluationTask<MapPathsBotParameters,MapPathsBot>
implements IEvaluationTask<MapPathsBotParameters,MapPathsBot>

Task for evaluation of types of map paths.

Author:
Bogo

Nested Class Summary
static class MapPathsEvaluationTask.PathType
          Path types to count.
 
Constructor Summary
MapPathsEvaluationTask(String mapName, String navigation, String pathPlanner, String resultPath, MapPathsEvaluationTask.PathType pathType, boolean relevantOnly)
          Default constructor.
MapPathsEvaluationTask(String mapName, String navigation, String pathPlanner, String resultPath, MapPathsEvaluationTask.PathType pathType, boolean relevantOnly, int batchNumber)
          Constructor with explicit batch number.
 
Method Summary
static MapPathsEvaluationTask buildFromArgs(String[] args)
          Deprecated. 
 int getBatchNumber()
          Gets batch number.
 MapPathsBotParameters getBotParams()
          Bot parameters.
 String getFileName()
          File of the task.
 Level getLogLevel()
          Get level of log which should be stored in result.
 String getLogPath()
          Path where log will be stored.
 String getMapName()
          Map name where the evaluation will take place.
 String getNavigation()
           
 String getPathPlanner()
           
 MapPathsEvaluationTask.PathType getPathType()
           
 boolean getRelevantOnly()
           
 String getResultPath()
          Gets path where result data should be stored.
 boolean isBatchTask()
          Whether is part of explicitly numbered batch.
 void setResultBasePath(String basePath)
           
 void toArgs(List<String> command)
          Deprecated. 
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.navigation.evaluator.task.EvaluationTask
getBotClass, getBotParamsClass, getJarPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.ut2004.navigation.evaluator.task.IEvaluationTask
getBotClass, getBotParamsClass, getJarPath
 

Constructor Detail

MapPathsEvaluationTask

public MapPathsEvaluationTask(String mapName,
                              String navigation,
                              String pathPlanner,
                              String resultPath,
                              MapPathsEvaluationTask.PathType pathType,
                              boolean relevantOnly)
Default constructor.

Parameters:
mapName -
navigation -
pathPlanner -
resultPath -
pathType -
relevantOnly -

MapPathsEvaluationTask

public MapPathsEvaluationTask(String mapName,
                              String navigation,
                              String pathPlanner,
                              String resultPath,
                              MapPathsEvaluationTask.PathType pathType,
                              boolean relevantOnly,
                              int batchNumber)
Constructor with explicit batch number. Could be used to differentiate the results for further processing.

Parameters:
mapName -
navigation -
pathPlanner -
resultPath -
pathType -
relevantOnly -
batchNumber -
Method Detail

getMapName

public String getMapName()
Description copied from interface: IEvaluationTask
Map name where the evaluation will take place.

Specified by:
getMapName in interface IEvaluationTask<MapPathsBotParameters,MapPathsBot>
Returns:

getBotParams

public MapPathsBotParameters getBotParams()
Description copied from interface: IEvaluationTask
Bot parameters.

Specified by:
getBotParams in interface IEvaluationTask<MapPathsBotParameters,MapPathsBot>
Returns:

getNavigation

public String getNavigation()

getPathPlanner

public String getPathPlanner()

getResultPath

public String getResultPath()
Description copied from interface: IEvaluationTask
Gets path where result data should be stored.

Specified by:
getResultPath in interface IEvaluationTask<MapPathsBotParameters,MapPathsBot>
Returns:

getPathType

public MapPathsEvaluationTask.PathType getPathType()

getBatchNumber

public int getBatchNumber()
Gets batch number.

Returns:

isBatchTask

public boolean isBatchTask()
Whether is part of explicitly numbered batch.

Returns:

buildFromArgs

@Deprecated
public static MapPathsEvaluationTask buildFromArgs(String[] args)
Deprecated. 

Creates task from command line arguments.

Parameters:
args - Command line arguments.
Returns:
Task built from command line arguments.

toArgs

@Deprecated
public void toArgs(List<String> command)
Deprecated. 

Push task as command line arguments.

Parameters:
command - Arguments list to fill.

getLogPath

public String getLogPath()
Description copied from interface: IEvaluationTask
Path where log will be stored.

Specified by:
getLogPath in interface IEvaluationTask<MapPathsBotParameters,MapPathsBot>
Returns:

getFileName

public String getFileName()
Description copied from interface: IEvaluationTask
File of the task.

Specified by:
getFileName in interface IEvaluationTask<MapPathsBotParameters,MapPathsBot>
Returns:

getRelevantOnly

public boolean getRelevantOnly()

getLogLevel

public Level getLogLevel()
Description copied from interface: IEvaluationTask
Get level of log which should be stored in result.

Specified by:
getLogLevel in interface IEvaluationTask<MapPathsBotParameters,MapPathsBot>
Returns:
Level of log to store

setResultBasePath

public void setResultBasePath(String basePath)
Specified by:
setResultBasePath in interface IEvaluationTask<MapPathsBotParameters,MapPathsBot>


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