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

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

public class EvaluationTaskFactory
extends Object

Factory for de/serializing of the evaluation tasks. Wraps XStream usage.

Author:
Bogo

Constructor Summary
EvaluationTaskFactory()
           
 
Method Summary
static IEvaluationTask build(File freeTask)
          De-serializes task from given File.
static IEvaluationTask build(String[] args)
          De-serializes task from file passed in arguments.
static void toArgs(IEvaluationTask task, ArrayList<String> command)
          Deprecated. 
static void toXml(IEvaluationTask task, String directory)
          Serializes task to XML file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvaluationTaskFactory

public EvaluationTaskFactory()
Method Detail

build

public static IEvaluationTask build(String[] args)
De-serializes task from file passed in arguments. Deprecated option of passing parameters directly in arguments.

Parameters:
args -
Returns:

toArgs

@Deprecated
public static void toArgs(IEvaluationTask task,
                                     ArrayList<String> command)
Deprecated. 


toXml

public static void toXml(IEvaluationTask task,
                         String directory)
Serializes task to XML file.

Parameters:
task -
directory -

build

public static IEvaluationTask build(File freeTask)
De-serializes task from given File.

Parameters:
freeTask -
Returns:


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