org.drools.planner.core.localsearch.decider
Class DefaultDecider
java.lang.Object
org.drools.planner.core.localsearch.decider.DefaultDecider
- All Implemented Interfaces:
- EventListener, Decider, LocalSearchSolverPhaseLifecycleListener, LocalSearchSolverAware
public class DefaultDecider
- extends Object
- implements Decider
Default implementation of Decider
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final transient org.slf4j.Logger logger
localSearchSolverPhase
protected LocalSearchSolverPhase localSearchSolverPhase
selector
protected Selector selector
acceptor
protected Acceptor acceptor
forager
protected Forager forager
assertMoveScoreIsUncorrupted
protected boolean assertMoveScoreIsUncorrupted
assertUndoMoveIsUncorrupted
protected boolean assertUndoMoveIsUncorrupted
DefaultDecider
public DefaultDecider()
setLocalSearchSolverPhase
public void setLocalSearchSolverPhase(LocalSearchSolverPhase localSearchSolverPhase)
- Specified by:
setLocalSearchSolverPhase
in interface LocalSearchSolverAware
setSelector
public void setSelector(Selector selector)
setAcceptor
public void setAcceptor(Acceptor acceptor)
getForager
public Forager getForager()
- Specified by:
getForager
in interface Decider
- Returns:
- never null
setForager
public void setForager(Forager forager)
setAssertMoveScoreIsUncorrupted
public void setAssertMoveScoreIsUncorrupted(boolean assertMoveScoreIsUncorrupted)
setAssertUndoMoveIsUncorrupted
public void setAssertUndoMoveIsUncorrupted(boolean assertUndoMoveIsUncorrupted)
phaseStarted
public void phaseStarted(LocalSearchSolverPhaseScope localSearchSolverPhaseScope)
- Specified by:
phaseStarted
in interface LocalSearchSolverPhaseLifecycleListener
beforeDeciding
public void beforeDeciding(LocalSearchStepScope localSearchStepScope)
- Specified by:
beforeDeciding
in interface LocalSearchSolverPhaseLifecycleListener
decideNextStep
public void decideNextStep(LocalSearchStepScope stepScope)
- Description copied from interface:
Decider
- Decides the next step
- Specified by:
decideNextStep
in interface Decider
- Parameters:
stepScope
- never null
stepDecided
public void stepDecided(LocalSearchStepScope localSearchStepScope)
- Specified by:
stepDecided
in interface LocalSearchSolverPhaseLifecycleListener
stepTaken
public void stepTaken(LocalSearchStepScope localSearchStepScope)
- Specified by:
stepTaken
in interface LocalSearchSolverPhaseLifecycleListener
phaseEnded
public void phaseEnded(LocalSearchSolverPhaseScope localSearchSolverPhaseScope)
- Specified by:
phaseEnded
in interface LocalSearchSolverPhaseLifecycleListener
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.