Class AbstractStepScope<Solution_>

java.lang.Object
org.optaplanner.core.impl.phase.scope.AbstractStepScope<Solution_>
Type Parameters:
Solution_ - the solution type, the class with the PlanningSolution annotation
Direct Known Subclasses:
ConstructionHeuristicStepScope, CustomStepScope, ExhaustiveSearchStepScope, LocalSearchStepScope, PartitionedSearchStepScope

public abstract class AbstractStepScope<Solution_> extends Object
  • Field Details

    • stepIndex

      protected final int stepIndex
    • score

      protected Score<?> score
    • bestScoreImproved

      protected boolean bestScoreImproved
    • clonedSolution

      protected Solution_ clonedSolution
  • Constructor Details

    • AbstractStepScope

      public AbstractStepScope(int stepIndex)
  • Method Details

    • getPhaseScope

      public abstract AbstractPhaseScope<Solution_> getPhaseScope()
    • getStepIndex

      public int getStepIndex()
    • getScore

      public Score<?> getScore()
    • setScore

      public void setScore(Score<?> score)
    • getBestScoreImproved

      public boolean getBestScoreImproved()
    • setBestScoreImproved

      public void setBestScoreImproved(Boolean bestScoreImproved)
    • getScoreDirector

      public <Score_ extends Score<Score_>> InnerScoreDirector<Solution_,Score_> getScoreDirector()
    • getWorkingSolution

      public Solution_ getWorkingSolution()
    • getWorkingRandom

      public Random getWorkingRandom()
    • createOrGetClonedSolution

      public Solution_ createOrGetClonedSolution()
    • toString

      public String toString()
      Overrides:
      toString in class Object