Enum Class DefaultDistraction

java.lang.Object
java.lang.Enum<DefaultDistraction>
org.opentrafficsim.road.gtu.lane.perception.mental.sdm.DefaultDistraction
All Implemented Interfaces:
Serializable, Comparable<DefaultDistraction>, Constable

public enum DefaultDistraction extends Enum<DefaultDistraction>
Set of default distractions as derived by the research of Manuel Lindorfer. These only describe the statistics. Actual Distractions are linked to the simulation. DistractionFactory can be used to create those.

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
  • Enum Constant Details

    • TALKING_CELL_PHONE

      public static final DefaultDistraction TALKING_CELL_PHONE
      Talking on cell phone.
    • ANSWERING_CELL_PHONE

      public static final DefaultDistraction ANSWERING_CELL_PHONE
      Answering cell phone.
    • DIALING_CELL_PHONE

      public static final DefaultDistraction DIALING_CELL_PHONE
      Dialing cell phone.
    • DRINKING

      public static final DefaultDistraction DRINKING
      Drinking.
    • MANIPULATING_AUDIO_CONTROLS

      public static final DefaultDistraction MANIPULATING_AUDIO_CONTROLS
      Manipulating audio controls.
    • SMOKING

      public static final DefaultDistraction SMOKING
      Smoking.
    • READING_WRITING

      public static final DefaultDistraction READING_WRITING
      Reading or writing.
    • GROOMING

      public static final DefaultDistraction GROOMING
      Grooming.
    • BABY_DISTRACTING

      public static final DefaultDistraction BABY_DISTRACTING
      Baby distracting.
    • CHILD_DISTRACTING

      public static final DefaultDistraction CHILD_DISTRACTING
      Child distracting.
    • ADULT_DISTRACTING

      public static final DefaultDistraction ADULT_DISTRACTING
      Adult distracting.
    • CONVERSING

      public static final DefaultDistraction CONVERSING
      Conversing.
    • REACHING

      public static final DefaultDistraction REACHING
      Reaching.
    • MANIPULATING_VEHICLE_CONTROLS

      public static final DefaultDistraction MANIPULATING_VEHICLE_CONTROLS
      Manipulating vehicle controls.
    • INTERNAL_DISTRACTION

      public static final DefaultDistraction INTERNAL_DISTRACTION
      Internal distraction.
    • EXTERNAL_DISTRACTION

      public static final DefaultDistraction EXTERNAL_DISTRACTION
      External distraction.
    • PREPARING_EAT_DRINK

      public static final DefaultDistraction PREPARING_EAT_DRINK
      Preparing to eat / drink.
  • Method Details

    • values

      public static DefaultDistraction[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DefaultDistraction valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public String getId()
      Returns the id.
      Returns:
      String; id
    • getDescription

      public String getDescription()
      Returns the description.
      Returns:
      String; description
    • getFrequency

      public org.djunits.value.vdouble.scalar.Frequency getFrequency()
      Returns the frequency per exposed driver.
      Returns:
      Frequency; frequency per exposed driver
    • getExposure

      public double getExposure()
      Returns the exposure.
      Returns:
      double; exposure
    • getAverageDuration

      public org.djunits.value.vdouble.scalar.Duration getAverageDuration()
      Returns the average duration.
      Returns:
      Duration; average duration
    • getStdDuration

      public org.djunits.value.vdouble.scalar.Duration getStdDuration()
      Returns the standard deviation of duration.
      Returns:
      Duration; standard deviation of duration
    • getFromId

      public static DefaultDistraction getFromId(String id)
      Returns a default distraction from the id.
      Parameters:
      id - String; id
      Returns:
      DefaultDistraction; default distraction from id