org.optaplanner.core.impl.score.director.simple
public class SimpleScoreDirector extends AbstractScoreDirector<SimpleScoreDirectorFactory>
ScoreDirector
, which recalculates the Score
of the Solution
workingSolution every time. This is non-incremental calculation, which is slow.ScoreDirector
calculateCount, constraintMatchEnabledPreference, logger, scoreDirectorFactory, trailingEntityMapSupport, variableListenerSupport, workingSolution
Constructor and Description |
---|
SimpleScoreDirector(SimpleScoreDirectorFactory scoreDirectorFactory,
SimpleScoreCalculator simpleScoreCalculator) |
Modifier and Type | Method and Description |
---|---|
Score |
calculateScore()
Calculates the
Score and updates the workingSolution accordingly. |
afterEntityAdded, afterEntityAdded, afterEntityRemoved, afterEntityRemoved, afterProblemFactAdded, afterProblemFactChanged, afterProblemFactRemoved, afterShadowVariableChanged, afterVariableChanged, afterVariableChanged, appendLegacyConstraintOccurrences, assertExpectedWorkingScore, assertWorkingScoreFromScratch, beforeEntityAdded, beforeEntityAdded, beforeEntityRemoved, beforeEntityRemoved, beforeProblemFactAdded, beforeProblemFactChanged, beforeProblemFactRemoved, beforeShadowVariableChanged, beforeVariableChanged, beforeVariableChanged, buildScoreCorruptionAnalysis, clone, cloneWorkingSolution, countWorkingSolutionUninitializedVariables, dispose, getCalculateCount, getConstraintMatchTotals, getScoreDefinition, getScoreDirectorFactory, getSolutionDescriptor, getTrailingEntity, getWorkingEntityCount, getWorkingEntityList, getWorkingSolution, getWorkingValueCount, isConstraintMatchEnabled, isWorkingSolutionInitialized, setCalculatedScore, setWorkingSolution, toString
public SimpleScoreDirector(SimpleScoreDirectorFactory scoreDirectorFactory, SimpleScoreCalculator simpleScoreCalculator)
public Score calculateScore()
ScoreDirector
Score
and updates the workingSolution
accordingly.Score
of the workingSolution
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.