Class AbstractIncentivesTacticalPlanner

    • Constructor Detail

      • AbstractIncentivesTacticalPlanner

        public AbstractIncentivesTacticalPlanner​(CarFollowingModel carFollowingModel,
                                                 LaneBasedGTU gtu,
                                                 LanePerception lanePerception)
        Constructor.
        Parameters:
        carFollowingModel - CarFollowingModel; Car-following model.
        gtu - LaneBasedGTU; GTU
        lanePerception - LanePerception; perception
    • Method Detail

      • addMandatoryIncentive

        public final void addMandatoryIncentive​(MandatoryIncentive incentive)
        Adds a mandatory incentive. Ignores null.
        Parameters:
        incentive - MandatoryIncentive; Incentive to add.
      • addVoluntaryIncentive

        public final void addVoluntaryIncentive​(VoluntaryIncentive incentive)
        Adds a voluntary incentive. Ignores null.
        Parameters:
        incentive - VoluntaryIncentive; Incentive to add.
      • addAccelerationIncentive

        public final void addAccelerationIncentive​(AccelerationIncentive incentive)
        Adds an acceleration incentive. Ignores null.
        Parameters:
        incentive - AccelerationIncentive; Incentive to add.
      • setDefaultIncentives

        public final void setDefaultIncentives()
        Sets the default lane change incentives.
      • getMandatoryIncentives

        public final ImmutableSet<MandatoryIncentive> getMandatoryIncentives()
        Returns the mandatory incentives.
        Returns:
        ImmutableSet<MandatoryIncentive>; set of mandatory incentives
      • getVoluntaryIncentives

        public final ImmutableSet<VoluntaryIncentive> getVoluntaryIncentives()
        Returns the voluntary incentives.
        Returns:
        ImmutableSet<VoluntaryIncentive>; set of voluntary incentives
      • getAccelerationIncentives

        public final ImmutableSet<AccelerationIncentive> getAccelerationIncentives()
        Returns the acceleration incentives.
        Returns:
        ImmutableSet<AccelerationIncentive>; set of acceleration incentives