State Diagram Activity Diagram
State Diagram Activity Diagram
State Diagram
Activity Diagram
Objects
• Process View
State Machine Diagram
Activity Diagram
• 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