Main
Class State
java.lang.Object
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
Constructor Summary |
State()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
algorithm
protected Algorithm algorithm
rng
protected RandomNumberGenerator rng
State
public State()
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