org.drools.planner.core.localsearch.decider.deciderscorecomparator
Interface DeciderScoreComparatorFactory

All Superinterfaces:
EventListener, LocalSearchSolverPhaseLifecycleListener, SolverLifecycleListener
All Known Implementing Classes:
AbstractDeciderScoreComparatorFactory, NaturalDeciderScoreComparatorFactory, ShiftingHardPenaltyDeciderScoreComparatorFactory

public interface DeciderScoreComparatorFactory
extends LocalSearchSolverPhaseLifecycleListener

A DeciderScoreComparatorFactory creates a new DeciderScoreComparator each step, which compares 2 scores to decide the next step. That Score Comparator can consider shifting penalty, aging penalty, ... in which case it differs from the natural ordering of scores.


Method Summary
 Comparator<Score> createDeciderScoreComparator()
           
 
Methods inherited from interface org.drools.planner.core.localsearch.event.LocalSearchSolverPhaseLifecycleListener
phaseEnded, phaseStarted, stepEnded, stepStarted
 
Methods inherited from interface org.drools.planner.core.solver.event.SolverLifecycleListener
solvingEnded, solvingStarted
 

Method Detail

createDeciderScoreComparator

Comparator<Score> createDeciderScoreComparator()
Returns:
never null


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.