org.drools.planner.core.localsearch.decider.forager
Class AcceptedForager
java.lang.Object
org.drools.planner.core.localsearch.event.LocalSearchSolverPhaseLifecycleListenerAdapter
org.drools.planner.core.localsearch.decider.forager.AbstractForager
org.drools.planner.core.localsearch.decider.forager.AcceptedForager
- All Implemented Interfaces:
- EventListener, Forager, LocalSearchSolverPhaseLifecycleListener
public class AcceptedForager
- extends AbstractForager
An AcceptedForager is a Forager which forages accepted moves and ignores unaccepted moves.
- See Also:
Forager
,
Acceptor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pickEarlyType
protected final PickEarlyType pickEarlyType
minimalAcceptedSelection
protected final int minimalAcceptedSelection
acceptedMoveScopeComparator
protected AcceptedMoveScopeComparator acceptedMoveScopeComparator
selectedCount
protected int selectedCount
acceptedList
protected List<MoveScope> acceptedList
maxScoreAcceptedList
protected List<MoveScope> maxScoreAcceptedList
listSorted
protected boolean listSorted
maxScore
protected Score maxScore
earlyPickedMoveScope
protected MoveScope earlyPickedMoveScope
AcceptedForager
public AcceptedForager(PickEarlyType pickEarlyType,
int minimalAcceptedSelection)
beforeDeciding
public void beforeDeciding(LocalSearchStepScope localSearchStepScope)
- Specified by:
beforeDeciding
in interface LocalSearchSolverPhaseLifecycleListener
- Overrides:
beforeDeciding
in class LocalSearchSolverPhaseLifecycleListenerAdapter
addMove
public void addMove(MoveScope moveScope)
checkPickEarly
protected void checkPickEarly(MoveScope moveScope)
addMoveScopeToAcceptedList
protected void addMoveScopeToAcceptedList(MoveScope moveScope)
isQuitEarly
public boolean isQuitEarly()
pickMove
public MoveScope pickMove(LocalSearchStepScope localSearchStepScope)
pickMaxScoreMoveScopeFromAcceptedList
protected MoveScope pickMaxScoreMoveScopeFromAcceptedList(LocalSearchStepScope localSearchStepScope)
getAcceptedMovesSize
public int getAcceptedMovesSize()
getTopList
public List<Move> getTopList(int topSize)
sortAcceptedList
protected void sortAcceptedList()
Copyright © 2001-2011 JBoss by Red Hat. All Rights Reserved.