|
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.core.terminate.CounterCondition
Termination after reaching a specified value of a counter. The break condition is fulfilled in case of (current value of counter >= maximal value of counter). Each time this condition is checked the internal counter is incremented by 1.
| Field Summary | |
protected int |
counter
Counter to use for break condition testing. |
protected int |
maxValue
Maximal value of the counter. |
| Constructor Summary | |
CounterCondition()
Constructor. |
|
CounterCondition(int maxValue)
Constructor. |
|
| Method Summary | |
int |
getMaxValue()
|
boolean |
isTrue(IIndividualSet set)
Test of the condition. |
void |
setMaxValue(int maxValue)
Sets the maxValue. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int maxValue
protected int counter
| Constructor Detail |
public CounterCondition()
public CounterCondition(int maxValue)
maxValue - maximal counter value| Method Detail |
public boolean isTrue(IIndividualSet set)
isTrue in interface IConditionset - individual set
public int getMaxValue()
public void setMaxValue(int maxValue)
maxValue - The maxValue 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 | ||||||||||