Class SteeringLmrs
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.AbstractLaneBasedTacticalPlanner
org.opentrafficsim.road.gtu.lane.tactical.steering.SteeringLmrs
- All Implemented Interfaces:
java.io.Serializable
,TacticalPlanner<LaneBasedGTU,LanePerception>
,LaneBasedTacticalPlanner
public class SteeringLmrs extends AbstractLaneBasedTacticalPlanner
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 8 jan. 2019
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static ParameterTypeClassList<MandatoryIncentive>
MANDATORY
Parameter type for mandatory lane change incentives.static ParameterTypeClassList<VoluntaryIncentive>
VOLUNTARY
Parameter type for voluntary lane change incentives.Fields inherited from class org.opentrafficsim.road.gtu.lane.tactical.AbstractLaneBasedTacticalPlanner
DT, LOOKAHEAD, TACTICAL_PLANNER
-
Constructor Summary
Constructors Constructor Description SteeringLmrs(CarFollowingModel carFollowingModel, LaneBasedGTU gtu, LanePerception lanePerception, Synchronization synchronization, Cooperation cooperation, GapAcceptance gapAcceptance, Steering.FeedbackTable feedbackTable)
Constructor setting the car-following model. -
Method Summary
Modifier and Type Method Description void
addMandatoryIncentive(MandatoryIncentive incentive)
Adds a mandatory incentive.void
addVoluntaryIncentive(VoluntaryIncentive incentive)
Adds a voluntary incentive.OperationalPlan
generateOperationalPlan(Time startTime, DirectedPoint locationAtStartTime)
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
-
Field Details
-
Constructor Details
-
SteeringLmrs
public SteeringLmrs(CarFollowingModel carFollowingModel, LaneBasedGTU gtu, LanePerception lanePerception, Synchronization synchronization, Cooperation cooperation, GapAcceptance gapAcceptance, Steering.FeedbackTable feedbackTable)Constructor setting the car-following model.- Parameters:
carFollowingModel
- CarFollowingModel; Car-following model.gtu
- LaneBasedGTU; GTUlanePerception
- LanePerception; perceptionsynchronization
- Synchronization; type of synchronizationcooperation
- Cooperation; type of cooperationgapAcceptance
- GapAcceptance; gap-acceptancefeedbackTable
- FeedbackTable; feedback table
-
-
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.
-
generateOperationalPlan
public final OperationalPlan generateOperationalPlan(Time startTime, DirectedPoint locationAtStartTime) throws OperationalPlanException, GTUException, NetworkException, ParameterException
-