|
Evolvica Core API Version 0.6.3 Last Modified: July 20 2004 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.evolvica.engine.AbstractOperator
org.evolvica.core.common.AbstractGeneticOperator
org.evolvica.core.common.AbstractRouter
org.evolvica.core.terminate.ConditionalRouter
Conditional router. A conditional router sends the incoming individual set to its output 0 if an underlying condition is false and to its output 1 if the condition is true.
| Field Summary | |
protected ICondition |
condition
Underlying condition. |
| Fields inherited from class org.evolvica.core.common.AbstractRouter |
output |
| Fields inherited from class org.evolvica.engine.AbstractOperator |
descriptor, element, id, name |
| Constructor Summary | |
ConditionalRouter()
Constructor. |
|
ConditionalRouter(ICondition condition)
Constructor with condition. |
|
| Method Summary | |
ICondition |
getCondition()
Returns the condition. |
int |
route(IIndividualSet input)
Calculates the output to which the individual set should be routed. |
void |
setCondition(ICondition condition)
Sets the condition. |
| Methods inherited from class org.evolvica.core.common.AbstractRouter |
fork |
| Methods inherited from class org.evolvica.engine.AbstractOperator |
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.evolvica.engine.IOperator |
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName |
| Field Detail |
protected ICondition condition
| Constructor Detail |
public ConditionalRouter()
public ConditionalRouter(ICondition condition)
condition - condition for this router| Method Detail |
public int route(IIndividualSet input)
AbstractRouter
route in class AbstractRouterinput - the individual set that should be routed
AbstractRouter.route(org.evolvica.core.IIndividualSet)public ICondition getCondition()
public void setCondition(ICondition condition)
condition - The condition to set
|
Evolvica Core API Version 0.6.3 Last Modified: July 20 2004 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||