GridSim 5.0 beta

gridsim.parallel.reservation
Enum ReservationStatus

Object
  extended by Enum<ReservationStatus>
      extended by ReservationStatus
All Implemented Interfaces:
Serializable, Comparable<ReservationStatus>

public enum ReservationStatus
extends Enum<ReservationStatus>

Enumerator that represents the possible status of an advance reservation

Since:
5.0
Author:
Marcos Dias de Assuncao

Enum Constant Summary
CANCELLED
          Reservation has been cancelled.
COMMITTED
          Reservation has been made and confirmed.
EXPIRED
          Reservation has expired.
FAILED
          Reservation has failed.
FINISHED
          Reservation has completed.
IN_PROGRESS
          Reservation is in progress.
NOT_COMMITTED
          Reservation has been made, but not confirmed.
UNKNOWN
          Status unknown.
 
Method Summary
 String getDescription()
          Returns the status description.
 int intValue()
          Returns the integer value for this status.
 String toString()
          Creates an string representation of the status.
static ReservationStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ReservationStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final ReservationStatus UNKNOWN
Status unknown.


NOT_COMMITTED

public static final ReservationStatus NOT_COMMITTED
Reservation has been made, but not confirmed.


COMMITTED

public static final ReservationStatus COMMITTED
Reservation has been made and confirmed.


IN_PROGRESS

public static final ReservationStatus IN_PROGRESS
Reservation is in progress.


FINISHED

public static final ReservationStatus FINISHED
Reservation has completed.


EXPIRED

public static final ReservationStatus EXPIRED
Reservation has expired.


CANCELLED

public static final ReservationStatus CANCELLED
Reservation has been cancelled.


FAILED

public static final ReservationStatus FAILED
Reservation has failed.

Method Detail

values

public static ReservationStatus[] 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 (ReservationStatus c : ReservationStatus.values())
    System.out.println(c);

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

valueOf

public static ReservationStatus 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

getDescription

public String getDescription()
Returns the status description.

Returns:
the status description.

intValue

public int intValue()
Returns the integer value for this status.

Returns:
the integer value for this status.

toString

public String toString()
Creates an string representation of the status.

Overrides:
toString in class Enum<ReservationStatus>
Returns:
an string representation of the status.

GridSim 5.0 beta

The University of Melbourne, Australia, 2009