Class AbstractMoveScope<Solution_>

java.lang.Object
org.optaplanner.core.impl.phase.scope.AbstractMoveScope<Solution_>
Type Parameters:
Solution_ - the solution type, the class with the PlanningSolution annotation
Direct Known Subclasses:
ConstructionHeuristicMoveScope, LocalSearchMoveScope

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

    • moveIndex

      protected final int moveIndex
    • move

      protected final Move<Solution_> move
    • score

      protected Score<?> score
  • Constructor Details

    • AbstractMoveScope

      public AbstractMoveScope(int moveIndex, Move<Solution_> move)
  • Method Details

    • getStepScope

      public abstract AbstractStepScope<Solution_> getStepScope()
    • getMoveIndex

      public int getMoveIndex()
    • getMove

      public Move<Solution_> getMove()
    • getScore

      public Score getScore()
    • setScore

      public void setScore(Score score)
    • getStepIndex

      public int getStepIndex()
    • getScoreDirector

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

      public Solution_ getWorkingSolution()
    • getWorkingRandom

      public Random getWorkingRandom()
    • toString

      public String toString()
      Overrides:
      toString in class Object