public class OrTerminationCondition extends java.lang.Object implements TerminationCondition
Constructor and Description |
---|
OrTerminationCondition(java.util.Collection<TerminationCondition> children)
Construct a new OrTerminationCondition.
|
Modifier and Type | Method and Description |
---|---|
void |
initialise(Config config)
Initialise this termination condition.
|
boolean |
shouldStop(KernelState state)
Return whether this termination condition has been met.
|
java.lang.String |
toString() |
public OrTerminationCondition(java.util.Collection<TerminationCondition> children)
children
- The child conditions. This must have at least one element.public boolean shouldStop(KernelState state)
TerminationCondition
shouldStop
in interface TerminationCondition
state
- The state of the kernel.public void initialise(Config config)
TerminationCondition
initialise
in interface TerminationCondition
config
- The configuration.public java.lang.String toString()
toString
in class java.lang.Object