|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectides.api.model.fsa.FSAMessage
public class FSAMessage
Message sent to subscribers listening for changes to a FSA.
| Field Summary | |
|---|---|
static int |
ADD
The element was added. |
static int |
EVENT
The message is about an event. |
static int |
MODIFY
The element was modified. |
static int |
REMOVE
The element was removed. |
static int |
STATE
The message is about a state. |
static int |
TRANSITION
The message is about a transition. |
| Constructor Summary | |
|---|---|
FSAMessage(int eventType,
int elementType,
long elementId,
FSAModel source)
Creates an FSA modification message to be passed to FSASubscriber
s. |
|
FSAMessage(int eventType,
int elementType,
long elementId,
FSAModel source,
java.lang.String messageText)
Creates an FSA modification message to be passed to FSASubscriber
s. |
|
| Method Summary | |
|---|---|
long |
getElementId()
Retrieve the ID of the element in the message. |
int |
getElementType()
Retrieve the type of the element in the message. |
int |
getEventType()
Retrieve the type of event (addition, removal or modification). |
java.lang.String |
getMessageText()
Retrieve the description of the message. |
FSAModel |
getSource()
Retrieve the source of the message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STATE
public static final int TRANSITION
public static final int EVENT
public static final int ADD
public static final int REMOVE
public static final int MODIFY
| Constructor Detail |
|---|
public FSAMessage(int eventType,
int elementType,
long elementId,
FSAModel source)
FSASubscriber
s.
eventType - the type of event (addition, removal or modification)elementType - the element type (state, transition or event)elementId - the ID of the elementsource - the FSAModel where the message originates
public FSAMessage(int eventType,
int elementType,
long elementId,
FSAModel source,
java.lang.String messageText)
FSASubscriber
s.
eventType - the type of event (addition, removal or modification)elementType - the element type (state, transition or event)elementId - the ID of the elementsource - the FSAModel where the message originatesmessageText - a description of the message| Method Detail |
|---|
public long getElementId()
public int getElementType()
public int getEventType()
public FSAModel getSource()
public java.lang.String getMessageText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||