|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
Object Enum<MessageType> MessageType
public enum MessageType
Enumerator with the types of reservation messages.
ReservationMessage
Enum Constant Summary | |
---|---|
CANCEL
Cancels an existing reservation. |
|
COMMIT
Commits a reservation previously made. |
|
CREATE
Requests for a new reservation. |
|
LIST_FREE_TIME
Requests a list of free or empty time of a resource. |
|
MODIFY
Modifies an existing reservation. |
|
STATUS
Queries the current status of a reservation. |
|
UNKNOWN
Message of unknown type. |
Method Summary | |
---|---|
String |
getDescription()
Returns a description of the type |
int |
intValue()
Returns integer value associated with this message type |
static MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MessageType[] |
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 |
---|
public static final MessageType UNKNOWN
public static final MessageType CREATE
public static final MessageType CANCEL
public static final MessageType MODIFY
public static final MessageType STATUS
public static final MessageType COMMIT
public static final MessageType LIST_FREE_TIME
Method Detail |
---|
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int intValue()
public String getDescription()
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |