Class AbstractIncentivesTacticalPlanner
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.AbstractLaneBasedTacticalPlanner
org.opentrafficsim.road.gtu.lane.tactical.lmrs.AbstractIncentivesTacticalPlanner
- All Implemented Interfaces:
Serializable
,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
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.opentrafficsim.base.parameters.ParameterTypeClassList<AccelerationIncentive>
Parameter type for acceleration incentives.static final org.opentrafficsim.base.parameters.ParameterTypeClassList<MandatoryIncentive>
Parameter type for mandatory lane change incentives.static final org.opentrafficsim.base.parameters.ParameterTypeClassList<VoluntaryIncentive>
Parameter type for voluntary lane change incentives.Fields inherited from class org.opentrafficsim.road.gtu.lane.tactical.AbstractLaneBasedTacticalPlanner
DT, LOOKAHEAD, TACTICAL_PLANNER
-
Constructor Summary
ConstructorDescriptionAbstractIncentivesTacticalPlanner
(CarFollowingModel carFollowingModel, LaneBasedGtu gtu, LanePerception lanePerception) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addAccelerationIncentive
(AccelerationIncentive incentive) Adds an acceleration incentive.final void
addMandatoryIncentive
(MandatoryIncentive incentive) Adds a mandatory incentive.final void
addVoluntaryIncentive
(VoluntaryIncentive incentive) Adds a voluntary incentive.final org.djutils.immutablecollections.ImmutableSet<AccelerationIncentive>
Returns the acceleration incentives.final org.djutils.immutablecollections.ImmutableSet<MandatoryIncentive>
Returns the mandatory incentives.final org.djutils.immutablecollections.ImmutableSet<VoluntaryIncentive>
Returns the voluntary incentives.final void
Sets the default lane change incentives.Methods inherited from class org.opentrafficsim.road.gtu.lane.tactical.AbstractLaneBasedTacticalPlanner
buildLanePathInfo, buildLanePathInfo, buildLinkListForward, concatenateNull, connectsToPath, determineNextSplit, getCarFollowingModel, getGtu, getPerception, noLaneDrop, setCarFollowingModel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opentrafficsim.road.gtu.lane.tactical.LaneBasedTacticalPlanner
chooseLaneAtSplit, okDistance
Methods inherited from interface org.opentrafficsim.core.gtu.plan.tactical.TacticalPlanner
generateOperationalPlan
-
Field Details
-
MANDATORY
public static final org.opentrafficsim.base.parameters.ParameterTypeClassList<MandatoryIncentive> MANDATORYParameter type for mandatory lane change incentives. -
VOLUNTARY
public static final org.opentrafficsim.base.parameters.ParameterTypeClassList<VoluntaryIncentive> VOLUNTARYParameter type for voluntary lane change incentives. -
ACCELERATION
public static final org.opentrafficsim.base.parameters.ParameterTypeClassList<AccelerationIncentive> ACCELERATIONParameter type for acceleration incentives.
-
-
Constructor Details
-
AbstractIncentivesTacticalPlanner
public AbstractIncentivesTacticalPlanner(CarFollowingModel carFollowingModel, LaneBasedGtu gtu, LanePerception lanePerception) Constructor.- Parameters:
carFollowingModel
- CarFollowingModel; Car-following model.gtu
- LaneBasedGtu; GTUlanePerception
- LanePerception; perception
-
-
Method Details
-
addMandatoryIncentive
Adds a mandatory incentive. Ignoresnull
.- Parameters:
incentive
- MandatoryIncentive; Incentive to add.
-
addVoluntaryIncentive
Adds a voluntary incentive. Ignoresnull
.- Parameters:
incentive
- VoluntaryIncentive; Incentive to add.
-
addAccelerationIncentive
Adds an acceleration incentive. Ignoresnull
.- Parameters:
incentive
- AccelerationIncentive; Incentive to add.
-
setDefaultIncentives
public final void setDefaultIncentives()Sets the default lane change incentives. -
getMandatoryIncentives
public final org.djutils.immutablecollections.ImmutableSet<MandatoryIncentive> getMandatoryIncentives()Returns the mandatory incentives.- Returns:
- ImmutableSet<MandatoryIncentive>; set of mandatory incentives
-
getVoluntaryIncentives
public final org.djutils.immutablecollections.ImmutableSet<VoluntaryIncentive> getVoluntaryIncentives()Returns the voluntary incentives.- Returns:
- ImmutableSet<VoluntaryIncentive>; set of voluntary incentives
-
getAccelerationIncentives
public final org.djutils.immutablecollections.ImmutableSet<AccelerationIncentive> getAccelerationIncentives()Returns the acceleration incentives.- Returns:
- ImmutableSet<AccelerationIncentive>; set of acceleration incentives
-