GridSim 5.0 beta

gridsim.parallel.reservation
Enum ErrorType

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

public enum ErrorType
extends Enum<ErrorType>

Types of errors that can occur during reservation requests

Since:
5.0
Author:
Marcos Dias de Assuncao
See Also:
ReservationMessage

Enum Constant Summary
NO_AR_SUPPORT
          Indicates that the resource does not support reservations
NO_ERROR
          Indicates that no error has happened
OPERATION_FAILURE
          Indicates that the operation requested could not be fulfilled
OPERATION_FAILURE_BUT_OPTIONS
          Indicates that the operation requested could not be fulfilled, but advance reservation options are provided
 
Method Summary
 String getDescription()
          Returns a description of this error code.
static ErrorType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ErrorType[] 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, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_ERROR

public static final ErrorType NO_ERROR
Indicates that no error has happened


NO_AR_SUPPORT

public static final ErrorType NO_AR_SUPPORT
Indicates that the resource does not support reservations


OPERATION_FAILURE

public static final ErrorType OPERATION_FAILURE
Indicates that the operation requested could not be fulfilled


OPERATION_FAILURE_BUT_OPTIONS

public static final ErrorType OPERATION_FAILURE_BUT_OPTIONS
Indicates that the operation requested could not be fulfilled, but advance reservation options are provided

Method Detail

values

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

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

valueOf

public static ErrorType 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 a description of this error code.

Returns:
a description of this error code.

GridSim 5.0 beta

The University of Melbourne, Australia, 2009