wodka.batch
Class BatchRunner

java.lang.Object
  extended bywodka.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

Field Summary
static java.lang.String PROP_ASAVE_FILE
           
static java.lang.String PROP_ASAVE_INTER
           
static java.lang.String PROP_PREFIX
           
static java.lang.String PROP_TERRAIN_MANAGER
           
 
Constructor Summary
BatchRunner()
           
 
Method Summary
 void fromStream(java.io.DataInputStream inStream, int version)
           
 GeneticAlgorithm getAlgo()
           
 int getAlgoCount()
           
 int getGenCount()
           
 long getRunId()
           
 int getVersion()
           
 void handleThrowable(java.lang.Throwable throwable)
           
static void main(java.lang.String[] args)
           
 void save(GeneticAlgorithm genAlgo, java.lang.String fileName)
           
 void setAlgo(GeneticAlgorithm algo)
           
 void setAlgoCount(int algoCount)
           
 void setGenCount(int genCount)
           
 void setRunId(long identifier)
           
 void toStream(java.io.DataOutputStream outStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

BatchRunner

public BatchRunner()
Method Detail

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)