Class 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 Detail

      • VehicleRoutingIncrementalScoreCalculator

        public VehicleRoutingIncrementalScoreCalculator()
    • Method Detail

      • 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>
      • 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>
      • 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>
      • 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>
      • 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>