|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject jsim.jmessage.JsimEvent
public class JsimEvent
This class provides general events for Jsim. If the event does not have special requirements, it can be an instance of this class; otherwise, a class should be derived from this one.
Constructor Summary | |
---|---|
JsimEvent(java.lang.Object source,
long eventID,
java.lang.Object handback)
Construct a JsimEvent. |
Method Summary | |
---|---|
java.lang.String |
getEventType()
Returns the name of the event type (rather than just the ID). |
long |
getID()
Returns the event ID. |
java.lang.Object |
getRegistrationObject()
Returns the event registration object. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JsimEvent(java.lang.Object source, long eventID, java.lang.Object handback)
source
- The source of this eventeventID
- The global ID of this eventseqNum
- The sequence number (needed in distributed enrionmenthandback
- The event registration object carrying event dataMethod Detail |
---|
public long getID()
public java.lang.String getEventType()
public java.lang.Object getRegistrationObject()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |