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.
This score director implementation does not support ScoreDirector.getConstraintMatchTotals(),
ScoreDirector.getConstraintMatchTotalMap() and ScoreDirector.getIndictmentMap().ScoreDirectorallChangesWillBeUndoneBeforeStepEnds, calculationCount, constraintMatchEnabledPreference, logger, lookUpEnabled, lookUpManager, scoreDirectorFactory, variableListenerSupport, workingEntityListRevision, workingInitScore, workingSolution| Constructor and Description |
|---|
EasyScoreDirector(EasyScoreDirectorFactory<Solution_> scoreDirectorFactory,
boolean lookUpEnabled,
boolean constraintMatchEnabledPreference,
EasyScoreCalculator<Solution_,?> easyScoreCalculator) |
| Modifier and Type | Method and Description |
|---|---|
Score |
calculateScore()
Calculates the
Score and updates the working solution accordingly. |
Map<String,ConstraintMatchTotal> |
getConstraintMatchTotalMap()
ConstraintMatchs are not supported by this ScoreDirector implementation. |
Collection<ConstraintMatchTotal> |
getConstraintMatchTotals()
ConstraintMatchs are not supported by this ScoreDirector implementation. |
EasyScoreCalculator<Solution_,?> |
getEasyScoreCalculator() |
Map<Object,Indictment> |
getIndictmentMap()
ConstraintMatchs are not supported by this ScoreDirector implementation. |
boolean |
isConstraintMatchEnabled()
Always false,
ConstraintMatchTotals are not supported by this ScoreDirector implementation. |
afterEntityAdded, afterEntityAdded, afterEntityRemoved, afterEntityRemoved, afterProblemFactAdded, afterProblemFactRemoved, afterProblemPropertyChanged, afterVariableChanged, afterVariableChanged, assertExpectedUndoMoveScore, assertExpectedWorkingScore, assertPredictedScoreFromScratch, assertShadowVariablesAreNotStale, assertWorkingScoreFromScratch, beforeEntityAdded, beforeEntityAdded, beforeEntityRemoved, beforeEntityRemoved, beforeProblemFactAdded, beforeProblemFactRemoved, beforeProblemPropertyChanged, beforeVariableChanged, beforeVariableChanged, buildScoreCorruptionAnalysis, buildShadowVariableAnalysis, changeVariableFacade, clone, cloneSolution, cloneWorkingSolution, close, createChildThreadScoreDirector, createShadowVariablesViolationMessage, doAndProcessMove, doAndProcessMove, explainScore, getCalculationCount, getScoreDefinition, getScoreDirectorFactory, getSolutionDescriptor, getSupplyManager, getWorkingEntityCount, getWorkingEntityList, getWorkingEntityListRevision, getWorkingSolution, getWorkingValueCount, isAllChangesWillBeUndoneBeforeStepEnds, isConstraintMatchEnabledPreference, isLookUpEnabled, isWorkingEntityListDirty, lookUpWorkingObject, lookUpWorkingObjectOrReturnNull, overwriteConstraintMatchEnabledPreference, resetCalculationCount, setAllChangesWillBeUndoneBeforeStepEnds, setCalculatedScore, setWorkingEntityListDirty, setWorkingSolution, toString, triggerVariableListenersequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdisposepublic EasyScoreDirector(EasyScoreDirectorFactory<Solution_> scoreDirectorFactory, boolean lookUpEnabled, boolean constraintMatchEnabledPreference, EasyScoreCalculator<Solution_,?> easyScoreCalculator)
public EasyScoreCalculator<Solution_,?> getEasyScoreCalculator()
public Score calculateScore()
ScoreDirectorScore and updates the working solution accordingly.Score of the working solutionpublic boolean isConstraintMatchEnabled()
ConstraintMatchTotals are not supported by this ScoreDirector implementation.public Collection<ConstraintMatchTotal> getConstraintMatchTotals()
ConstraintMatchs are not supported by this ScoreDirector implementation.IllegalStateExceptionIllegalStateException - alwaysScoreDirector.getConstraintMatchTotalMap(),
ScoreDirector.getIndictmentMap()public Map<String,ConstraintMatchTotal> getConstraintMatchTotalMap()
ConstraintMatchs are not supported by this ScoreDirector implementation.IllegalStateExceptionIllegalStateException - alwaysScoreDirector.getIndictmentMap()public Map<Object,Indictment> getIndictmentMap()
ConstraintMatchs are not supported by this ScoreDirector implementation.IllegalStateExceptionIllegalStateException - alwaysScoreDirector.getConstraintMatchTotalMap()Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.