ADIS06_Activity_State
ADIS06_Activity_State
Activity Diagram
State Diagram
Objects
• Process View
Activity Diagram
State Machine Diagram
Figure 5.19, “ Showing common transitions via nested activities. ” shows that help and
exit are available in all states of the game, i.e. whenever the game application is
running.
Notation Notation
Initial state
Final state
State
Transition
Fork
Join
Self
transition
• Transition lines depict the movement from one state to another. Each
transition line is labeled with the event that causes the transition.
Viewing a system as a set of states and transitions between states is very useful
for describing complex behaviors
Understanding state transitions is part of system analysis and design
A Transition is the movement from one state to another state
Transitions between states occur as follows:
An element is in a source state
An event occurs
An action is performed
The element enters a target state
• Actions
Action is an executable atomic computation, which includes
operation calls, the creation or destruction of another object,
or the sending of a signal to an object. An action is
associated with transitions and during which an action is not
interruptible - e.g., entry, exit
• Activity
Activity is associated with states, which is a non-atomic or
ongoing computation. Activity may run to completion or
continue indefinitely. An Activity will be terminated by an
event that causes a transition from the state in which the
activity is defined