public class DefaultConstructionHeuristicForager extends AbstractConstructionHeuristicForager
Modifier and Type | Field and Description |
---|---|
protected ConstructionHeuristicMoveScope |
earlyPickedMoveScope |
protected ConstructionHeuristicMoveScope |
maxScoreMoveScope |
protected ConstructionHeuristicPickEarlyType |
pickEarlyType |
protected Comparator<Score> |
scoreComparator |
protected long |
selectedMoveCount |
Constructor and Description |
---|
DefaultConstructionHeuristicForager(ConstructionHeuristicPickEarlyType pickEarlyType) |
Modifier and Type | Method and Description |
---|---|
void |
addMove(ConstructionHeuristicMoveScope moveScope) |
protected void |
checkPickEarly(ConstructionHeuristicMoveScope moveScope) |
boolean |
isQuitEarly() |
ConstructionHeuristicMoveScope |
pickMove(ConstructionHeuristicStepScope stepScope) |
void |
stepEnded(ConstructionHeuristicStepScope stepScope) |
void |
stepStarted(ConstructionHeuristicStepScope stepScope) |
phaseEnded, phaseStarted
solvingEnded, solvingStarted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
phaseEnded, phaseStarted
solvingEnded, solvingStarted
protected final ConstructionHeuristicPickEarlyType pickEarlyType
protected Comparator<Score> scoreComparator
protected long selectedMoveCount
protected ConstructionHeuristicMoveScope earlyPickedMoveScope
protected ConstructionHeuristicMoveScope maxScoreMoveScope
public DefaultConstructionHeuristicForager(ConstructionHeuristicPickEarlyType pickEarlyType)
public void stepStarted(ConstructionHeuristicStepScope stepScope)
stepStarted
in interface ConstructionHeuristicPhaseLifecycleListener
stepStarted
in class ConstructionHeuristicPhaseLifecycleListenerAdapter
public void stepEnded(ConstructionHeuristicStepScope stepScope)
stepEnded
in interface ConstructionHeuristicPhaseLifecycleListener
stepEnded
in class ConstructionHeuristicPhaseLifecycleListenerAdapter
public void addMove(ConstructionHeuristicMoveScope moveScope)
protected void checkPickEarly(ConstructionHeuristicMoveScope moveScope)
public boolean isQuitEarly()
public ConstructionHeuristicMoveScope pickMove(ConstructionHeuristicStepScope stepScope)
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.