|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
"A transition is a relationship between two states indicating that an object in the first state will perform certain actions and enter the second state when a specified event occurs and specified conditions are satisfied. On such a change of state a transition is said to fire. Until a transition fires it is said to be in source state; after it fires it is said to be in target state." - Booch et al, The UML User Guide.
Condition
,
Event
Method Summary | |
Condition |
getGuardCondition()
Getter for property guardCondition. |
State |
getTarget()
Returns the target state of the transition. |
Event |
getTriggerEvent()
Getter for property triggerEvent. |
boolean |
guard(Context context)
Checks if the guard condition is met. |
boolean |
hasInterest(Event event)
Checks if a given event is a trigger for the transition. |
boolean |
isTriggerless()
Checks if the transition is triggerless. |
void |
setGuardCondition(Condition guardCondition)
Setter for property guardCondition. |
void |
setTarget(State target)
Set's the target state of the transition. |
void |
setTriggerEvent(Event triggerEvent)
Setter for property triggerEvent. |
Methods inherited from interface de.fhg.igd.jhsm.Component |
action, getAction, getName, getParent, setAction, setName, setParent |
Method Detail |
public boolean guard(Context context)
context
- Used to publish and retrieve global data.public boolean hasInterest(Event event)
public boolean isTriggerless()
true
if the transition has no trigger event,
false
if it has one.public State getTarget()
public void setTarget(State target)
public Condition getGuardCondition()
public void setGuardCondition(Condition guardCondition)
guardCondition
- New value of property guardCondition.public Event getTriggerEvent()
public void setTriggerEvent(Event triggerEvent)
triggerEvent
- New value of property triggerEvent.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |