|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEventMessage
The IEventMessage interface is the interface to the message published to the event notifier's subscribers to notify them of state changes in the virtual machine, agents, scheduler or world state.
Method Summary | |
---|---|
java.io.Serializable |
getBody()
Returns the message body. |
boolean |
getBooleanProperty(java.lang.String name)
Return the boolean property value with the given name. |
byte |
getByteProperty(java.lang.String name)
Return the byte property value with the given name. |
double |
getDoubleProperty(java.lang.String name)
Return the double property value with the given name. |
float |
getFloatProperty(java.lang.String name)
Return the float property value with the given name. |
int |
getIntProperty(java.lang.String name)
Return the integer property value with the given name. |
long |
getLongProperty(java.lang.String name)
Return the long property value with the given name. |
java.lang.Object |
getObjectProperty(java.lang.String name)
Return the Java object property value with the given name. |
java.util.Enumeration |
getPropertyNames()
Return an Enumeration of all the property names. |
short |
getShortProperty(java.lang.String name)
Return the short property value with the given name. |
java.lang.String |
getStringProperty(java.lang.String name)
Return the String property value with the given name. |
boolean |
propertyExists(java.lang.String name)
Check if a property value exists. |
Method Detail |
---|
java.io.Serializable getBody() throws EventNotifierException
EventNotifierException
- if no body is specifiedjava.util.Enumeration getPropertyNames() throws EventNotifierException
EventNotifierException
- if EventNotifier fails to get Property names due to
some internal EventNotifier error.boolean propertyExists(java.lang.String name) throws EventNotifierException
name
- the name of the property to test
EventNotifierException
- if EventNotifier fails to check if property
exists due to some internal EventNotifier
error.boolean getBooleanProperty(java.lang.String name) throws EventNotifierException
name
- the name of the boolean property
EventNotifierException
- if EventNotifier fails to get Property due to
some internal EventNotifier error.
MessageFormatException
- if this type conversion is invalid.byte getByteProperty(java.lang.String name) throws EventNotifierException
name
- the name of the byte property
EventNotifierException
- if EventNotifier fails to get Property due to
some internal EventNotifier error.
MessageFormatException
- if this type conversion is invalid.short getShortProperty(java.lang.String name) throws EventNotifierException
name
- the name of the short property
EventNotifierException
- if EventNotifier fails to get Property due to
some internal EventNotifier error.
MessageFormatException
- if this type conversion is invalid.int getIntProperty(java.lang.String name) throws EventNotifierException
name
- the name of the integer property
EventNotifierException
- if EventNotifier fails to get Property due to
some internal EventNotifier error.
MessageFormatException
- if this type conversion is invalid.long getLongProperty(java.lang.String name) throws EventNotifierException
name
- the name of the long property
EventNotifierException
- if EventNotifier fails to get Property due to
some internal EventNotifier error.
MessageFormatException
- if this type conversion is invalid.float getFloatProperty(java.lang.String name) throws EventNotifierException
name
- the name of the float property
EventNotifierException
- if EventNotifier fails to get Property due to
some internal EventNotifier error.
MessageFormatException
- if this type conversion is invalid.double getDoubleProperty(java.lang.String name) throws EventNotifierException
name
- the name of the double property
EventNotifierException
- if EventNotifier fails to get Property due to
some internal EventNotifier error.
MessageFormatException
- if this type conversion is invalid.java.lang.String getStringProperty(java.lang.String name) throws EventNotifierException
name
- the name of the String property
EventNotifierException
- if EventNotifier fails to get Property due to
some internal EventNotifier error.
MessageFormatException
- if this type conversion is invalid.java.lang.Object getObjectProperty(java.lang.String name) throws EventNotifierException
Note that this method can be used to return in objectified format,
an object that had been stored as a property in the Message with the
equivalent
setObject
method call, or it's equivalent
primitive set
name
- the name of the Java object property
EventNotifierException
- if EventNotifier fails to get Property due to
some internal EventNotifier error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |