org.drools.planner.core.localsearch.decider.acceptor.greatdeluge
Class GreatDelugeAcceptor

java.lang.Object
  extended by org.drools.planner.core.localsearch.event.LocalSearchSolverPhaseLifecycleListenerAdapter
      extended by org.drools.planner.core.localsearch.decider.acceptor.AbstractAcceptor
          extended by 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!


Field Summary
protected  Score waterLevelScore
           
protected  double waterLevelUpperBoundRate
           
protected  double waterRisingRate
           
 
Fields inherited from class org.drools.planner.core.localsearch.decider.acceptor.AbstractAcceptor
logger
 
Constructor Summary
GreatDelugeAcceptor(double waterLevelUpperBoundRate, double waterRisingRate)
           
 
Method Summary
 boolean isAccepted(MoveScope moveScope)
           
 void phaseStarted(LocalSearchSolverPhaseScope localSearchSolverPhaseScope)
           
 void stepTaken(LocalSearchStepScope localSearchStepScope)
           
 
Methods inherited from class org.drools.planner.core.localsearch.event.LocalSearchSolverPhaseLifecycleListenerAdapter
beforeDeciding, phaseEnded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.planner.core.localsearch.event.LocalSearchSolverPhaseLifecycleListener
beforeDeciding, phaseEnded
 

Field Detail

waterLevelUpperBoundRate

protected final double waterLevelUpperBoundRate

waterRisingRate

protected final double waterRisingRate

waterLevelScore

protected Score waterLevelScore
Constructor Detail

GreatDelugeAcceptor

public GreatDelugeAcceptor(double waterLevelUpperBoundRate,
                           double waterRisingRate)
Method Detail

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.