|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAlgorithm.AbstractAlgorithm
public abstract class AbstractAlgorithm
An Abstract algorithm class that should be useful for most algorithms. Contains two pipelines: One pipeline for initialization. One pipeline for looping.
Method Summary | |
---|---|
Pipeline |
getInitPipeline()
|
Pipeline |
getLoopPipeline()
|
abstract void |
init()
Initializing the algorithm |
abstract void |
run(int steps)
Run for the specified number of steps |
void |
setInitPipeline(Pipeline init)
|
void |
setLoopPipeline(Pipeline loop)
|
abstract void |
step()
Step the algorithm once |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public abstract void step()
Algorithm
step
in interface Algorithm
public abstract void init()
Algorithm
init
in interface Algorithm
public abstract void run(int steps)
Algorithm
run
in interface Algorithm
steps
- run for stepspublic void setLoopPipeline(Pipeline loop)
public Pipeline getLoopPipeline()
public void setInitPipeline(Pipeline init)
public Pipeline getInitPipeline()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |