cz.cuni.amis.pogamut.ut2004.navigation.evaluator
Class ServerRunner

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

public class ServerRunner
extends Object

Server runner for evaluation. Capable of multiple concurrent evaluations.

Author:
Bogo

Field Summary
static boolean isLab
           
 
Constructor Summary
ServerRunner()
          Constructor.
 
Method Summary
static boolean doCompress()
          Indicates whether to compress evaluation results.
static boolean doDelete()
          Indicates whether to delete logs from evaluation results.
static String getExecutionDir()
          Gets current execution directory.
protected  File getFreeTask()
          Gets new task to evaluate.
static int getPathRecordsLimit()
          Gets limit of path records before restart of the server.
static String getRecordsPath()
          Gets the path for records.
 List<File> getTasks()
          Gets list of tasks.
static String getUnrealHome()
          Gets UT2004 home directory.
 void initTasks(String[] args)
          Initializes a list of IEvaluationTask represented in XML by XSTream serialization.
static void main(String[] args)
          Main method for ServerRunner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isLab

public static final boolean isLab
See Also:
Constant Field Values
Constructor Detail

ServerRunner

public ServerRunner()
Constructor.

Method Detail

doCompress

public static boolean doCompress()
Indicates whether to compress evaluation results.

Returns:
Whether to compress evaluation results.

doDelete

public static boolean doDelete()
Indicates whether to delete logs from evaluation results.

Returns:
Whether to delete logs from evaluation results.

getExecutionDir

public static String getExecutionDir()
Gets current execution directory.

Returns:
the executionDir

getUnrealHome

public static String getUnrealHome()
Gets UT2004 home directory.

Returns:
the unrealHome

getRecordsPath

public static String getRecordsPath()
Gets the path for records.

Returns:
the recordsPath

getPathRecordsLimit

public static int getPathRecordsLimit()
Gets limit of path records before restart of the server.

Returns:
limit of path records before restart of the server

initTasks

public void initTasks(String[] args)
Initializes a list of IEvaluationTask represented in XML by XSTream serialization. Uses passed directory or current of omitted.

Parameters:
args -

main

public static void main(String[] args)
Main method for ServerRunner. Evaluates task from given directory.

Parameters:
args -
Throws:
cz.cuni.amis.utils.exception.PogamutException

getFreeTask

protected File getFreeTask()
Gets new task to evaluate.

Returns:

getTasks

public List<File> getTasks()
Gets list of tasks.

Returns:


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