|
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.core.GeneticOperator | +--mss.ea.al.ThreadOperator
Abstract base class for genetic operators with thread support. This class provides a generic interface for all classes that can be plugged into a multithreaded algorithm.
Field Summary | |
protected int |
inputs
Deprecated. Number of inputs of the operator. |
protected int |
outputs
Deprecated. Number of outputs of the operator. |
protected java.util.List |
predecessorList
Deprecated. List of predecessors of this operator. |
protected java.util.List |
successorList
Deprecated. List of successors of this operator. |
protected java.util.List |
successorNotificationList
Deprecated. List of successors of this operator that should be notified. |
protected ThreadSynchronization |
sync
Deprecated. |
protected boolean |
terminate
Deprecated. Flag if this operator should terminate it's work. |
protected java.lang.Thread |
thread
Deprecated. Thread this operator runs in. |
Fields inherited from class mss.ea.core.GeneticOperator |
description, ID, name |
Constructor Summary | |
ThreadOperator()
Deprecated. Constructor. |
|
ThreadOperator(int preSize,
int succSize)
Deprecated. Constructor with number of predecessors and successors. |
Method Summary | |
void |
addPredecessor(ThreadOperator to)
Deprecated. Adds a new predecessor to the end of the internal list of this operator. |
void |
addPredecessor(ThreadOperator to,
int inputSlot)
Deprecated. Adds a new predecessor to one of the slots in this operator. |
abstract void |
addStream(IndividualStream is)
Deprecated. Adds a stream to this operator. |
void |
addSuccessor(ThreadOperator to)
Deprecated. Adds a new successor to the internal list of this operator. |
void |
addSuccessor(ThreadOperator to,
int outputSlot)
Deprecated. Adds a new successor to one of the slots in this operator. |
int |
getInputs()
Deprecated. Gets the number of inputs of this operator. |
int |
getOutputs()
Deprecated. Gets the number of outputs of this operator. |
java.util.List |
getPredecessors()
Deprecated. |
java.util.List |
getSuccessors()
Deprecated. |
java.lang.Thread |
getThread()
Deprecated. Gets the thread this operator runs in. |
void |
hangup()
Deprecated. Sets the termination notification. |
boolean |
isConnected()
Deprecated. Returns the connection state of this operator. |
abstract void |
operate()
Deprecated. |
void |
run()
Deprecated. Runs this operator. |
void |
setController(ThreadController tc)
Deprecated. |
void |
setSync(ThreadSynchronization ts)
Deprecated. |
void |
setThread(java.lang.Thread t)
Deprecated. Sets the thread this operator runs in. |
Methods inherited from class mss.ea.core.GeneticOperator |
getDescription, getID, getName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.List predecessorList
protected java.util.List successorList
protected java.util.List successorNotificationList
protected java.lang.Thread thread
protected ThreadSynchronization sync
protected boolean terminate
protected int outputs
protected int inputs
Constructor Detail |
public ThreadOperator()
public ThreadOperator(int preSize, int succSize)
Method Detail |
public void run()
run
in interface java.lang.Runnable
public abstract void operate()
public abstract void addStream(IndividualStream is)
is
- individual stream to add to this operatorpublic void addPredecessor(ThreadOperator to)
to
- new predecessorpublic void addPredecessor(ThreadOperator to, int inputSlot)
to
- new predecessor to addinputSlot
- slot to add predecessor topublic void addSuccessor(ThreadOperator to)
to
- new successor to addpublic void addSuccessor(ThreadOperator to, int outputSlot)
to
- new successor to addoutputSlot
- output slot to add successor topublic java.util.List getPredecessors()
public java.util.List getSuccessors()
public boolean isConnected()
public int getInputs()
public int getOutputs()
public java.lang.Thread getThread()
public void setThread(java.lang.Thread t)
t
- thread this operator runs inpublic void setController(ThreadController tc)
public void setSync(ThreadSynchronization ts)
public void hangup()
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |