Class ConstructionHeuristicStepScope<Solution_>
- java.lang.Object
-
- org.optaplanner.core.impl.phase.scope.AbstractStepScope<Solution_>
-
- org.optaplanner.core.impl.constructionheuristic.scope.ConstructionHeuristicStepScope<Solution_>
-
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
public class ConstructionHeuristicStepScope<Solution_> extends AbstractStepScope<Solution_>
-
-
Field Summary
-
Fields inherited from class org.optaplanner.core.impl.phase.scope.AbstractStepScope
bestScoreImproved, clonedSolution, score, stepIndex
-
-
Constructor Summary
Constructors Constructor Description ConstructionHeuristicStepScope(ConstructionHeuristicPhaseScope<Solution_> phaseScope)
ConstructionHeuristicStepScope(ConstructionHeuristicPhaseScope<Solution_> phaseScope, int stepIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getEntity()
ConstructionHeuristicPhaseScope<Solution_>
getPhaseScope()
Long
getSelectedMoveCount()
Move<Solution_>
getStep()
String
getStepString()
void
setEntity(Object entity)
void
setSelectedMoveCount(Long selectedMoveCount)
void
setStep(Move<Solution_> step)
void
setStepString(String stepString)
-
Methods inherited from class org.optaplanner.core.impl.phase.scope.AbstractStepScope
createOrGetClonedSolution, getBestScoreImproved, getClonedSolution, getScore, getScoreDirector, getStepIndex, getWorkingRandom, getWorkingSolution, setBestScoreImproved, setClonedSolution, setScore, toString
-
-
-
-
Constructor Detail
-
ConstructionHeuristicStepScope
public ConstructionHeuristicStepScope(ConstructionHeuristicPhaseScope<Solution_> phaseScope)
-
ConstructionHeuristicStepScope
public ConstructionHeuristicStepScope(ConstructionHeuristicPhaseScope<Solution_> phaseScope, int stepIndex)
-
-
Method Detail
-
getPhaseScope
public ConstructionHeuristicPhaseScope<Solution_> getPhaseScope()
- Specified by:
getPhaseScope
in classAbstractStepScope<Solution_>
-
getEntity
public Object getEntity()
-
setEntity
public void setEntity(Object entity)
-
getStepString
public String getStepString()
- Returns:
- null if logging level is too high
-
setStepString
public void setStepString(String stepString)
-
getSelectedMoveCount
public Long getSelectedMoveCount()
-
setSelectedMoveCount
public void setSelectedMoveCount(Long selectedMoveCount)
-
-