org.jscience.util
Interface Steppable

All Known Subinterfaces:
Pathfinder
All Known Implementing Classes:
AStarPathfinder, CellularAutomata, CellularAutomataLayered, Flock, KohonenTrainer, NeuralNetworkTrainer, TuringMachine

public interface Steppable

This interface is used to provide a simple way of providing classes with a standardized structure for time-steppable classes. A standard initialization routine is also provided.


Method Summary
 void doStep()
          Move the class forward one time-step.
 void init()
          A standard initialization function.
 void reset()
          Reset the object.
 

Method Detail

init

void init()
A standard initialization function. This should be assumed to be a recurrable initialization procedure. Any one-off initializations should be done in the constructor.


doStep

void doStep()
Move the class forward one time-step.


reset

void reset()
Reset the object. reset can often be substituted for another call to init.