Class TspIncrementalScoreCalculator
java.lang.Object
org.optaplanner.examples.tsp.optional.score.TspIncrementalScoreCalculator
- All Implemented Interfaces:
org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<TspSolution,org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScore>
public class TspIncrementalScoreCalculator
extends Object
implements org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<TspSolution,org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScore>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterEntityAdded(Object entity) voidafterEntityRemoved(Object entity) voidafterVariableChanged(Object entity, String variableName) voidbeforeEntityAdded(Object entity) voidbeforeEntityRemoved(Object entity) voidbeforeVariableChanged(Object entity, String variableName) org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScorevoidresetWorkingSolution(TspSolution tspSolution) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator
afterListVariableChanged, afterListVariableElementAssigned, afterListVariableElementUnassigned, beforeListVariableChanged, beforeListVariableElementAssigned, beforeListVariableElementUnassigned
-
Constructor Details
-
TspIncrementalScoreCalculator
public TspIncrementalScoreCalculator()
-
-
Method Details
-
resetWorkingSolution
- Specified by:
resetWorkingSolutionin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<TspSolution,org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScore>
-
beforeEntityAdded
- Specified by:
beforeEntityAddedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<TspSolution,org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScore>
-
afterEntityAdded
- Specified by:
afterEntityAddedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<TspSolution,org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScore>
-
beforeVariableChanged
- Specified by:
beforeVariableChangedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<TspSolution,org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScore>
-
afterVariableChanged
- Specified by:
afterVariableChangedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<TspSolution,org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScore>
-
beforeEntityRemoved
- Specified by:
beforeEntityRemovedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<TspSolution,org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScore>
-
afterEntityRemoved
- Specified by:
afterEntityRemovedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<TspSolution,org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScore>
-
calculateScore
public org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScore calculateScore()- Specified by:
calculateScorein interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<TspSolution,org.optaplanner.core.api.score.buildin.simplelong.SimpleLongScore>
-