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
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
-
Field Summary
Fields inherited from class org.opentrafficsim.road.gtu.lane.tactical.AbstractLaneBasedTacticalPlanner
DT, LANE_TACTICAL_PLANNER, LOOKAHEADFields inherited from interface org.opentrafficsim.core.gtu.plan.tactical.TacticalPlanner
TACTICAL_PLANNER -
Constructor Summary
ConstructorsConstructorDescriptionAbstractIncentivesTacticalPlanner(CarFollowingModel carFollowingModel, LaneBasedGtu gtu, LanePerception lanePerception) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddAccelerationIncentive(AccelerationIncentive incentive) Adds an acceleration incentive.final voidaddMandatoryIncentive(MandatoryIncentive incentive) Adds a mandatory incentive.final voidaddVoluntaryIncentive(VoluntaryIncentive incentive) Adds a voluntary incentive.Returns the acceleration incentives.final ImmutableSet<MandatoryIncentive>Returns the mandatory incentives.final ImmutableSet<VoluntaryIncentive>Returns the voluntary incentives.Methods inherited from class org.opentrafficsim.road.gtu.lane.tactical.AbstractLaneBasedTacticalPlanner
getCarFollowingModel, getGtu, getPerception, setCarFollowingModelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opentrafficsim.road.gtu.lane.tactical.LaneBasedTacticalPlanner
chooseLaneAtSplitMethods inherited from interface org.opentrafficsim.core.gtu.plan.tactical.TacticalPlanner
generateOperationalPlan
-
Constructor Details
-
AbstractIncentivesTacticalPlanner
public AbstractIncentivesTacticalPlanner(CarFollowingModel carFollowingModel, LaneBasedGtu gtu, LanePerception lanePerception) Constructor.- Parameters:
carFollowingModel- Car-following model.gtu- GTUlanePerception- perception
-
-
Method Details
-
addMandatoryIncentive
Adds a mandatory incentive. Ignoresnull.- Parameters:
incentive- Incentive to add.
-
addVoluntaryIncentive
Adds a voluntary incentive. Ignoresnull.- Parameters:
incentive- Incentive to add.
-
addAccelerationIncentive
Adds an acceleration incentive. Ignoresnull.- Parameters:
incentive- Incentive to add.
-
getMandatoryIncentives
Returns the mandatory incentives.- Returns:
- set of mandatory incentives
-
getVoluntaryIncentives
Returns the voluntary incentives.- Returns:
- set of voluntary incentives
-
getAccelerationIncentives
Returns the acceleration incentives.- Returns:
- set of acceleration incentives
-