public enum TurnIndicatorStatus extends Enum<TurnIndicatorStatus>
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 |
---|
HAZARD
Hazard warning.
|
LEFT
Left.
|
NONE
None.
|
NOTPRESENT
Does not have a turn indicator.
|
RIGHT
Right.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isHazard() |
boolean |
isLeft() |
boolean |
isLeftOrBoth() |
boolean |
isNone() |
boolean |
isRight() |
boolean |
isRightOrBoth() |
static TurnIndicatorStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TurnIndicatorStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TurnIndicatorStatus NONE
public static final TurnIndicatorStatus LEFT
public static final TurnIndicatorStatus RIGHT
public static final TurnIndicatorStatus HAZARD
public static final TurnIndicatorStatus NOTPRESENT
public static TurnIndicatorStatus[] values()
for (TurnIndicatorStatus c : TurnIndicatorStatus.values()) System.out.println(c);
public static TurnIndicatorStatus 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 boolean isNone()
public boolean isLeft()
public boolean isLeftOrBoth()
public boolean isRight()
public boolean isRightOrBoth()
public boolean isHazard()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.