org.optaplanner.core.impl.score.director.incremental
Sol
- public interface IncrementalScoreCalculator<Sol extends Solution>
Score
calculation.
This is much faster than SimpleScoreCalculator
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) |
String |
buildScoreCorruptionAnalysis(IncrementalScoreCalculator uncorruptedIncrementalScoreCalculator) |
Score |
calculateScore() |
void |
resetWorkingSolution(Sol workingSolution) |
void resetWorkingSolution(Sol workingSolution)
void beforeEntityAdded(Object entity)
void afterEntityAdded(Object entity)
void beforeEntityRemoved(Object entity)
void afterEntityRemoved(Object entity)
Score calculateScore()
String buildScoreCorruptionAnalysis(IncrementalScoreCalculator uncorruptedIncrementalScoreCalculator)
uncorruptedIncrementalScoreCalculator
- never nullIncrementalScoreCalculator
implementation does not support this.Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.