public class AcceptedLocalSearchForager extends AbstractLocalSearchForager
LocalSearchForager
which forages accepted moves and ignores unaccepted moves.LocalSearchForager
,
Acceptor
Modifier and Type | Field and Description |
---|---|
protected int |
acceptedCountLimit |
protected long |
acceptedMoveCount |
protected boolean |
breakTieRandomly |
protected LocalSearchMoveScope |
earlyPickedMoveScope |
protected FinalistPodium |
finalistPodium |
protected LocalSearchPickEarlyType |
pickEarlyType |
protected long |
selectedMoveCount |
logger
Constructor and Description |
---|
AcceptedLocalSearchForager(FinalistPodium finalistPodium,
LocalSearchPickEarlyType pickEarlyType,
int acceptedCountLimit,
boolean breakTieRandomly) |
Modifier and Type | Method and Description |
---|---|
void |
addMove(LocalSearchMoveScope moveScope) |
protected void |
checkPickEarly(LocalSearchMoveScope moveScope) |
boolean |
isQuitEarly() |
void |
phaseEnded(LocalSearchPhaseScope phaseScope) |
void |
phaseStarted(LocalSearchPhaseScope phaseScope) |
LocalSearchMoveScope |
pickMove(LocalSearchStepScope stepScope) |
void |
solvingEnded(DefaultSolverScope solverScope) |
void |
solvingStarted(DefaultSolverScope solverScope) |
void |
stepEnded(LocalSearchStepScope stepScope) |
void |
stepStarted(LocalSearchStepScope stepScope) |
boolean |
supportsNeverEndingMoveSelector() |
String |
toString() |
protected final FinalistPodium finalistPodium
protected final LocalSearchPickEarlyType pickEarlyType
protected final int acceptedCountLimit
protected final boolean breakTieRandomly
protected long selectedMoveCount
protected long acceptedMoveCount
protected LocalSearchMoveScope earlyPickedMoveScope
public AcceptedLocalSearchForager(FinalistPodium finalistPodium, LocalSearchPickEarlyType pickEarlyType, int acceptedCountLimit, boolean breakTieRandomly)
public void solvingStarted(DefaultSolverScope solverScope)
solvingStarted
in interface SolverLifecycleListener
solvingStarted
in class SolverLifecycleListenerAdapter
public void phaseStarted(LocalSearchPhaseScope phaseScope)
phaseStarted
in interface LocalSearchPhaseLifecycleListener
phaseStarted
in class LocalSearchPhaseLifecycleListenerAdapter
public void stepStarted(LocalSearchStepScope stepScope)
stepStarted
in interface LocalSearchPhaseLifecycleListener
stepStarted
in class LocalSearchPhaseLifecycleListenerAdapter
public boolean supportsNeverEndingMoveSelector()
Selector.isNeverEnding()
that returns true.public void addMove(LocalSearchMoveScope moveScope)
moveScope
- never nullprotected void checkPickEarly(LocalSearchMoveScope moveScope)
public boolean isQuitEarly()
public LocalSearchMoveScope pickMove(LocalSearchStepScope stepScope)
stepScope
- never nullpublic void stepEnded(LocalSearchStepScope stepScope)
stepEnded
in interface LocalSearchPhaseLifecycleListener
stepEnded
in class LocalSearchPhaseLifecycleListenerAdapter
public void phaseEnded(LocalSearchPhaseScope phaseScope)
phaseEnded
in interface LocalSearchPhaseLifecycleListener
phaseEnded
in class LocalSearchPhaseLifecycleListenerAdapter
public void solvingEnded(DefaultSolverScope solverScope)
solvingEnded
in interface SolverLifecycleListener
solvingEnded
in class SolverLifecycleListenerAdapter
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.