Class TerminatedByNumberOfGenerations

java.lang.Object
se.liu.ida.hefquin.engine.queryproc.impl.poptimizer.evolutionaryAlgorithm.TerminationCriterionBase
se.liu.ida.hefquin.engine.queryproc.impl.poptimizer.evolutionaryAlgorithm.TerminatedByNumberOfGenerations
All Implemented Interfaces:
TerminationCriterion

public class TerminatedByNumberOfGenerations extends TerminationCriterionBase
termination criterion: number of generations
  • Field Details

    • generationThreshold

      protected final int generationThreshold
  • Constructor Details

    • TerminatedByNumberOfGenerations

      public TerminatedByNumberOfGenerations(int generationThreshold, LogicalPlan plan)
  • Method Details

    • getFactory

      public static TerminationCriterionFactory getFactory(int generationThreshold)
    • readyToTerminate

      public boolean readyToTerminate(Generation currentGeneration, List<Generation> previousGenerations)
      Returns true if the generation number exceeds the threshold
      Parameters:
      currentGeneration - the current generation for which the termination criterion is test
      previousGenerations - a list of all previous generations, in the order in which they have been created