public static enum Controllable.State extends Enum<Controllable.State>
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 |
---|
DISABLED
Control is disabled.
|
ENABLED
Control is enabled.
|
NONE
GTU has no control.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDisabled()
Returns whether this is DISABLED.
|
boolean |
isEnabled()
Returns whether this is ENABLED.
|
boolean |
isNone()
Returns whether this is NONE.
|
static Controllable.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Controllable.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Controllable.State NONE
public static final Controllable.State DISABLED
public static final Controllable.State ENABLED
public static Controllable.State[] values()
for (Controllable.State c : Controllable.State.values()) System.out.println(c);
public static Controllable.State 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 isDisabled()
public boolean isEnabled()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.