public static enum CrossSectionLink.Priority extends Enum<CrossSectionLink.Priority>
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
Priority according to all-stop rules.
|
BUS_STOP
Priority at bus stop, i.e.
|
NONE
No priority.
|
PRIORITY
Traffic has priority.
|
STOP
Need to stop.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAllStop()
Returns whether this is all-stop.
|
boolean |
isBusStop()
Returns whether this is bus stop.
|
boolean |
isNone()
Returns whether this is none.
|
boolean |
isPriority()
Returns whether this is priority.
|
boolean |
isStop()
Returns whether this is stop.
|
static CrossSectionLink.Priority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CrossSectionLink.Priority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CrossSectionLink.Priority PRIORITY
public static final CrossSectionLink.Priority NONE
public static final CrossSectionLink.Priority STOP
public static final CrossSectionLink.Priority ALL_STOP
public static final CrossSectionLink.Priority BUS_STOP
public static CrossSectionLink.Priority[] values()
for (CrossSectionLink.Priority c : CrossSectionLink.Priority.values()) System.out.println(c);
public static CrossSectionLink.Priority 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 isPriority()
public boolean isNone()
public boolean isStop()
public boolean isAllStop()
public boolean isBusStop()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.