Class VehicleRoutingIncrementalScoreCalculator
java.lang.Object
org.optaplanner.examples.vehiclerouting.optional.score.VehicleRoutingIncrementalScoreCalculator
- All Implemented Interfaces:
org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
public class VehicleRoutingIncrementalScoreCalculator
extends Object
implements org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterEntityAdded(Object entity) voidafterEntityRemoved(Object entity) voidafterListVariableChanged(Object entity, String variableName, int fromIndex, int toIndex) voidafterVariableChanged(Object entity, String variableName) voidbeforeEntityAdded(Object entity) voidbeforeEntityRemoved(Object entity) voidbeforeListVariableChanged(Object entity, String variableName, int fromIndex, int toIndex) voidbeforeVariableChanged(Object entity, String variableName) org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScorevoidresetWorkingSolution(VehicleRoutingSolution solution) 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
afterListVariableElementAssigned, afterListVariableElementUnassigned, beforeListVariableElementAssigned, beforeListVariableElementUnassigned
-
Constructor Details
-
VehicleRoutingIncrementalScoreCalculator
public VehicleRoutingIncrementalScoreCalculator()
-
-
Method Details
-
resetWorkingSolution
- Specified by:
resetWorkingSolutionin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
beforeVariableChanged
- Specified by:
beforeVariableChangedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
afterVariableChanged
- Specified by:
afterVariableChangedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
beforeListVariableChanged
public void beforeListVariableChanged(Object entity, String variableName, int fromIndex, int toIndex) - Specified by:
beforeListVariableChangedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
afterListVariableChanged
public void afterListVariableChanged(Object entity, String variableName, int fromIndex, int toIndex) - Specified by:
afterListVariableChangedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
calculateScore
public org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore calculateScore()- Specified by:
calculateScorein interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
beforeEntityAdded
- Specified by:
beforeEntityAddedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
afterEntityAdded
- Specified by:
afterEntityAddedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
beforeEntityRemoved
- Specified by:
beforeEntityRemovedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
afterEntityRemoved
- Specified by:
afterEntityRemovedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-