eaLib API Docs
Last Modified : January 7 2002

mss.ea.al
Class ConditionalThread

java.lang.Object
  |
  +--mss.ea.core.GeneticOperator
        |
        +--mss.ea.al.ThreadOperator
              |
              +--mss.ea.al.ConditionalThread
All Implemented Interfaces:
java.lang.Runnable

Deprecated. superceded by new thread communication model

public class ConditionalThread
extends ThreadOperator

Wrapper for stream processors with a single input/output depending on a condition.

Since:
0.1
Version:
$Revision: 1.8 $ $Date: 2001/11/12 17:19:20 $
Author:
Andreas Rummler

Field Summary
protected  java.util.LinkedList conditionList
          Deprecated. List of conditions.
protected  IndividualStream stream
          Deprecated. Processed individual stream.
protected  java.util.LinkedList streamConditionList
          Deprecated. List of stream conditions.
 
Fields inherited from class mss.ea.al.ThreadOperator
inputs, outputs, predecessorList, successorList, successorNotificationList, sync, terminate, thread
 
Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
ConditionalThread()
          Deprecated. Constructor.
ConditionalThread(Condition cond)
          Deprecated. Constructor with single condition.
ConditionalThread(StreamCondition cond)
          Deprecated. Constructor with stream condition.
 
Method Summary
 void addCondition(Condition cond)
          Deprecated. Adds a condition to the internal condition list.
 void addCondition(StreamCondition cond)
          Deprecated. Adds a stream condition to the internal condition list.
 void addStream(IndividualStream stream)
          Deprecated. Adds an individual stream to this operator.
protected  boolean checkCondition()
          Deprecated. Checks if the branch condition is true.
 IntegerCounter getCounter()
          Deprecated.  
 void operate()
          Deprecated.  
 void setConditionCounter(int value)
          Deprecated.  
 void setFalseSuccessor(ThreadOperator to)
          Deprecated. Sets a new false branch successor.
 void setTrueSuccessor(ThreadOperator to)
          Deprecated. Sets a new true branch successor.
 java.lang.String toString()
          Deprecated. Returns a string representation.
 
Methods inherited from class mss.ea.al.ThreadOperator
addPredecessor, addPredecessor, addSuccessor, addSuccessor, getInputs, getOutputs, getPredecessors, getSuccessors, getThread, hangup, isConnected, run, setController, setSync, setThread
 
Methods inherited from class mss.ea.core.GeneticOperator
getDescription, getID, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

conditionList

protected java.util.LinkedList conditionList
Deprecated. 
List of conditions.

streamConditionList

protected java.util.LinkedList streamConditionList
Deprecated. 
List of stream conditions.

stream

protected IndividualStream stream
Deprecated. 
Processed individual stream.
Constructor Detail

ConditionalThread

public ConditionalThread()
Deprecated. 
Constructor.

ConditionalThread

public ConditionalThread(Condition cond)
Deprecated. 
Constructor with single condition.
Parameters:
cond - condition

ConditionalThread

public ConditionalThread(StreamCondition cond)
Deprecated. 
Constructor with stream condition.
Parameters:
cond - stream condition
Method Detail

addStream

public void addStream(IndividualStream stream)
Deprecated. 
Adds an individual stream to this operator.
Overrides:
addStream in class ThreadOperator
Parameters:
stream - stream to add

operate

public void operate()
Deprecated. 
Overrides:
operate in class ThreadOperator

checkCondition

protected boolean checkCondition()
Deprecated. 
Checks if the branch condition is true. Every condition contained in the internal condition lists is checked. If one of the conditions returns true the stream is passed to the successor on the "true branch" otherwise it is passed to the "false branch".
Returns:
result of the condition check

addCondition

public void addCondition(Condition cond)
Deprecated. 
Adds a condition to the internal condition list.
Parameters:
cond - condition to add

addCondition

public void addCondition(StreamCondition cond)
Deprecated. 
Adds a stream condition to the internal condition list.
Parameters:
cond - stream condition to add

setTrueSuccessor

public void setTrueSuccessor(ThreadOperator to)
Deprecated. 
Sets a new true branch successor.
Parameters:
to - new true branch successor

setFalseSuccessor

public void setFalseSuccessor(ThreadOperator to)
Deprecated. 
Sets a new false branch successor.
Parameters:
to - new false branch successor

toString

public java.lang.String toString()
Deprecated. 
Returns a string representation.
Overrides:
toString in class GeneticOperator
Returns:
string representation

setConditionCounter

public void setConditionCounter(int value)
Deprecated. 

getCounter

public IntegerCounter getCounter()
Deprecated. 

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS