|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.framework.CompoundStopCondition
public class CompoundStopCondition
This class represents a stop condition made by the combination of several stop conditions.
Nested Class Summary | |
---|---|
static class |
CompoundStopCondition.Type
Represents the type of the test applied. |
Constructor Summary | |
---|---|
CompoundStopCondition()
Creates a new CompoundStopCondition instance. |
|
CompoundStopCondition(CompoundStopCondition.Type type)
Creates a new CompoundStopCondition instance. |
Method Summary | |
---|---|
void |
add(StopCondition condition)
Adds the specified condition. |
boolean |
isReached(Environment environment)
Checks if the colony within the specified environment has reached this stop criteria. |
void |
remove(StopCondition condition)
Removes the specified condition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompoundStopCondition()
CompoundStopCondition
instance.
public CompoundStopCondition(CompoundStopCondition.Type type)
CompoundStopCondition
instance.
type
- the stoping criteria type.Method Detail |
---|
public void add(StopCondition condition)
condition
- the condition to add.public void remove(StopCondition condition)
condition
- the condition to remove.public boolean isReached(Environment environment)
StopCondition
isReached
in interface StopCondition
environment
- the colony's environment
true
if the colony within the envorinment has
reached this stop criteria; false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |