Class SteeringLmrs
- java.lang.Object
-
- org.opentrafficsim.road.gtu.lane.tactical.AbstractLaneBasedTacticalPlanner
-
- org.opentrafficsim.road.gtu.lane.tactical.steering.SteeringLmrs
-
- All Implemented Interfaces:
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>MANDATORYParameter type for mandatory lane change incentives.static ParameterTypeClassList<VoluntaryIncentive>VOLUNTARYParameter 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMandatoryIncentive(MandatoryIncentive incentive)Adds a mandatory incentive.voidaddVoluntaryIncentive(VoluntaryIncentive incentive)Adds a voluntary incentive.OperationalPlangenerateOperationalPlan(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 Detail
-
MANDATORY
public static final ParameterTypeClassList<MandatoryIncentive> MANDATORY
Parameter type for mandatory lane change incentives.
-
VOLUNTARY
public static final ParameterTypeClassList<VoluntaryIncentive> VOLUNTARY
Parameter type for voluntary lane change incentives.
-
-
Constructor Detail
-
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 Detail
-
addMandatoryIncentive
public final void addMandatoryIncentive(MandatoryIncentive incentive)
Adds a mandatory incentive. Ignoresnull.- Parameters:
incentive- MandatoryIncentive; Incentive to add.
-
addVoluntaryIncentive
public final void addVoluntaryIncentive(VoluntaryIncentive incentive)
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
-
-