public class EasyScoreDirector extends AbstractScoreDirector<EasyScoreDirectorFactory>
ScoreDirector
, which recalculates the Score
of the Solution
workingSolution every time. This is non-incremental calculation, which is slow.ScoreDirector
allChangesWillBeUndoneBeforeStepEnds, calculateCount, constraintMatchEnabledPreference, logger, scoreDirectorFactory, variableListenerSupport, workingEntityListRevision, workingSolution
Constructor and Description |
---|
EasyScoreDirector(EasyScoreDirectorFactory scoreDirectorFactory,
boolean constraintMatchEnabledPreference,
EasyScoreCalculator easyScoreCalculator) |
Modifier and Type | Method and Description |
---|---|
Score |
calculateScore()
Calculates the
Score and updates the workingSolution accordingly. |
Collection<ConstraintMatchTotal> |
getConstraintMatchTotals() |
boolean |
isConstraintMatchEnabled() |
afterEntityAdded, afterEntityAdded, afterEntityRemoved, afterEntityRemoved, afterProblemFactAdded, afterProblemFactChanged, afterProblemFactRemoved, afterVariableChanged, afterVariableChanged, assertExpectedWorkingScore, assertShadowVariablesAreNotStale, assertWorkingScoreFromScratch, beforeEntityAdded, beforeEntityAdded, beforeEntityRemoved, beforeEntityRemoved, beforeProblemFactAdded, beforeProblemFactChanged, beforeProblemFactRemoved, beforeVariableChanged, beforeVariableChanged, buildScoreCorruptionAnalysis, changeVariableFacade, clone, cloneSolution, cloneWorkingSolution, countWorkingSolutionUninitializedVariables, dispose, getCalculateCount, getScoreDefinition, getScoreDirectorFactory, getSolutionDescriptor, getSupplyManager, getWorkingEntityCount, getWorkingEntityList, getWorkingEntityListRevision, getWorkingSolution, getWorkingValueCount, isAllChangesWillBeUndoneBeforeStepEnds, isWorkingEntityListDirty, resetCalculateCount, setAllChangesWillBeUndoneBeforeStepEnds, setCalculatedScore, setWorkingEntityListDirty, setWorkingSolution, toString, triggerVariableListeners
public EasyScoreDirector(EasyScoreDirectorFactory scoreDirectorFactory, boolean constraintMatchEnabledPreference, EasyScoreCalculator easyScoreCalculator)
public Score calculateScore()
ScoreDirector
Score
and updates the workingSolution
accordingly.Score
of the workingSolution
public boolean isConstraintMatchEnabled()
ScoreDirector.getConstraintMatchTotals()
can be calledpublic Collection<ConstraintMatchTotal> getConstraintMatchTotals()
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.