public enum DefaultDistraction extends Enum<DefaultDistraction>
Distraction
s are linked to the simulation. DistractionFactory
can be used to create those.
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Enum Constant and Description |
---|
ADULT_DISTRACTING
Adult distracting.
|
ANSWERING_CELL_PHONE
Answering cell phone.
|
BABY_DISTRACTING
Baby distracting.
|
CHILD_DISTRACTING
Child distracting.
|
CONVERSING
Conversing.
|
DIALING_CELL_PHONE
Dialing cell phone.
|
DRINKING
Drinking.
|
EXTERNAL_DISTRACTION
External distraction.
|
GROOMING
Grooming.
|
INTERNAL_DISTRACTION
Internal distraction.
|
MANIPULATING_AUDIO_CONTROLS
Manipulating audio controls.
|
MANIPULATING_VEHICLE_CONTROLS
Manipulating vehicle controls.
|
PREPARING_EAT_DRINK
Preparing to eat / drink.
|
REACHING
Reaching.
|
READING_WRITING
Reading or writing.
|
SMOKING
Smoking.
|
TALKING_CELL_PHONE
Talking on cell phone.
|
Modifier and Type | Method and Description |
---|---|
Duration |
getAverageDuration()
Returns the average duration.
|
String |
getDescription()
Returns the description.
|
double |
getExposure()
Returns the exposure.
|
Frequency |
getFrequency()
Returns the frequency per exposed driver.
|
static DefaultDistraction |
getFromId(String id)
Returns a default distraction from the id.
|
String |
getId()
Returns the id.
|
Duration |
getStdDuration()
Returns the standard deviation of duration.
|
static DefaultDistraction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultDistraction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultDistraction TALKING_CELL_PHONE
public static final DefaultDistraction ANSWERING_CELL_PHONE
public static final DefaultDistraction DIALING_CELL_PHONE
public static final DefaultDistraction DRINKING
public static final DefaultDistraction MANIPULATING_AUDIO_CONTROLS
public static final DefaultDistraction SMOKING
public static final DefaultDistraction READING_WRITING
public static final DefaultDistraction GROOMING
public static final DefaultDistraction BABY_DISTRACTING
public static final DefaultDistraction CHILD_DISTRACTING
public static final DefaultDistraction ADULT_DISTRACTING
public static final DefaultDistraction CONVERSING
public static final DefaultDistraction REACHING
public static final DefaultDistraction MANIPULATING_VEHICLE_CONTROLS
public static final DefaultDistraction INTERNAL_DISTRACTION
public static final DefaultDistraction EXTERNAL_DISTRACTION
public static final DefaultDistraction PREPARING_EAT_DRINK
public static DefaultDistraction[] values()
for (DefaultDistraction c : DefaultDistraction.values()) System.out.println(c);
public static DefaultDistraction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getId()
public String getDescription()
public Frequency getFrequency()
public double getExposure()
public Duration getAverageDuration()
public Duration getStdDuration()
public static DefaultDistraction getFromId(String id)
id
- String; idCopyright © 2014–2019 Delft University of Technology. All rights reserved.