Interface TaskLaneChanging.LateralConsideration
- Enclosing class:
- TaskLaneChanging
public static interface TaskLaneChanging.LateralConsideration
Lateral consideration leading to lane change task demand.
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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TaskLaneChanging.LateralConsideration
Desire based lateral consideration. -
Method Summary
Modifier and TypeMethodDescriptiondouble
getConsideration
(LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) Returns fraction of lateral consideration, <0 for left lane, >0 for right lane.
-
Field Details
-
DESIRE
Desire based lateral consideration.
-
-
Method Details
-
getConsideration
double getConsideration(LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) throws org.opentrafficsim.base.parameters.ParameterException, GtuException Returns fraction of lateral consideration, <0 for left lane, >0 for right lane. Should be in the range -1 ... 1.- Parameters:
perception
- LanePerception; perceptiongtu
- LaneBasedGtu; gtuparameters
- Parameters; parameters- Returns:
- double; demand of this task
- Throws:
org.opentrafficsim.base.parameters.ParameterException
- if a parameter is missing or out of boundsGtuException
- exceptions pertaining to the GTU
-