|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
"A state is a condition or situation during the life of an object during which it satisfies some condition, performs some activity, or waits for some event." - Booch et al, The UML User Guide.
Method Summary | |
void |
addDeferred(Event event)
Adds an event to the list of events that should be deferred. |
void |
addTransition(Transition transition)
Attaches a transition to this state. |
boolean |
defers(Event event)
Checks if a given event is deferred by this state. |
void |
entry(Context context)
Executes the entry action of the state. |
void |
exit(Context context)
Executes the exit action of the state. |
List |
getDeferred()
Returns all Events that are deferred by this state. |
Set |
getTransitions()
Returns all transitions that have been attached to this state. |
void |
removeDeferred(Event event)
Removes an event from the list of events that should be deferred. |
void |
removeTransition(Transition transition)
Removes a transition from this state. |
void |
setEntry(Action action)
Sets the action object that is executed on entry of this state. |
void |
setExit(Action action)
Sets the action object that is executed on exit of this state. |
Methods inherited from interface de.fhg.igd.jhsm.Component |
action, getAction, getName, getParent, setAction, setName, setParent |
Method Detail |
public void entry(Context context)
context
- The context for the given action.public void exit(Context context)
context
- The context for the given action.public void addTransition(Transition transition)
transition
- The transition that should be attached.public void removeTransition(Transition transition)
transition
- The transition that should be removed.public void setExit(Action action)
public void setEntry(Action action)
public void addDeferred(Event event)
public void removeDeferred(Event event)
public boolean defers(Event event)
event
- The event that should be checked.
true
if the event is deferred by the state,
false
else.public List getDeferred()
public Set getTransitions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |