Main
Class State

java.lang.Object
  extended by Main.State
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AbstractRun

public abstract class State
extends java.lang.Object
implements java.io.Serializable

State allows loading, saving, and setup of the algorithm's state.

See Also:
Serialized Form

Field Summary
protected  Algorithm algorithm
           
protected  RandomNumberGenerator rng
           
 
Constructor Summary
State()
           
 
Method Summary
abstract  void experiment(java.lang.String[] args)
           
 Algorithm getAlgorithm()
           
 void load(java.lang.String fileName)
          Load a State
 void save()
          Save the State
abstract  void setup(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

algorithm

protected Algorithm algorithm

rng

protected RandomNumberGenerator rng
Constructor Detail

State

public State()
Method Detail

setup

public abstract void setup(java.lang.String[] args)

experiment

public abstract void experiment(java.lang.String[] args)

getAlgorithm

public Algorithm getAlgorithm()

save

public void save()
Save the State


load

public void load(java.lang.String fileName)
Load a State

Parameters:
fileName - Name of file to load