org.eclipse.viatra.dse.evolutionary.stopconditions

## Class IterationStopCondition

- java.lang.Object
- - org.eclipse.viatra.dse.evolutionary.stopconditions.IterationStopCondition

- All Implemented Interfaces:
    IStopCondition

      public class IterationStopCondition
      extends java.lang.Object
      implements IStopCondition

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IterationStopCondition(int iterations)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### IterationStopCondition

          public IterationStopCondition(int iterations)

      Parameters:
        `iterations` - Number of iterations to make. If <= 1, then it will stop the exploration process after the initial population is generated.

  - ### Method Detail

    - #### init

          public void init(ThreadContext context)

      Description copied from interface: `IStopCondition`
      Initializes the stop condition.
      Specified by:
        `init` in interface `IStopCondition`

    - #### checkStopCondition

          public boolean checkStopCondition(java.util.Collection<TrajectoryFitness> survivedPopulation)

      Description copied from interface: `IStopCondition`
      Returns true if the exploration process has to stop.
      Specified by:
        `checkStopCondition` in interface `IStopCondition`
      Parameters:
        `survivedPopulation` - The survevied population.
      Returns:
        True if the exploration process has to stop.