org.drools.planner.core.localsearch.decider.acceptor.greatdeluge
Class GreatDelugeAcceptor
java.lang.Object
org.drools.planner.core.localsearch.event.LocalSearchSolverPhaseLifecycleListenerAdapter
org.drools.planner.core.localsearch.decider.acceptor.AbstractAcceptor
org.drools.planner.core.localsearch.decider.acceptor.greatdeluge.GreatDelugeAcceptor
- All Implemented Interfaces:
- EventListener, Acceptor, LocalSearchSolverPhaseLifecycleListener
public class GreatDelugeAcceptor
- extends AbstractAcceptor
TODO Under construction. Feel free to create a patch to improve this acceptor!
Constructor Summary |
GreatDelugeAcceptor(double waterLevelUpperBoundRate,
double waterRisingRate)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
waterLevelUpperBoundRate
protected final double waterLevelUpperBoundRate
waterRisingRate
protected final double waterRisingRate
waterLevelScore
protected Score waterLevelScore
GreatDelugeAcceptor
public GreatDelugeAcceptor(double waterLevelUpperBoundRate,
double waterRisingRate)
phaseStarted
public void phaseStarted(LocalSearchSolverPhaseScope localSearchSolverPhaseScope)
- Specified by:
phaseStarted
in interface LocalSearchSolverPhaseLifecycleListener
- Overrides:
phaseStarted
in class LocalSearchSolverPhaseLifecycleListenerAdapter
isAccepted
public boolean isAccepted(MoveScope moveScope)
- Parameters:
moveScope
- not null
- Returns:
- true if accepted
stepTaken
public void stepTaken(LocalSearchStepScope localSearchStepScope)
- Specified by:
stepTaken
in interface LocalSearchSolverPhaseLifecycleListener
- Overrides:
stepTaken
in class LocalSearchSolverPhaseLifecycleListenerAdapter
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.