state chart diagram week 08 1. objective describe state chart diagrams in dynamic modelling 2
TRANSCRIPT
1
State Chart diagram
Week 08
objective
• Describe State chart Diagrams in Dynamic Modelling
2
3
4
5
Specifying Behaviour
• Interaction diagrams – show how object behave in particular interactions– do not specify all the possible behaviours of objects
• Different notation is needed to summarize the overall behaviour of objects
• UML defines statecharts for this purpose
6
7
The Value of Statechart Diagram • Statechart diagram is the only dynamic
model that can illustrate the milestones in the lifetime of one class of objects in its entirety.
8
9
10
11
Ingredients of a State Machine Diagram
12
Start State
Stop State
Transition&Self-Transition
Guard Condition/Action
State
Nesting
Decision Point
Notes
[ CorrectDetails ] / acceptPolicy
13
14
15
16
17
18
19
20
21
State-dependent Behaviour
• Objects respond differently to the same stimulus at different times
• This is modelled by defining a set of states– an object can be in one state at any time– the state it is in determines how it responds to events detected or messages received
– in particular, an event can cause the object to move from one state to another (a transition)
22
23
END