public class AcceptedForager extends AbstractForager
Modifier and Type | Field and Description |
---|---|
protected int |
acceptedCountLimit |
protected long |
acceptedMoveCount |
protected DeciderScoreComparatorFactory |
deciderScoreComparatorFactory |
protected LocalSearchMoveScope |
earlyPickedMoveScope |
protected Score |
maxAcceptedScore |
protected List<LocalSearchMoveScope> |
maxScoreAcceptedList |
protected List<LocalSearchMoveScope> |
maxScoreUnacceptedList |
protected Score |
maxUnacceptedScore |
protected PickEarlyType |
pickEarlyType |
protected Comparator<Score> |
scoreComparator |
protected long |
selectedMoveCount |
logger
Constructor and Description |
---|
AcceptedForager(DeciderScoreComparatorFactory deciderScoreComparatorFactory,
PickEarlyType pickEarlyType,
int acceptedCountLimit) |
Modifier and Type | Method and Description |
---|---|
void |
addMove(LocalSearchMoveScope moveScope) |
protected void |
addToMaxScoreAcceptedList(LocalSearchMoveScope moveScope) |
protected void |
addToMaxScoreUnacceptedList(LocalSearchMoveScope moveScope) |
protected void |
checkPickEarly(LocalSearchMoveScope moveScope) |
boolean |
isQuitEarly() |
void |
phaseEnded(LocalSearchSolverPhaseScope phaseScope) |
void |
phaseStarted(LocalSearchSolverPhaseScope phaseScope) |
protected LocalSearchMoveScope |
pickMaxScoreMoveScope(LocalSearchStepScope stepScope) |
LocalSearchMoveScope |
pickMove(LocalSearchStepScope stepScope) |
void |
stepEnded(LocalSearchStepScope stepScope) |
void |
stepStarted(LocalSearchStepScope stepScope) |
boolean |
supportsNeverEndingMoveSelector() |
String |
toString() |
solvingEnded, solvingStarted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
solvingEnded, solvingStarted
protected final DeciderScoreComparatorFactory deciderScoreComparatorFactory
protected final PickEarlyType pickEarlyType
protected final int acceptedCountLimit
protected Comparator<Score> scoreComparator
protected long selectedMoveCount
protected long acceptedMoveCount
protected List<LocalSearchMoveScope> maxScoreAcceptedList
protected Score maxAcceptedScore
protected List<LocalSearchMoveScope> maxScoreUnacceptedList
protected Score maxUnacceptedScore
protected LocalSearchMoveScope earlyPickedMoveScope
public AcceptedForager(DeciderScoreComparatorFactory deciderScoreComparatorFactory, PickEarlyType pickEarlyType, int acceptedCountLimit)
public void phaseStarted(LocalSearchSolverPhaseScope phaseScope)
phaseStarted
in interface LocalSearchSolverPhaseLifecycleListener
phaseStarted
in class LocalSearchSolverPhaseLifecycleListenerAdapter
public void stepStarted(LocalSearchStepScope stepScope)
stepStarted
in interface LocalSearchSolverPhaseLifecycleListener
stepStarted
in class LocalSearchSolverPhaseLifecycleListenerAdapter
public boolean supportsNeverEndingMoveSelector()
public void addMove(LocalSearchMoveScope moveScope)
protected void checkPickEarly(LocalSearchMoveScope moveScope)
protected void addToMaxScoreAcceptedList(LocalSearchMoveScope moveScope)
protected void addToMaxScoreUnacceptedList(LocalSearchMoveScope moveScope)
public boolean isQuitEarly()
public LocalSearchMoveScope pickMove(LocalSearchStepScope stepScope)
protected LocalSearchMoveScope pickMaxScoreMoveScope(LocalSearchStepScope stepScope)
public void stepEnded(LocalSearchStepScope stepScope)
stepEnded
in interface LocalSearchSolverPhaseLifecycleListener
stepEnded
in class LocalSearchSolverPhaseLifecycleListenerAdapter
public void phaseEnded(LocalSearchSolverPhaseScope phaseScope)
phaseEnded
in interface LocalSearchSolverPhaseLifecycleListener
phaseEnded
in class LocalSearchSolverPhaseLifecycleListenerAdapter
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.