public enum DefaultDistraction extends Enum<DefaultDistraction>
Distractions are linked to the simulation. DistractionFactory can be used to create those.
 
 Copyright (c) 2013-2018 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. 
 | 
MANIPULATNING_AUDIO_CONTROLS
Manipulating audio controls. 
 | 
MANUPULATING_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 | 
|---|---|
org.djunits.value.vdouble.scalar.Duration | 
getAverageDuration()
Returns the average duration. 
 | 
String | 
getDescription()
Returns the description. 
 | 
double | 
getExposure()
Returns the exposure. 
 | 
org.djunits.value.vdouble.scalar.Frequency | 
getFrequency()
Returns the frequency per exposed driver. 
 | 
String | 
getId()
Returns the id. 
 | 
org.djunits.value.vdouble.scalar.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 MANIPULATNING_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 MANUPULATING_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 org.djunits.value.vdouble.scalar.Frequency getFrequency()
public double getExposure()
public org.djunits.value.vdouble.scalar.Duration getAverageDuration()
public org.djunits.value.vdouble.scalar.Duration getStdDuration()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.