Class DefaultLocalSearchPhase<Solution_>
- java.lang.Object
- 
- org.optaplanner.core.impl.phase.AbstractPhase<Solution_>
- 
- org.optaplanner.core.impl.localsearch.DefaultLocalSearchPhase<Solution_>
 
 
- 
- Type Parameters:
- Solution_- the solution type, the class with the- PlanningSolutionannotation
 - All Implemented Interfaces:
- EventListener,- LocalSearchPhaseLifecycleListener<Solution_>,- LocalSearchPhase<Solution_>,- PhaseLifecycleListener<Solution_>,- Phase<Solution_>,- SolverLifecycleListener<Solution_>
 
 public class DefaultLocalSearchPhase<Solution_> extends AbstractPhase<Solution_> implements LocalSearchPhase<Solution_>, LocalSearchPhaseLifecycleListener<Solution_> Default implementation ofLocalSearchPhase.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDefaultLocalSearchPhase.Builder<Solution_>
 - 
Field SummaryFields Modifier and Type Field Description protected AtomicLongacceptedMoveCountPerStepprotected Map<io.micrometer.core.instrument.Tags,List<AtomicReference<Number>>>constraintMatchTotalBestScoreMapprotected Map<io.micrometer.core.instrument.Tags,List<AtomicReference<Number>>>constraintMatchTotalStepScoreMapprotected Map<io.micrometer.core.instrument.Tags,AtomicLong>constraintMatchTotalTagsToBestCountprotected Map<io.micrometer.core.instrument.Tags,AtomicLong>constraintMatchTotalTagsToStepCountprotected LocalSearchDecider<Solution_>deciderprotected AtomicLongselectedMoveCountPerStep- 
Fields inherited from class org.optaplanner.core.impl.phase.AbstractPhaseassertExpectedStepScore, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, logger, logIndentation, phaseIndex, phaseLifecycleSupport, phaseTermination, solver
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoStep(LocalSearchStepScope<Solution_> stepScope)StringgetPhaseTypeString()voidphaseEnded(LocalSearchPhaseScope<Solution_> phaseScope)voidphaseStarted(LocalSearchPhaseScope<Solution_> phaseScope)voidsolve(SolverScope<Solution_> solverScope)voidsolvingEnded(SolverScope<Solution_> solverScope)voidsolvingStarted(SolverScope<Solution_> solverScope)voidstepEnded(LocalSearchStepScope<Solution_> stepScope)voidstepStarted(LocalSearchStepScope<Solution_> stepScope)- 
Methods inherited from class org.optaplanner.core.impl.phase.AbstractPhaseaddPhaseLifecycleListener, assertWorkingSolutionInitialized, calculateWorkingStepScore, getPhaseIndex, getPhaseTermination, getSolver, isAssertExpectedStepScore, isAssertShadowVariablesAreNotStaleAfterStep, isAssertStepScoreFromScratch, phaseEnded, phaseStarted, predictWorkingStepScore, removePhaseLifecycleListener, setSolver, stepEnded, stepStarted
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.optaplanner.core.impl.phase.PhaseaddPhaseLifecycleListener, removePhaseLifecycleListener
 - 
Methods inherited from interface org.optaplanner.core.impl.phase.event.PhaseLifecycleListenerphaseEnded, phaseStarted, stepEnded, stepStarted
 
- 
 
- 
- 
- 
Field Detail- 
deciderprotected final LocalSearchDecider<Solution_> decider 
 - 
acceptedMoveCountPerStepprotected final AtomicLong acceptedMoveCountPerStep 
 - 
selectedMoveCountPerStepprotected final AtomicLong selectedMoveCountPerStep 
 - 
constraintMatchTotalTagsToStepCountprotected final Map<io.micrometer.core.instrument.Tags,AtomicLong> constraintMatchTotalTagsToStepCount 
 - 
constraintMatchTotalTagsToBestCountprotected final Map<io.micrometer.core.instrument.Tags,AtomicLong> constraintMatchTotalTagsToBestCount 
 - 
constraintMatchTotalStepScoreMapprotected final Map<io.micrometer.core.instrument.Tags,List<AtomicReference<Number>>> constraintMatchTotalStepScoreMap 
 - 
constraintMatchTotalBestScoreMapprotected final Map<io.micrometer.core.instrument.Tags,List<AtomicReference<Number>>> constraintMatchTotalBestScoreMap 
 
- 
 - 
Method Detail- 
getPhaseTypeStringpublic String getPhaseTypeString() - Specified by:
- getPhaseTypeStringin class- AbstractPhase<Solution_>
 
 - 
solvepublic void solve(SolverScope<Solution_> solverScope) 
 - 
doStepprotected void doStep(LocalSearchStepScope<Solution_> stepScope) 
 - 
solvingStartedpublic void solvingStarted(SolverScope<Solution_> solverScope) - Specified by:
- solvingStartedin interface- SolverLifecycleListener<Solution_>
- Overrides:
- solvingStartedin class- AbstractPhase<Solution_>
 
 - 
phaseStartedpublic void phaseStarted(LocalSearchPhaseScope<Solution_> phaseScope) - Specified by:
- phaseStartedin interface- LocalSearchPhaseLifecycleListener<Solution_>
 
 - 
stepStartedpublic void stepStarted(LocalSearchStepScope<Solution_> stepScope) - Specified by:
- stepStartedin interface- LocalSearchPhaseLifecycleListener<Solution_>
 
 - 
stepEndedpublic void stepEnded(LocalSearchStepScope<Solution_> stepScope) - Specified by:
- stepEndedin interface- LocalSearchPhaseLifecycleListener<Solution_>
 
 - 
phaseEndedpublic void phaseEnded(LocalSearchPhaseScope<Solution_> phaseScope) - Specified by:
- phaseEndedin interface- LocalSearchPhaseLifecycleListener<Solution_>
 
 - 
solvingEndedpublic void solvingEnded(SolverScope<Solution_> solverScope) - Specified by:
- solvingEndedin interface- SolverLifecycleListener<Solution_>
- Overrides:
- solvingEndedin class- AbstractPhase<Solution_>
 
 
- 
 
-