OptaPlanner core 6.0.0.CR4

org.optaplanner.core.impl.constructionheuristic.decider.forager
Class DefaultConstructionHeuristicForager

java.lang.Object
  extended by org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter
      extended by org.optaplanner.core.impl.constructionheuristic.event.ConstructionHeuristicSolverPhaseLifecycleListenerAdapter
          extended by org.optaplanner.core.impl.constructionheuristic.decider.forager.AbstractConstructionHeuristicForager
              extended by org.optaplanner.core.impl.constructionheuristic.decider.forager.DefaultConstructionHeuristicForager
All Implemented Interfaces:
EventListener, ConstructionHeuristicForager, ConstructionHeuristicSolverPhaseLifecycleListener, SolverLifecycleListener

public class DefaultConstructionHeuristicForager
extends AbstractConstructionHeuristicForager


Field Summary
protected  ConstructionHeuristicMoveScope earlyPickedMoveScope
           
protected  ConstructionHeuristicMoveScope maxScoreMoveScope
           
protected  ConstructionHeuristicPickEarlyType pickEarlyType
           
protected  Comparator<Score> scoreComparator
           
 
Constructor Summary
DefaultConstructionHeuristicForager(ConstructionHeuristicPickEarlyType pickEarlyType)
           
 
Method Summary
 void addMove(ConstructionHeuristicMoveScope moveScope)
           
protected  void checkPickEarly(ConstructionHeuristicMoveScope moveScope)
           
 boolean isQuitEarly()
           
 ConstructionHeuristicMoveScope pickMove(ConstructionHeuristicStepScope stepScope)
           
 void stepEnded(ConstructionHeuristicStepScope stepScope)
           
 void stepStarted(ConstructionHeuristicStepScope stepScope)
           
 
Methods inherited from class org.optaplanner.core.impl.constructionheuristic.event.ConstructionHeuristicSolverPhaseLifecycleListenerAdapter
phaseEnded, phaseStarted
 
Methods inherited from class org.optaplanner.core.impl.solver.event.SolverLifecycleListenerAdapter
solvingEnded, solvingStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.optaplanner.core.impl.constructionheuristic.event.ConstructionHeuristicSolverPhaseLifecycleListener
phaseEnded, phaseStarted
 
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingStarted
 

Field Detail

pickEarlyType

protected final ConstructionHeuristicPickEarlyType pickEarlyType

scoreComparator

protected Comparator<Score> scoreComparator

earlyPickedMoveScope

protected ConstructionHeuristicMoveScope earlyPickedMoveScope

maxScoreMoveScope

protected ConstructionHeuristicMoveScope maxScoreMoveScope
Constructor Detail

DefaultConstructionHeuristicForager

public DefaultConstructionHeuristicForager(ConstructionHeuristicPickEarlyType pickEarlyType)
Method Detail

stepStarted

public void stepStarted(ConstructionHeuristicStepScope stepScope)
Specified by:
stepStarted in interface ConstructionHeuristicSolverPhaseLifecycleListener
Overrides:
stepStarted in class ConstructionHeuristicSolverPhaseLifecycleListenerAdapter

stepEnded

public void stepEnded(ConstructionHeuristicStepScope stepScope)
Specified by:
stepEnded in interface ConstructionHeuristicSolverPhaseLifecycleListener
Overrides:
stepEnded in class ConstructionHeuristicSolverPhaseLifecycleListenerAdapter

addMove

public void addMove(ConstructionHeuristicMoveScope moveScope)

checkPickEarly

protected void checkPickEarly(ConstructionHeuristicMoveScope moveScope)

isQuitEarly

public boolean isQuitEarly()

pickMove

public ConstructionHeuristicMoveScope pickMove(ConstructionHeuristicStepScope stepScope)

OptaPlanner core 6.0.0.CR4

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.