Class LocalSearchStepScope<Solution_>
java.lang.Object
org.optaplanner.core.impl.phase.scope.AbstractStepScope<Solution_>
org.optaplanner.core.impl.localsearch.scope.LocalSearchStepScope<Solution_>
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
-
Field Summary
Fields inherited from class org.optaplanner.core.impl.phase.scope.AbstractStepScope
bestScoreImproved, clonedSolution, score, stepIndex
-
Constructor Summary
ConstructorDescriptionLocalSearchStepScope
(LocalSearchPhaseScope<Solution_> phaseScope) LocalSearchStepScope
(LocalSearchPhaseScope<Solution_> phaseScope, int stepIndex) -
Method Summary
Modifier and TypeMethodDescriptiongetStep()
double
void
setAcceptedMoveCount
(Long acceptedMoveCount) void
setSelectedMoveCount
(Long selectedMoveCount) void
void
setStepString
(String stepString) void
setTimeGradient
(double timeGradient) void
setUndoStep
(Move<Solution_> undoStep) Methods inherited from class org.optaplanner.core.impl.phase.scope.AbstractStepScope
createOrGetClonedSolution, getBestScoreImproved, getClonedSolution, getScore, getScoreDirector, getStepIndex, getWorkingRandom, getWorkingSolution, setBestScoreImproved, setClonedSolution, setScore, toString
-
Constructor Details
-
LocalSearchStepScope
-
LocalSearchStepScope
-
-
Method Details
-
getPhaseScope
- Specified by:
getPhaseScope
in classAbstractStepScope<Solution_>
-
getTimeGradient
public double getTimeGradient() -
setTimeGradient
public void setTimeGradient(double timeGradient) -
getStep
-
setStep
-
getStepString
- Returns:
- null if logging level is too high
-
setStepString
-
getUndoStep
-
setUndoStep
-
getSelectedMoveCount
-
setSelectedMoveCount
-
getAcceptedMoveCount
-
setAcceptedMoveCount
-