Enum Message.MsgType
java.lang.Object
java.lang.Enum<Message.MsgType>
Message.MsgType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Message.MsgType>
- Enclosing class:
- Message
public static enum Message.MsgType
- extends java.lang.Enum<Message.MsgType>
Constants representing categories of messages that can be sent.
- Regular simulation messages
- Simulation anti-messages (canceling a regular message)
- Simulation straggler messages (regular messages that are behind GVT)
- System monitoring requests
- System monitoring reports
- System steering requests
- System steering acknowledgements
Method Summary |
static Message.MsgType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Message.MsgType[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
SIM_REGULAR
public static final Message.MsgType SIM_REGULAR
SIM_ANTI
public static final Message.MsgType SIM_ANTI
SIM_STRAGGLER
public static final Message.MsgType SIM_STRAGGLER
SYSTEM_MONITOR
public static final Message.MsgType SYSTEM_MONITOR
SYSTEM_STEER
public static final Message.MsgType SYSTEM_STEER
SYSTEM_REPORT
public static final Message.MsgType SYSTEM_REPORT
SYSTEM_ACKNOWLEDGE
public static final Message.MsgType SYSTEM_ACKNOWLEDGE
SIM_ENDSIM
public static final Message.MsgType SIM_ENDSIM
values
public static final Message.MsgType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(Message.MsgType c : Message.MsgType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Message.MsgType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name