org.optaplanner.core.impl.score.director.easy
Class EasyScoreDirector
java.lang.Object
org.optaplanner.core.impl.score.director.AbstractScoreDirector<EasyScoreDirectorFactory>
org.optaplanner.core.impl.score.director.easy.EasyScoreDirector
- All Implemented Interfaces:
- Cloneable, InnerScoreDirector, ScoreDirector
public class EasyScoreDirector
- extends AbstractScoreDirector<EasyScoreDirectorFactory>
Easy java implementation of ScoreDirector
, which recalculates the Score
of the Solution
workingSolution every time. This is non-incremental calculation, which is slow.
- See Also:
ScoreDirector
Methods inherited from class org.optaplanner.core.impl.score.director.AbstractScoreDirector |
afterEntityAdded, afterEntityAdded, afterEntityRemoved, afterEntityRemoved, afterProblemFactAdded, afterProblemFactChanged, afterProblemFactRemoved, afterVariableChanged, afterVariableChanged, assertExpectedWorkingScore, assertWorkingScoreFromScratch, beforeEntityAdded, beforeEntityAdded, beforeEntityRemoved, beforeEntityRemoved, beforeProblemFactAdded, beforeProblemFactChanged, beforeProblemFactRemoved, beforeVariableChanged, beforeVariableChanged, buildScoreCorruptionAnalysis, clone, cloneWorkingSolution, countWorkingSolutionUninitializedVariables, dispose, getCalculateCount, getConstraintMatchTotals, getScoreDefinition, getScoreDirectorFactory, getSolutionDescriptor, getTrailingEntity, getWorkingEntityCount, getWorkingEntityList, getWorkingEntityListRevision, getWorkingSolution, getWorkingValueCount, isAllChangesWillBeUndoneBeforeStepEnds, isConstraintMatchEnabled, isWorkingEntityListDirty, isWorkingSolutionInitialized, setAllChangesWillBeUndoneBeforeStepEnds, setCalculatedScore, setWorkingEntityListDirty, setWorkingSolution, toString |
EasyScoreDirector
public EasyScoreDirector(EasyScoreDirectorFactory scoreDirectorFactory,
EasyScoreCalculator easyScoreCalculator)
calculateScore
public Score calculateScore()
- Description copied from interface:
ScoreDirector
- Calculates the
Score
and updates the workingSolution
accordingly.
- Returns:
- never null, the
Score
of the workingSolution
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.