public class OneSurvivalStopCondition extends java.lang.Object implements IStopCondition
Constructor and Description |
---|
OneSurvivalStopCondition(int surviviedIterations) |
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 OneSurvivalStopCondition(int surviviedIterations)
surviviedIterations
- public void init(ThreadContext context)
IStopCondition
init
in interface IStopCondition
public boolean checkStopCondition(java.util.Collection<TrajectoryFitness> survivedPopulation)
IStopCondition
checkStopCondition
in interface IStopCondition
survivedPopulation
- The survevied population.