|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.evolvica.engine.DefaultAlgorithmRunner
Default implementation of an algorithm runner. This runner executes an algorithm inside a single thread.
Field Summary | |
protected java.util.LinkedList |
activeQueue
Queue with active elements. |
protected IAlgorithm |
algorithm
The algorithm to be executed. |
protected java.lang.Thread |
algorithmThread
Algorithm thread. |
protected java.util.HashSet |
operatorSet
Set containing the operators of the algorithm. |
protected java.util.HashSet |
sinkSet
Set containing the sinks of the algorithm. |
protected java.util.HashSet |
sourceSet
Set containing the sources of the algorithm. |
Constructor Summary | |
DefaultAlgorithmRunner()
|
Method Summary | |
void |
resume()
Resumes a stopped algorithm. |
void |
run()
Runs the algorithm. |
protected void |
setupActiveQueue()
Sets up the queue. |
void |
start(IAlgorithm algorithm)
Executes the given algorithm |
void |
stop()
Stops the currently running algorithm. |
protected void |
traverseElements()
Traverses active elements and activates them. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IAlgorithm algorithm
protected java.lang.Thread algorithmThread
protected java.util.HashSet sourceSet
protected java.util.HashSet operatorSet
protected java.util.HashSet sinkSet
protected java.util.LinkedList activeQueue
Constructor Detail |
public DefaultAlgorithmRunner()
Method Detail |
public void run()
run
in interface java.lang.Runnable
public void start(IAlgorithm algorithm)
IRunner
start
in interface IRunner
algorithm
- algorithm to be executedIRunner.start(org.evolvica.engine.IAlgorithm)
public void stop()
IRunner
stop
in interface IRunner
IRunner.stop()
public void resume()
IRunner
resume
in interface IRunner
IRunner.resume()
protected void setupActiveQueue()
protected void traverseElements()
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |