org.optaplanner.core.impl.constructionheuristic.decider.forager
Class DefaultConstructionHeuristicForager
java.lang.Object
org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter
org.optaplanner.core.impl.constructionheuristic.event.ConstructionHeuristicPhaseLifecycleListenerAdapter
org.optaplanner.core.impl.constructionheuristic.decider.forager.AbstractConstructionHeuristicForager
org.optaplanner.core.impl.constructionheuristic.decider.forager.DefaultConstructionHeuristicForager
- All Implemented Interfaces:
- EventListener, ConstructionHeuristicForager, ConstructionHeuristicPhaseLifecycleListener, SolverLifecycleListener
public class DefaultConstructionHeuristicForager
- extends AbstractConstructionHeuristicForager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pickEarlyType
protected final ConstructionHeuristicPickEarlyType pickEarlyType
scoreComparator
protected Comparator<Score> scoreComparator
earlyPickedMoveScope
protected ConstructionHeuristicMoveScope earlyPickedMoveScope
maxScoreMoveScope
protected ConstructionHeuristicMoveScope maxScoreMoveScope
DefaultConstructionHeuristicForager
public DefaultConstructionHeuristicForager(ConstructionHeuristicPickEarlyType pickEarlyType)
stepStarted
public void stepStarted(ConstructionHeuristicStepScope stepScope)
- Specified by:
stepStarted
in interface ConstructionHeuristicPhaseLifecycleListener
- Overrides:
stepStarted
in class ConstructionHeuristicPhaseLifecycleListenerAdapter
stepEnded
public void stepEnded(ConstructionHeuristicStepScope stepScope)
- Specified by:
stepEnded
in interface ConstructionHeuristicPhaseLifecycleListener
- Overrides:
stepEnded
in class ConstructionHeuristicPhaseLifecycleListenerAdapter
addMove
public void addMove(ConstructionHeuristicMoveScope moveScope)
checkPickEarly
protected void checkPickEarly(ConstructionHeuristicMoveScope moveScope)
isQuitEarly
public boolean isQuitEarly()
pickMove
public ConstructionHeuristicMoveScope pickMove(ConstructionHeuristicStepScope stepScope)
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.