org.openwms.tms.domain.values
Enum TransportOrderState

java.lang.Object
  extended by java.lang.Enum<TransportOrderState>
      extended by org.openwms.tms.domain.values.TransportOrderState
All Implemented Interfaces:
Serializable, Comparable<TransportOrderState>

public enum TransportOrderState
extends Enum<TransportOrderState>

A TransportOrderState defines alll possible states of TransportOrders.

Since:
0.1
Version:
$Revision: 1409 $
Author:
Tina Russell
See Also:
TransportOrder

Enum Constant Summary
CANCELED
          Status of a aborted TransportOrder.
CREATED
          Status of new created TransportOrders.
FINISHED
          Status to indicate that the TransportOrder completed successfully.
INITIALIZED
          Status of a full initialized TransportOrder, ready to be started.
INTERRUPTED
          Status to indicate that the TransportOrder is paused.
ONFAILURE
          Status to indicate a failure on the TransportOrder.
STARTED
          A started and activeTransportOrder, ready to be executed.
 
Method Summary
 int getOrder()
          Get the order.
static TransportOrderState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TransportOrderState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CREATED

public static final TransportOrderState CREATED
Status of new created TransportOrders.


INITIALIZED

public static final TransportOrderState INITIALIZED
Status of a full initialized TransportOrder, ready to be started.


STARTED

public static final TransportOrderState STARTED
A started and activeTransportOrder, ready to be executed.


INTERRUPTED

public static final TransportOrderState INTERRUPTED
Status to indicate that the TransportOrder is paused. Not active anymore.


ONFAILURE

public static final TransportOrderState ONFAILURE
Status to indicate a failure on the TransportOrder. Not active anymore.


CANCELED

public static final TransportOrderState CANCELED
Status of a aborted TransportOrder. Not active anymore.


FINISHED

public static final TransportOrderState FINISHED
Status to indicate that the TransportOrder completed successfully.

Method Detail

values

public static TransportOrderState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TransportOrderState c : TransportOrderState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TransportOrderState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

getOrder

public int getOrder()
Get the order.

Returns:
the order.


Copyright © 2005-2011 openwms.org. All Rights Reserved.