Sol
- public interface IncrementalScoreCalculator<Sol extends Solution>
Score
calculation.
This is much faster than EasyScoreCalculator
but requires much more code to implement too.
Any implementation is naturally stateful.IncrementalScoreDirector
Modifier and Type | Method and Description |
---|---|
void |
afterEntityAdded(Object entity) |
void |
afterEntityRemoved(Object entity) |
void |
afterVariableChanged(Object entity,
String variableName) |
void |
beforeEntityAdded(Object entity) |
void |
beforeEntityRemoved(Object entity) |
void |
beforeVariableChanged(Object entity,
String variableName) |
Score |
calculateScore() |
void |
resetWorkingSolution(Sol workingSolution)
There are no
beforeEntityAdded(Object) and afterEntityAdded(Object) calls
for entities that are already present in the workingSolution. |
void resetWorkingSolution(Sol workingSolution)
beforeEntityAdded(Object)
and afterEntityAdded(Object)
calls
for entities that are already present in the workingSolution.workingSolution
- never nullvoid beforeEntityAdded(Object entity)
void afterEntityAdded(Object entity)
void beforeEntityRemoved(Object entity)
void afterEntityRemoved(Object entity)
Score calculateScore()
Copyright © 2006-2015 JBoss by Red Hat. All Rights Reserved.