|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsm.SMVirtualEvent
A virtual event to send to a state machine.
For instance, to send a virtual event "copy" to a state machine sm
:
//Build a virtual event SMVirtualEvent copyEvent = new SMVirtualEvent("copy"); //Send it to sm sm.processEvent(copyEvent);The virtual event can thus be used to fire a transition in sm:
StateMachine sm = new StateMachine("sm virtual events") { public State s = new State () { Transition t = new Transition("copy") { ... }; ... }; ... };
Constructor Summary | |
SMVirtualEvent(java.lang.String n)
Builds a virtual event. |
Method Summary | |
java.lang.String |
getNameEvent()
Returns the name of the virtual event. |
void |
setNameEvent(java.lang.String n)
Sets the name of a virtual event. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SMVirtualEvent(java.lang.String n)
n
- The name of the virtual event.Method Detail |
public java.lang.String getNameEvent()
public void setNameEvent(java.lang.String n)
n
- The name of the virtual event to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |