Class ArrivalTimeUpdatingVariableListener

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

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

      • ArrivalTimeUpdatingVariableListener

        public ArrivalTimeUpdatingVariableListener()
    • Method Detail

      • beforeEntityAdded

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

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

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

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

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

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

        protected void updateArrivalTime​(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
                                         TimeWindowedCustomer sourceCustomer)