|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScoreDirector
The ScoreDirector hold the Solution
workingSolution and calculates the score for that Solution
.
Method Detail |
---|
SolutionDescriptor getSolutionDescriptor()
ScoreDefinition getScoreDefinition()
Solution getWorkingSolution()
Solution
that is used to calculate the Score
.
Because a Score
is best calculated incrementally (by delta's),
the ScoreDirector
needs to be notified when it's workingSolution changes.
If the Solution
has been changed since calculateScore()
has been called,
the Solution.getScore()
of this Solution
won't be correct.
void setWorkingSolution(Solution workingSolution)
workingSolution
- never nullvoid beforeEntityAdded(Object entity)
void afterEntityAdded(Object entity)
void beforeAllVariablesChanged(Object entity)
void afterAllVariablesChanged(Object entity)
void beforeVariableChanged(Object entity, String variableName)
void afterVariableChanged(Object entity, String variableName)
void beforeEntityRemoved(Object entity)
void afterEntityRemoved(Object entity)
void beforeProblemFactAdded(Object problemFact)
void afterProblemFactAdded(Object problemFact)
void beforeProblemFactChanged(Object problemFact)
void afterProblemFactChanged(Object problemFact)
void beforeProblemFactRemoved(Object problemFact)
void afterProblemFactRemoved(Object problemFact)
List<Object> getWorkingPlanningEntityList()
boolean isWorkingSolutionInitialized()
Score calculateScore()
Score
and updates the workingSolution accordingly.
Score
of the working solutionlong getCalculateCount()
Map<Object,List<Object>> getVariableToEntitiesMap(PlanningVariableDescriptor variableDescriptor)
variableDescriptor
- never null
void assertWorkingScore(Score workingScore)
workingScore
- never nullvoid dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |