public enum ConflictPriority extends Enum<ConflictPriority>
Copyright (c) 2013-2017 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 |
---|
ALL_STOP
All-way stop.
|
GIVE_WAY
Give priority.
|
PRIORITY
Have priority.
|
SPLIT
Split.
|
STOP
Stop and give priority.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAllStop()
Returns whether this is an all-stop conflict.
|
boolean |
isGiveWay()
Returns whether this is a give-way conflict.
|
boolean |
isPriority()
Returns whether this is a priority conflict.
|
boolean |
isSplit()
Returns whether this is a stop conflict.
|
boolean |
isStop()
Returns whether this is a stop conflict.
|
static ConflictPriority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConflictPriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConflictPriority PRIORITY
public static final ConflictPriority GIVE_WAY
public static final ConflictPriority STOP
public static final ConflictPriority ALL_STOP
public static final ConflictPriority SPLIT
public static ConflictPriority[] values()
for (ConflictPriority c : ConflictPriority.values()) System.out.println(c);
public static ConflictPriority 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 final boolean isPriority()
public final boolean isGiveWay()
public final boolean isStop()
public final boolean isAllStop()
public final boolean isSplit()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.