wodka.batch
Class BatchRunner
java.lang.Object
wodka.batch.BatchRunner
- All Implemented Interfaces:
- ExceptionHandler, java.io.Serializable, StreamPersistable
- public class BatchRunner
- extends java.lang.Object
- implements ExceptionHandler, StreamPersistable
Runs a serie of genetic algorithms as a batch job.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_ASAVE_FILE
public static final java.lang.String PROP_ASAVE_FILE
- See Also:
- Constant Field Values
PROP_ASAVE_INTER
public static final java.lang.String PROP_ASAVE_INTER
- See Also:
- Constant Field Values
PROP_TERRAIN_MANAGER
public static final java.lang.String PROP_TERRAIN_MANAGER
- See Also:
- Constant Field Values
PROP_PREFIX
public static final java.lang.String PROP_PREFIX
- See Also:
- Constant Field Values
BatchRunner
public BatchRunner()
save
public void save(GeneticAlgorithm genAlgo,
java.lang.String fileName)
throws java.io.IOException
- Throws:
java.io.IOException
fromStream
public void fromStream(java.io.DataInputStream inStream,
int version)
throws java.io.IOException
- Specified by:
fromStream
in interface StreamPersistable
- Throws:
java.io.IOException
getVersion
public int getVersion()
- Specified by:
getVersion
in interface StreamPersistable
toStream
public void toStream(java.io.DataOutputStream outStream)
throws java.io.IOException
- Specified by:
toStream
in interface StreamPersistable
- Throws:
java.io.IOException
handleThrowable
public void handleThrowable(java.lang.Throwable throwable)
- Specified by:
handleThrowable
in interface ExceptionHandler
getAlgoCount
public int getAlgoCount()
setAlgoCount
public void setAlgoCount(int algoCount)
getGenCount
public int getGenCount()
setGenCount
public void setGenCount(int genCount)
getAlgo
public GeneticAlgorithm getAlgo()
setAlgo
public void setAlgo(GeneticAlgorithm algo)
getRunId
public long getRunId()
setRunId
public void setRunId(long identifier)
main
public static void main(java.lang.String[] args)