org.optaplanner.core.impl.score.director.simple
Class SimpleScoreDirector
java.lang.Object
org.optaplanner.core.impl.score.director.AbstractScoreDirector<SimpleScoreDirectorFactory>
org.optaplanner.core.impl.score.director.simple.SimpleScoreDirector
- All Implemented Interfaces:
- ScoreDirector
public class SimpleScoreDirector
- extends AbstractScoreDirector<SimpleScoreDirectorFactory>
Simple 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 |
afterAllVariablesChanged, afterEntityAdded, afterEntityRemoved, afterProblemFactAdded, afterProblemFactChanged, afterProblemFactRemoved, afterVariableChanged, appendLegacyConstraintOccurrences, assertExpectedWorkingScore, assertWorkingScoreFromScratch, beforeAllVariablesChanged, beforeEntityAdded, beforeEntityRemoved, beforeProblemFactAdded, beforeProblemFactChanged, beforeProblemFactRemoved, beforeVariableChanged, buildScoreCorruptionAnalysis, clone, cloneWorkingSolution, countWorkingSolutionUninitializedVariables, dispose, getCalculateCount, getConstraintMatchTotals, getScoreDefinition, getScoreDirectorFactory, getSolutionDescriptor, getTrailingEntity, getWorkingEntityCount, getWorkingEntityList, getWorkingSolution, getWorkingValueCount, isConstraintMatchEnabled, isWorkingSolutionInitialized, setCalculatedScore, setWorkingSolution, toString |
SimpleScoreDirector
public SimpleScoreDirector(SimpleScoreDirectorFactory scoreDirectorFactory,
SimpleScoreCalculator simpleScoreCalculator)
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-2013 JBoss by Red Hat. All Rights Reserved.