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

Package class diagram package NavigationEvaluationTask
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.navigation.evaluator.task.EvaluationTask<BotNavigationParameters,NavigationEvaluatingBot>
      extended by cz.cuni.amis.pogamut.ut2004.navigation.evaluator.task.NavigationEvaluationTask
All Implemented Interfaces:
IEvaluationTask<BotNavigationParameters,NavigationEvaluatingBot>, INavigationEvaluationTask
Direct Known Subclasses:
NavigationEvaluationRepeatTask

public class NavigationEvaluationTask
extends EvaluationTask<BotNavigationParameters,NavigationEvaluatingBot>
implements INavigationEvaluationTask

Evaluation task. Consists of map to evaluate and parameters of navigation.

Author:
Bogo

Constructor Summary
NavigationEvaluationTask()
          Deprecated. 
NavigationEvaluationTask(String navigation, String pathPlanner, String mapName, boolean onlyRelevantPaths, int limit, String resultBasePath, RecordType recordType, Level level)
          Default constructor.
NavigationEvaluationTask(String navigation, String pathPlanner, String mapName, boolean onlyRelevantPaths, String resultPath)
          Deprecated. 
 
Method Summary
static NavigationEvaluationTask buildFromArgs(String[] args)
          Deprecated. 
 BotNavigationParameters getBotParams()
          Creates BotNavigationParameters from this task.
 String getFileName()
          File of the task.
 int getLimit()
          Get limit of evaluated paths.
 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()
          Get navigation for evaluation.
 String getPathPlanner()
          Get path planner for evaluation.
 RecordType getRecordType()
          Get type of records to create.
 String getResultBasePath()
           
 String getResultPath()
          Get path where results will be stored.
 boolean isOnlyRelevantPaths()
          Whether to evaluate relevant paths only.
 void setLimit(int limit)
          Set limit of evaluated paths.
 void setMapName(String mapName)
          Set map for evaluation.
 void setNavigation(String navigation)
          Set navigation for evaluation.
 void setOnlyRelevantPaths(boolean onlyRelevantPaths)
          Set if evaluate only relevant paths.
 void setPathPlanner(String pathPlanner)
          Set path planner.
 void setResultBasePath(String basePath)
           
 void setResultPath(String resultPath)
          Set path for storing results.
 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

NavigationEvaluationTask

public NavigationEvaluationTask(String navigation,
                                String pathPlanner,
                                String mapName,
                                boolean onlyRelevantPaths,
                                int limit,
                                String resultBasePath,
                                RecordType recordType,
                                Level level)
Default constructor.

Parameters:
navigation -
pathPlanner -
mapName -
onlyRelevantPaths -
limit -
resultBasePath -
recordType -
level -

NavigationEvaluationTask

@Deprecated
public NavigationEvaluationTask(String navigation,
                                           String pathPlanner,
                                           String mapName,
                                           boolean onlyRelevantPaths,
                                           String resultPath)
Deprecated. 


NavigationEvaluationTask

@Deprecated
public NavigationEvaluationTask()
Deprecated. 

Method Detail

buildFromArgs

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

Creates task from command line arguments.

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

getBotParams

public BotNavigationParameters getBotParams()
Creates BotNavigationParameters from this task.

Specified by:
getBotParams in interface IEvaluationTask<BotNavigationParameters,NavigationEvaluatingBot>
Returns:
BotNavigationParameters's representation of this task.

getMapName

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

Specified by:
getMapName in interface IEvaluationTask<BotNavigationParameters,NavigationEvaluatingBot>
Returns:

setMapName

public void setMapName(String mapName)
Set map for evaluation.

Parameters:
mapName -

isOnlyRelevantPaths

public boolean isOnlyRelevantPaths()
Description copied from interface: INavigationEvaluationTask
Whether to evaluate relevant paths only.

Specified by:
isOnlyRelevantPaths in interface INavigationEvaluationTask
Returns:

getNavigation

public String getNavigation()
Description copied from interface: INavigationEvaluationTask
Get navigation for evaluation.

Specified by:
getNavigation in interface INavigationEvaluationTask
Returns:

getPathPlanner

public String getPathPlanner()
Description copied from interface: INavigationEvaluationTask
Get path planner for evaluation.

Specified by:
getPathPlanner in interface INavigationEvaluationTask
Returns:

getResultPath

public String getResultPath()
Description copied from interface: INavigationEvaluationTask
Get path where results will be stored.

Specified by:
getResultPath in interface IEvaluationTask<BotNavigationParameters,NavigationEvaluatingBot>
Specified by:
getResultPath in interface INavigationEvaluationTask
Returns:

getResultBasePath

public String getResultBasePath()

getLimit

public int getLimit()
Description copied from interface: INavigationEvaluationTask
Get limit of evaluated paths.

Specified by:
getLimit in interface INavigationEvaluationTask
Returns:

getLogPath

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

Specified by:
getLogPath in interface IEvaluationTask<BotNavigationParameters,NavigationEvaluatingBot>
Returns:

setNavigation

public void setNavigation(String navigation)
Description copied from interface: INavigationEvaluationTask
Set navigation for evaluation.

Specified by:
setNavigation in interface INavigationEvaluationTask

setPathPlanner

public void setPathPlanner(String pathPlanner)
Description copied from interface: INavigationEvaluationTask
Set path planner.

Specified by:
setPathPlanner in interface INavigationEvaluationTask

setOnlyRelevantPaths

public void setOnlyRelevantPaths(boolean onlyRelevantPaths)
Description copied from interface: INavigationEvaluationTask
Set if evaluate only relevant paths.

Specified by:
setOnlyRelevantPaths in interface INavigationEvaluationTask

setResultPath

public void setResultPath(String resultPath)
Description copied from interface: INavigationEvaluationTask
Set path for storing results.

Specified by:
setResultPath in interface INavigationEvaluationTask

setLimit

public void setLimit(int limit)
Description copied from interface: INavigationEvaluationTask
Set limit of evaluated paths.

Specified by:
setLimit in interface INavigationEvaluationTask

getRecordType

public RecordType getRecordType()
Description copied from interface: INavigationEvaluationTask
Get type of records to create.

Specified by:
getRecordType in interface INavigationEvaluationTask
Returns:

toArgs

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

Push task as command line arguments.

Parameters:
command - Arguments list to fill.

getFileName

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

Specified by:
getFileName in interface IEvaluationTask<BotNavigationParameters,NavigationEvaluatingBot>
Returns:

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<BotNavigationParameters,NavigationEvaluatingBot>
Returns:
Level of log to store

setResultBasePath

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


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