Enum Class StripeData.StripePhaseSync
java.lang.Object
java.lang.Enum<StripeData.StripePhaseSync>
org.opentrafficsim.road.network.lane.StripeData.StripePhaseSync
- All Implemented Interfaces:
Serializable
,Comparable<StripeData.StripePhaseSync>
,Constable
- Enclosing class:
- StripeData
Method of stripe phase synchronization.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSynchronize phase to downstream stripe.Do not synchronize.Synchronize phase to upstream stripe. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isSync()
Returns whether synchronization should be applied.static StripeData.StripePhaseSync
Returns the enum constant of this class with the specified name.static StripeData.StripePhaseSync[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Do not synchronize. -
UPSTREAM
Synchronize phase to upstream stripe. -
DOWNSTREAM
Synchronize phase to downstream stripe.
-
-
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
-
isSync
public boolean isSync()Returns whether synchronization should be applied.- Returns:
- whether synchronization should be applied
-