Class TaskLaneChanging
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.mental.AbstractTask
org.opentrafficsim.road.gtu.lane.perception.mental.TaskHeadwayBased
org.opentrafficsim.road.gtu.lane.perception.mental.TaskLaneChanging
- All Implemented Interfaces:
org.djutils.base.Identifiable
,Task
Lane changing task based on car-following (as gap-acceptance proxy), and an underlying consideration to include adjacent
lanes.
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Lateral consideration leading to lane change task demand. -
Constructor Summary
ConstructorDescriptionTaskLaneChanging
(TaskLaneChanging.LateralConsideration lateralConsideration) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.djunits.value.vdouble.scalar.Duration
getHeadway
(LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) Returns a collector for the task demand.Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.mental.TaskHeadwayBased
calculateTaskDemand, getSpeed
Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.mental.AbstractTask
getAnticipationReliance, getId, getTaskDemand, setAnticipationReliance, setTaskDemand, toString
-
Constructor Details
-
TaskLaneChanging
Constructor.- Parameters:
lateralConsideration
- LateralConsideration; lateral consideration
-
-
Method Details
-
getHeadway
protected org.djunits.value.vdouble.scalar.Duration getHeadway(LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) throws org.opentrafficsim.base.parameters.ParameterException Returns a collector for the task demand.- Specified by:
getHeadway
in classTaskHeadwayBased
- Parameters:
perception
- LanePerception; perceptiongtu
- LaneBasedGtu; gtuparameters
- Parameters; parameters- Returns:
- Duration; headway,
null
of none. - Throws:
org.opentrafficsim.base.parameters.ParameterException
- on invalid parameter
-