|
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.ConditionalRouter
Simple condition router. This class checks the given (stream) condition and routes the stream to output slot 0, if the condition is false and to slot 1 if the condition is true.
Fields inherited from class mss.ea.core.GeneticOperator |
description, ID, name |
Constructor Summary | |
ConditionalRouter(Condition c)
Constructor. |
|
ConditionalRouter(StreamCondition sc)
Constructor. |
Method Summary | |
int |
route(IndividualStream is)
Evaluates the condition and returns the appropriate slot to route the stream to. |
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 |
Constructor Detail |
public ConditionalRouter(Condition c)
c
- condition for evaluationpublic ConditionalRouter(StreamCondition sc)
sc
- stream condition for evaluationMethod Detail |
public int route(IndividualStream is)
route
in interface IndividualRouter
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |