Package org.opentcs.data.model
Enum Class Vehicle.State
- All Implemented Interfaces:
Serializable
,Comparable<Vehicle.State>
,Constable
- Enclosing class:
Vehicle
The elements of this enumeration describe the various possible states of a
vehicle.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe vehicle is currently recharging its battery/refilling fuel.There is a problem with the vehicle.The vehicle is processing a movement order.The vehicle is currently idle/available for processing movement orders.The vehicle's state is known and it's not in an error state, but it is not available for receiving orders.The vehicle's current state is unknown, e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic Vehicle.State
Returns the enum constant of this class with the specified name.static Vehicle.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
The vehicle's current state is unknown, e.g. because communication with it is currently not possible for some reason. -
UNAVAILABLE
The vehicle's state is known and it's not in an error state, but it is not available for receiving orders. -
ERROR
There is a problem with the vehicle. -
IDLE
The vehicle is currently idle/available for processing movement orders. -
EXECUTING
The vehicle is processing a movement order. -
CHARGING
The vehicle is currently recharging its battery/refilling fuel.
-
-
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
-