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 Details

    • VehicleRoutingIncrementalScoreCalculator

      public VehicleRoutingIncrementalScoreCalculator()
  • Method Details

    • resetWorkingSolution

      public void resetWorkingSolution(VehicleRoutingSolution solution)
      Specified by:
      resetWorkingSolution in interface org.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:
      beforeVariableChanged in interface org.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:
      afterVariableChanged in interface org.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:
      beforeListVariableChanged in interface org.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:
      afterListVariableChanged in interface org.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:
      calculateScore in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
    • beforeEntityAdded

      public void beforeEntityAdded(Object entity)
      Specified by:
      beforeEntityAdded in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
    • afterEntityAdded

      public void afterEntityAdded(Object entity)
      Specified by:
      afterEntityAdded in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
    • beforeEntityRemoved

      public void beforeEntityRemoved(Object entity)
      Specified by:
      beforeEntityRemoved in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
    • afterEntityRemoved

      public void afterEntityRemoved(Object entity)
      Specified by:
      afterEntityRemoved in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<VehicleRoutingSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>