Class ChannelTaskCarFollowing

java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.mental.AbstractTask
org.opentrafficsim.road.gtu.lane.perception.mental.channel.ChannelTaskCarFollowing
All Implemented Interfaces:
Identifiable, ChannelTask, Task

public class ChannelTaskCarFollowing extends AbstractTask implements ChannelTask
Task demand for car-following. This is defined as exp(-T/h) where T is the time headway to the leader and h is the car-following task parameter that scales it.

Copyright (c) 2024-2025 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Wouter Schakel
  • Field Details

  • Constructor Details

    • ChannelTaskCarFollowing

      public ChannelTaskCarFollowing()
      Constructor that will use the first leader from NeighborsPerception in the current lane.
    • ChannelTaskCarFollowing

      public ChannelTaskCarFollowing(Function<LanePerception,PerceptionCollectable.UnderlyingDistance<LaneBasedGtu>> leaderSupplier)
      Constructor that provides a supplier for a leader that follows a non-default logic.
      Parameters:
      leaderSupplier - leader supplier
  • Method Details