|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mss.ea.al.AbstractAlgorithm
Abstract base class for a multithreaded evolutionary algorithm.
Field Summary | |
protected MessageBroker |
broker
Message broker for passing messages to operators. |
protected AlgorithmChecker |
checker
Algrithm component checker. |
protected ResultExtractor |
extractor
Result extractor. |
protected FlowElementFactory |
factory
Factory for creating flow elements from genetic operators. |
protected Timer |
timer
Timer for measuring the run time of the algorithm. |
Constructor Summary | |
AbstractAlgorithm()
Constructor. |
Method Summary | |
protected void |
connect(FlowElement from,
FlowElement to)
Connects two flow elements. |
protected void |
connect(FlowElement from,
int outputSlot,
FlowElement to,
int inputSlot)
Connects two flow elements. |
protected void |
connect(GeneticOperator from,
GeneticOperator to)
Connects two genetic operators. |
protected void |
connect(GeneticOperator from,
GeneticOperator to,
int inputSlot)
Connects two genetic operators. |
protected void |
connect(GeneticOperator from,
int outputSlot,
GeneticOperator to)
Connects two genetic operators. |
protected void |
connect(GeneticOperator from,
int outputSlot,
GeneticOperator to,
int inputSlot)
Connects two genetic operators. |
void |
info()
Prints some information about the algorithm structure. |
protected void |
result()
Prints the results of the algorithm. |
void |
run()
Runs the algorithm. |
protected abstract void |
setup()
Method to perform the setup stage of the algorithm. |
void |
start(AbstractAlgorithm algorithm,
java.lang.String[] args)
Main method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected AlgorithmChecker checker
protected MessageBroker broker
protected FlowElementFactory factory
protected ResultExtractor extractor
protected Timer timer
Constructor Detail |
public AbstractAlgorithm()
Method Detail |
protected void connect(GeneticOperator from, GeneticOperator to)
from
- first operatorto
- second operatorprotected void connect(GeneticOperator from, GeneticOperator to, int inputSlot)
from
- first operatorto
- second operatorinputSlot
- slot of second operatorprotected void connect(GeneticOperator from, int outputSlot, GeneticOperator to)
from
- from operatoroutput
- slot of first operatorto
- second operatorprotected void connect(GeneticOperator from, int outputSlot, GeneticOperator to, int inputSlot)
from
- first operatoroutput
- output slot of the first operatorto
- second operatorinput
- input slot of the second operatorprotected void connect(FlowElement from, FlowElement to)
from
- first elementoutput
- output slot of the first elementto
- second elementinput
- input slot of the second elementprotected void connect(FlowElement from, int outputSlot, FlowElement to, int inputSlot)
from
- first elementoutput
- output slot of the first elementto
- second elementinput
- input slot of the second elementpublic void run()
protected abstract void setup()
protected void result()
public void info()
public void start(AbstractAlgorithm algorithm, java.lang.String[] args) throws java.lang.Exception
algorithm
- abstract algorithm object to runargs
- command line options
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |