Interface TrafficPerception

All Superinterfaces:
LaneBasedPerceptionCategory, PerceptionCategory<LaneBasedGtu,LanePerception>
All Known Implementing Classes:
AnticipationTrafficPerception

public interface TrafficPerception extends LaneBasedPerceptionCategory
Perception of general traffic ahead.

Copyright (c) 2013-2026 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
  • Method Summary

    Modifier and Type
    Method
    Description
    org.djunits.value.vdouble.scalar.LinearDensity
    Returns the perceived density on the given lane.
    org.djunits.value.vdouble.scalar.Speed
    getSpeed(RelativeLane lane, org.djunits.value.vdouble.scalar.Speed desiredSpeed)
    Returns the perceived speed on the given lane.
  • Method Details

    • getSpeed

      org.djunits.value.vdouble.scalar.Speed getSpeed(RelativeLane lane, org.djunits.value.vdouble.scalar.Speed desiredSpeed) throws ParameterException
      Returns the perceived speed on the given lane.
      Parameters:
      lane - lane
      desiredSpeed - desired speed, to which the speed will tend when there is fewer traffic
      Returns:
      Speed perceived speed on the given lane
      Throws:
      ParameterException - on parameter exception
    • getDensity

      org.djunits.value.vdouble.scalar.LinearDensity getDensity(RelativeLane lane) throws ParameterException
      Returns the perceived density on the given lane.
      Parameters:
      lane - lane
      Returns:
      LinearDensity perceived density on the given lane
      Throws:
      ParameterException - on parameter exception