Class AbstractIncentivesTacticalPlanner

    • Field Detail

      • MANDATORY

        public static final org.opentrafficsim.base.parameters.ParameterTypeClassList<MandatoryIncentive> MANDATORY
        Parameter type for mandatory lane change incentives.
      • VOLUNTARY

        public static final org.opentrafficsim.base.parameters.ParameterTypeClassList<VoluntaryIncentive> VOLUNTARY
        Parameter type for voluntary lane change incentives.
      • ACCELERATION

        public static final org.opentrafficsim.base.parameters.ParameterTypeClassList<AccelerationIncentive> ACCELERATION
        Parameter type for acceleration incentives.
    • 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