Class TaskCarFollowing
- 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.TaskCarFollowing
-
- All Implemented Interfaces:
Identifiable
,Task
public class TaskCarFollowing extends TaskHeadwayBased
Task demand for car-following.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 3 apr. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description TaskCarFollowing()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Duration
getHeadway(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, getSpeed
-
Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.mental.AbstractTask
getAnticipationReliance, getId, getTaskDemand, setAnticipationReliance, setTaskDemand, toString
-
-
-
-
Method Detail
-
getHeadway
protected Duration getHeadway(LanePerception perception, LaneBasedGTU gtu, Parameters parameters)
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.
-
-