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:
 Identifiable,Task
public class TaskLaneChanging extends TaskHeadwayBased
Lane changing task based on car-following (as gap-acceptance proxy), and an underlying consideration to include adjacent
 lanes.
 
 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
 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTaskLaneChanging.LateralConsiderationLateral consideration leading to lane change task demand. - 
Constructor Summary
Constructors Constructor Description TaskLaneChanging(TaskLaneChanging.LateralConsideration lateralConsideration)Constructor. - 
Method Summary
Modifier and Type Method Description protected DurationgetHeadway(LanePerception perception, LaneBasedGTU gtu, Parameters parameters)Returns a collector for the task demand.Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.mental.TaskHeadwayBased
calculateTaskDemand, getSpeedMethods 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 Duration getHeadway(LanePerception perception, LaneBasedGTU gtu, Parameters parameters) throws ParameterExceptionReturns a collector for the task demand.- Specified by:
 getHeadwayin classTaskHeadwayBased- Parameters:
 perception- LanePerception; perceptiongtu- LaneBasedGTU; gtuparameters- Parameters; parameters- Returns:
 - Duration; headway, 
nullof none. - Throws:
 ParameterException- on invalid parameter
 
 -