Class LocalDistractionPerception.PerceivedLocalDistraction

java.lang.Object
org.opentrafficsim.road.gtu.perception.object.PerceivedObjectBase
org.opentrafficsim.road.gtu.perception.object.PerceivedLaneBasedObjectBase
org.opentrafficsim.road.gtu.perception.categories.LocalDistractionPerception.PerceivedLocalDistraction
All Implemented Interfaces:
Comparable<PerceivedObject>, Identifiable, PerceivedLaneBasedObject, PerceivedObject
Enclosing class:
LocalDistractionPerception

public class LocalDistractionPerception.PerceivedLocalDistraction extends PerceivedLaneBasedObjectBase
Information on distraction.
  • Constructor Details

    • PerceivedLocalDistraction

      public PerceivedLocalDistraction(org.djunits.value.vdouble.scalar.Length distance, LocalDistraction distraction)
      Constructor.
      Parameters:
      distance - distance
      distraction - distraction
  • Method Details

    • getRange

      public org.djunits.value.vdouble.scalar.Length getRange()
      Returns the range of the distraction, which applies upstream of the location.
      Returns:
      range of the distraction
    • getDistractionLevel

      public double getDistractionLevel()
      Returns the distraction level as normalized task demand.
      Returns:
      distraction level
    • getSide

      public LateralDirectionality getSide()
      Returns the side of the distraction, relative to the driving direction.
      Returns:
      side of the distraction