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 Constructor Description VehicleRoutingIncrementalScoreCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEntityAdded(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.HardSoftLongScorecalculateScore()voidresetWorkingSolution(VehicleRoutingSolution solution)
-
-
-
Method Detail
-
resetWorkingSolution
public void resetWorkingSolution(VehicleRoutingSolution solution)
- Specified by:
resetWorkingSolutionin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
beforeVariableChanged
public void beforeVariableChanged(Object entity, String variableName)
- Specified by:
beforeVariableChangedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
afterVariableChanged
public void afterVariableChanged(Object entity, String variableName)
- 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
public void beforeEntityAdded(Object entity)
- Specified by:
beforeEntityAddedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
afterEntityAdded
public void afterEntityAdded(Object entity)
- Specified by:
afterEntityAddedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
beforeEntityRemoved
public void beforeEntityRemoved(Object entity)
- Specified by:
beforeEntityRemovedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
afterEntityRemoved
public void afterEntityRemoved(Object entity)
- Specified by:
afterEntityRemovedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
-
-