Class DefaultConstructionHeuristicForager<Solution_>
java.lang.Object
org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter<Solution_>
org.optaplanner.core.impl.constructionheuristic.event.ConstructionHeuristicPhaseLifecycleListenerAdapter<Solution_>
org.optaplanner.core.impl.constructionheuristic.decider.forager.AbstractConstructionHeuristicForager<Solution_>
org.optaplanner.core.impl.constructionheuristic.decider.forager.DefaultConstructionHeuristicForager<Solution_>
- All Implemented Interfaces:
EventListener
,ConstructionHeuristicForager<Solution_>
,ConstructionHeuristicPhaseLifecycleListener<Solution_>
,SolverLifecycleListener<Solution_>
public class DefaultConstructionHeuristicForager<Solution_>
extends AbstractConstructionHeuristicForager<Solution_>
-
Field Summary
Modifier and TypeFieldDescriptionprotected ConstructionHeuristicMoveScope<Solution_>
protected ConstructionHeuristicMoveScope<Solution_>
protected final ConstructionHeuristicPickEarlyType
protected long
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMove
(ConstructionHeuristicMoveScope<Solution_> moveScope) protected void
checkPickEarly
(ConstructionHeuristicMoveScope<Solution_> moveScope) boolean
pickMove
(ConstructionHeuristicStepScope<Solution_> stepScope) void
stepEnded
(ConstructionHeuristicStepScope<Solution_> stepScope) void
stepStarted
(ConstructionHeuristicStepScope<Solution_> stepScope) Methods inherited from class org.optaplanner.core.impl.constructionheuristic.event.ConstructionHeuristicPhaseLifecycleListenerAdapter
phaseEnded, phaseStarted
Methods inherited from class org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter
solvingEnded, solvingStarted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.optaplanner.core.impl.constructionheuristic.event.ConstructionHeuristicPhaseLifecycleListener
phaseEnded, phaseStarted
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStarted
-
Field Details
-
pickEarlyType
-
selectedMoveCount
protected long selectedMoveCount -
earlyPickedMoveScope
-
maxScoreMoveScope
-
-
Constructor Details
-
DefaultConstructionHeuristicForager
-
-
Method Details
-
stepStarted
- Specified by:
stepStarted
in interfaceConstructionHeuristicPhaseLifecycleListener<Solution_>
- Overrides:
stepStarted
in classConstructionHeuristicPhaseLifecycleListenerAdapter<Solution_>
-
stepEnded
- Specified by:
stepEnded
in interfaceConstructionHeuristicPhaseLifecycleListener<Solution_>
- Overrides:
stepEnded
in classConstructionHeuristicPhaseLifecycleListenerAdapter<Solution_>
-
addMove
-
checkPickEarly
-
isQuitEarly
public boolean isQuitEarly() -
pickMove
public ConstructionHeuristicMoveScope<Solution_> pickMove(ConstructionHeuristicStepScope<Solution_> stepScope)
-