Class AbstractIncentivesTacticalPlanner

java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.AbstractLaneBasedTacticalPlanner
org.opentrafficsim.road.gtu.lane.tactical.lmrs.AbstractIncentivesTacticalPlanner
All Implemented Interfaces:
TacticalPlanner<LaneBasedGtu,LanePerception>, LaneBasedTacticalPlanner
Direct Known Subclasses:
Lmrs

public abstract class AbstractIncentivesTacticalPlanner extends AbstractLaneBasedTacticalPlanner

Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Details

    • AbstractIncentivesTacticalPlanner

      public AbstractIncentivesTacticalPlanner(CarFollowingModel carFollowingModel, LaneBasedGtu gtu, LanePerception lanePerception)
      Constructor.
      Parameters:
      carFollowingModel - Car-following model.
      gtu - GTU
      lanePerception - perception
  • Method Details

    • addMandatoryIncentive

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

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

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

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

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

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