Class TaskCarFollowing

All Implemented Interfaces:
org.djutils.base.Identifiable, Task

public class TaskCarFollowing extends TaskHeadwayBased
Task demand for car-following.

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
  • Constructor Details

    • TaskCarFollowing

      public TaskCarFollowing()
      Constructor.
  • Method Details

    • getHeadway

      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.
      Specified by:
      getHeadway in class TaskHeadwayBased
      Parameters:
      perception - LanePerception; perception
      gtu - LaneBasedGtu; gtu
      parameters - Parameters; parameters
      Returns:
      Duration; headway, null of none.