Solution_ - the solution type, the class with the PlanningSolution annotationpublic class EasyScoreDirector<Solution_> extends AbstractScoreDirector<Solution_,EasyScoreDirectorFactory<Solution_>>
ScoreDirector, which recalculates the Score
of the working solution every time. This is non-incremental calculation, which is slow.ScoreDirectorallChangesWillBeUndoneBeforeStepEnds, calculationCount, constraintMatchEnabledPreference, logger, scoreDirectorFactory, variableListenerSupport, workingEntityListRevision, workingInitScore, workingSolution| Constructor and Description |
|---|
EasyScoreDirector(EasyScoreDirectorFactory<Solution_> scoreDirectorFactory,
boolean constraintMatchEnabledPreference,
EasyScoreCalculator<Solution_> easyScoreCalculator) |
| Modifier and Type | Method and Description |
|---|---|
Score |
calculateScore()
Calculates the
Score and updates the working solution 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, dispose, getCalculationCount, getScoreDefinition, getScoreDirectorFactory, getSolutionDescriptor, getSupplyManager, getWorkingEntityCount, getWorkingEntityList, getWorkingEntityListRevision, getWorkingSolution, getWorkingValueCount, isAllChangesWillBeUndoneBeforeStepEnds, isWorkingEntityListDirty, resetCalculationCount, setAllChangesWillBeUndoneBeforeStepEnds, setCalculatedScore, setWorkingEntityListDirty, setWorkingSolution, toString, triggerVariableListenerspublic EasyScoreDirector(EasyScoreDirectorFactory<Solution_> scoreDirectorFactory, boolean constraintMatchEnabledPreference, EasyScoreCalculator<Solution_> easyScoreCalculator)
public Score calculateScore()
ScoreDirectorScore and updates the working solution accordingly.Score of the working solutionpublic boolean isConstraintMatchEnabled()
ScoreDirector.getConstraintMatchTotals() can be calledpublic Collection<ConstraintMatchTotal> getConstraintMatchTotals()
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.