org.drools.planner.core.constructionheuristic.greedyFit.decider.forager
Class GreedyForager
java.lang.Object
org.drools.planner.core.constructionheuristic.greedyFit.event.GreedySolverPhaseLifecycleListenerAdapter
org.drools.planner.core.constructionheuristic.greedyFit.decider.forager.GreedyForager
- All Implemented Interfaces:
- EventListener, GreedySolverPhaseLifecycleListener
public class GreedyForager
- extends GreedySolverPhaseLifecycleListenerAdapter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final transient org.slf4j.Logger logger
scoreComparator
protected Comparator<Score> scoreComparator
pickEarlyType
protected ConstructionHeuristicPickEarlyType pickEarlyType
minimalAcceptedSelection
protected int minimalAcceptedSelection
selectedCount
protected int selectedCount
maxScoreAcceptedList
protected List<GreedyMoveScope> maxScoreAcceptedList
maxScore
protected Score maxScore
earlyPickedMoveScope
protected GreedyMoveScope earlyPickedMoveScope
GreedyForager
public GreedyForager()
setPickEarlyType
public void setPickEarlyType(ConstructionHeuristicPickEarlyType pickEarlyType)
setMinimalAcceptedSelection
public void setMinimalAcceptedSelection(int minimalAcceptedSelection)
stepStarted
public void stepStarted(GreedyFitStepScope greedyStepScope)
- Specified by:
stepStarted
in interface GreedySolverPhaseLifecycleListener
- Overrides:
stepStarted
in class GreedySolverPhaseLifecycleListenerAdapter
addMove
public void addMove(GreedyMoveScope moveScope)
checkPickEarly
protected void checkPickEarly(GreedyMoveScope moveScope)
addMoveScopeToAcceptedList
protected void addMoveScopeToAcceptedList(GreedyMoveScope moveScope)
isQuitEarly
public boolean isQuitEarly()
pickMove
public GreedyMoveScope pickMove(GreedyFitStepScope greedyStepScope)
pickMaxScoreMoveScopeFromAcceptedList
protected GreedyMoveScope pickMaxScoreMoveScopeFromAcceptedList(GreedyFitStepScope greedyStepScope)
getSelectedCount
public int getSelectedCount()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.