Class AbstractStepScope<Solution_>
- java.lang.Object
-
- ai.timefold.solver.core.impl.phase.scope.AbstractStepScope<Solution_>
-
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotation
- Direct Known Subclasses:
ConstructionHeuristicStepScope,CustomStepScope,ExhaustiveSearchStepScope,LocalSearchStepScope,PartitionedSearchStepScope
public abstract class AbstractStepScope<Solution_> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanbestScoreImprovedprotected Solution_clonedSolutionprotected Score<?>scoreprotected intstepIndex
-
Constructor Summary
Constructors Constructor Description AbstractStepScope(int stepIndex)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Solution_createOrGetClonedSolution()booleangetBestScoreImproved()abstract AbstractPhaseScope<Solution_>getPhaseScope()Score<?>getScore()<Score_ extends Score<Score_>>
InnerScoreDirector<Solution_,Score_>getScoreDirector()intgetStepIndex()RandomgetWorkingRandom()Solution_getWorkingSolution()voidsetBestScoreImproved(Boolean bestScoreImproved)voidsetScore(Score<?> score)StringtoString()
-
-
-
Method Detail
-
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()
-
-