Class TransportTimeToHubUpdatingVariableListener

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.optaplanner.core.api.domain.variable.VariableListener<BusOrStop>, org.optaplanner.core.impl.domain.variable.listener.VariableListener<BusOrStop>, org.optaplanner.core.impl.domain.variable.supply.Supply

    public class TransportTimeToHubUpdatingVariableListener
    extends Object
    implements org.optaplanner.core.impl.domain.variable.listener.VariableListener<BusOrStop>
    • Constructor Detail

      • TransportTimeToHubUpdatingVariableListener

        public TransportTimeToHubUpdatingVariableListener()
    • Method Detail

      • beforeEntityAdded

        public void beforeEntityAdded​(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
                                      BusOrStop busOrStop)
        Specified by:
        beforeEntityAdded in interface org.optaplanner.core.api.domain.variable.VariableListener<BusOrStop>
        Specified by:
        beforeEntityAdded in interface org.optaplanner.core.impl.domain.variable.listener.VariableListener<BusOrStop>
      • afterEntityAdded

        public void afterEntityAdded​(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
                                     BusOrStop busOrStop)
        Specified by:
        afterEntityAdded in interface org.optaplanner.core.api.domain.variable.VariableListener<BusOrStop>
        Specified by:
        afterEntityAdded in interface org.optaplanner.core.impl.domain.variable.listener.VariableListener<BusOrStop>
      • beforeVariableChanged

        public void beforeVariableChanged​(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
                                          BusOrStop busOrStop)
        Specified by:
        beforeVariableChanged in interface org.optaplanner.core.api.domain.variable.VariableListener<BusOrStop>
        Specified by:
        beforeVariableChanged in interface org.optaplanner.core.impl.domain.variable.listener.VariableListener<BusOrStop>
      • afterVariableChanged

        public void afterVariableChanged​(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
                                         BusOrStop busOrStop)
        Specified by:
        afterVariableChanged in interface org.optaplanner.core.api.domain.variable.VariableListener<BusOrStop>
        Specified by:
        afterVariableChanged in interface org.optaplanner.core.impl.domain.variable.listener.VariableListener<BusOrStop>
      • beforeEntityRemoved

        public void beforeEntityRemoved​(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
                                        BusOrStop busOrStop)
        Specified by:
        beforeEntityRemoved in interface org.optaplanner.core.api.domain.variable.VariableListener<BusOrStop>
        Specified by:
        beforeEntityRemoved in interface org.optaplanner.core.impl.domain.variable.listener.VariableListener<BusOrStop>
      • afterEntityRemoved

        public void afterEntityRemoved​(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
                                       BusOrStop busOrStop)
        Specified by:
        afterEntityRemoved in interface org.optaplanner.core.api.domain.variable.VariableListener<BusOrStop>
        Specified by:
        afterEntityRemoved in interface org.optaplanner.core.impl.domain.variable.listener.VariableListener<BusOrStop>
      • updateTransportTimeToHub

        protected void updateTransportTimeToHub​(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
                                                BusStop sourceStop)