Interface TaskLaneChanging.LateralConsideration
-
- Enclosing class:
- TaskLaneChanging
public static interface TaskLaneChanging.LateralConsiderationLateral consideration leading to lane change task demand.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 10 apr. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
Fields Modifier and Type Field Description static TaskLaneChanging.LateralConsiderationDESIREDesire based lateral consideration.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetConsideration(LanePerception perception, LaneBasedGTU gtu, Parameters parameters)Returns fraction of lateral consideration, <0 for left lane, >0 for right lane.
-
-
-
Field Detail
-
DESIRE
static final TaskLaneChanging.LateralConsideration DESIRE
Desire based lateral consideration.
-
-
Method Detail
-
getConsideration
double getConsideration(LanePerception perception, LaneBasedGTU gtu, Parameters parameters) throws 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:
ParameterException- if a parameter is missing or out of boundsGTUException- exceptions pertaining to the GTU
-
-