TimingProfile (API Reference)
Enum Class TimingProfile
- All Implemented Interfaces:
Serializable,Comparable<TimingProfile>,Constable
Identifies the timing profile used for emitting notifications and warnings.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTiming profile used when the speed is fast.Timing profile used when the speed is regular.Timing profile used when the speed is slow. -
Method Summary
Modifier and TypeMethodDescriptionstatic TimingProfileReturns the enum constant of this class with the specified name.static TimingProfile[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SLOW_SPEED
Timing profile used when the speed is slow. This timing profile is applied for speed limits or speeds greater than 0 meters/second but slower or equal to 16.39 meters/second (aproximately 60 kilometers/hour). There is also an additional check if the area is built up and if it is, the timing profile is also considerd as
SLOW_SPEEDregardless of the speed limit or the current speed. -
REGULAR_SPEED
Timing profile used when the speed is regular. This timing profile is applied for speed limits or speeds greater than 16.39 meters/second (aproximately 60 kilometer/hour) but slower or equal to 27.78 meters/second (aproximately 100 kilometer/hour).
-
FAST_SPEED
Timing profile used when the speed is fast. This timing profile is applied for speed limits or speeds greater than 27.78 meters/second (aproximately 100 kilometer/hour) or no speed limits.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-