public class IterationStopCondition extends java.lang.Object implements IStopCondition
| Constructor and Description |
|---|
IterationStopCondition(int iterations) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkStopCondition(java.util.Collection<TrajectoryFitness> survivedPopulation)
Returns true if the exploration process has to stop.
|
void |
init(ThreadContext context)
Initializes the stop condition.
|
public IterationStopCondition(int iterations)
iterations - Number of iterations to make. If <= 1, then it will stop the exploration process after the initial
population is generated.public void init(ThreadContext context)
IStopConditioninit in interface IStopConditionpublic boolean checkStopCondition(java.util.Collection<TrajectoryFitness> survivedPopulation)
IStopConditioncheckStopCondition in interface IStopConditionsurvivedPopulation - The survevied population.