Package org.openwms.tms
Enum Class TransportOrderState
- All Implemented Interfaces:
Serializable
,Comparable<TransportOrderState>
,Constable
A TransportOrderState defines all possible states a
TransportOrder
may resist in.- Author:
- Heiko Scherrer
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionStatus of a abortedTransportOrder
.Status of new createdTransportOrder
s.Status to indicate that theTransportOrder
completed successfully.Status of a full initializedTransportOrder
, ready to be started.Status to indicate that theTransportOrder
is paused.Status to indicate a failure on theTransportOrder
.A started and activeTransportOrder
, ready to be executed. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
Get the order.static TransportOrderState
Returns the enum constant of this class with the specified name.static TransportOrderState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATED
Status of new createdTransportOrder
s. -
INITIALIZED
Status of a full initializedTransportOrder
, ready to be started. -
STARTED
A started and activeTransportOrder
, ready to be executed. -
INTERRUPTED
Status to indicate that theTransportOrder
is paused. Not active anymore. -
ONFAILURE
Status to indicate a failure on theTransportOrder
. Not active anymore. -
CANCELED
Status of a abortedTransportOrder
. Not active anymore. -
FINISHED
Status to indicate that theTransportOrder
completed successfully.
-
-
Field Details
-
order
private final int order
-
-
Constructor Details
-
TransportOrderState
private TransportOrderState(int sortOrder)
-
-
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
-
getOrder
public int getOrder()Get the order.- Returns:
- the order.
-