org.optaplanner.core.impl.constructionheuristic.decider.forager
public class DefaultConstructionHeuristicForager extends AbstractConstructionHeuristicForager
Modifier and Type | Field and Description |
---|---|
protected ConstructionHeuristicMoveScope |
earlyPickedMoveScope |
protected ConstructionHeuristicMoveScope |
maxScoreMoveScope |
protected ConstructionHeuristicPickEarlyType |
pickEarlyType |
protected Comparator<Score> |
scoreComparator |
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 ConstructionHeuristicMoveScope earlyPickedMoveScope
protected ConstructionHeuristicMoveScope maxScoreMoveScope
public DefaultConstructionHeuristicForager(ConstructionHeuristicPickEarlyType pickEarlyType)
public void stepStarted(ConstructionHeuristicStepScope stepScope)
stepStarted
in interface ConstructionHeuristicSolverPhaseLifecycleListener
stepStarted
in class ConstructionHeuristicSolverPhaseLifecycleListenerAdapter
public void stepEnded(ConstructionHeuristicStepScope stepScope)
stepEnded
in interface ConstructionHeuristicSolverPhaseLifecycleListener
stepEnded
in class ConstructionHeuristicSolverPhaseLifecycleListenerAdapter
public void addMove(ConstructionHeuristicMoveScope moveScope)
protected void checkPickEarly(ConstructionHeuristicMoveScope moveScope)
public boolean isQuitEarly()
public ConstructionHeuristicMoveScope pickMove(ConstructionHeuristicStepScope stepScope)
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.