ooad5
ooad5
• Examples
– If a Bank Account was Closed and it saw an Open event, it would end
up in the Opened state
– If the account was Opened and it saw a Close event it would end up in
the Closed state
• Notation
State Machine Diagrams
• Transitions - Transitions is a progression from one state to another are
denoted by lines with arrowheads. A transition may have a trigger, a guard
and an effect.
• Self-Transitions - A state can have a transition that returns to itself, as in
the following diagram. This is most useful when an effect is associated
with the transition.