public class TaskLaneChanging extends TaskHeadwayBased
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Class and Description |
---|---|
static interface |
TaskLaneChanging.LateralConsideration
Lateral consideration leading to lane change task demand.
|
TaskHeadwayBased.TaskHeadwayCollector
Fuller.Task.Constant
Constructor and Description |
---|
TaskLaneChanging(TaskLaneChanging.LateralConsideration lateralConsideration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.djunits.value.vdouble.scalar.Duration |
getHeadway(LanePerception perception,
LaneBasedGTU gtu,
org.opentrafficsim.base.parameters.Parameters parameters)
Returns a collector for the task demand.
|
demand, getSpeed
public TaskLaneChanging(TaskLaneChanging.LateralConsideration lateralConsideration)
lateralConsideration
- LateralConsideration; lateral considerationprotected org.djunits.value.vdouble.scalar.Duration getHeadway(LanePerception perception, LaneBasedGTU gtu, org.opentrafficsim.base.parameters.Parameters parameters) throws org.opentrafficsim.base.parameters.ParameterException
getHeadway
in class TaskHeadwayBased
perception
- LanePerception; perceptiongtu
- LaneBasedGTU; gtuparameters
- Parameters; parametersnull
of none.org.opentrafficsim.base.parameters.ParameterException
- on invalid parameterCopyright © 2014–2018 Delft University of Technology. All rights reserved.