state chart diagram week 08 1. objective describe state chart diagrams in dynamic modelling 2
TRANSCRIPT
![Page 1: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/1.jpg)
1
State Chart diagram
Week 08
![Page 2: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/2.jpg)
objective
• Describe State chart Diagrams in Dynamic Modelling
2
![Page 3: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/3.jpg)
3
![Page 4: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/4.jpg)
4
![Page 5: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/5.jpg)
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
![Page 6: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/6.jpg)
6
![Page 7: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/7.jpg)
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.
![Page 8: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/8.jpg)
8
![Page 9: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/9.jpg)
9
![Page 10: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/10.jpg)
10
![Page 11: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/11.jpg)
11
![Page 12: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/12.jpg)
Ingredients of a State Machine Diagram
12
Start State
Stop State
Transition&Self-Transition
Guard Condition/Action
State
Nesting
Decision Point
Notes
[ CorrectDetails ] / acceptPolicy
![Page 13: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/13.jpg)
13
![Page 14: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/14.jpg)
14
![Page 15: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/15.jpg)
15
![Page 16: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/16.jpg)
16
![Page 17: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/17.jpg)
17
![Page 18: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/18.jpg)
18
![Page 19: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/19.jpg)
19
![Page 20: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/20.jpg)
20
![Page 21: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/21.jpg)
21
![Page 22: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/22.jpg)
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
![Page 23: State Chart diagram Week 08 1. objective Describe State chart Diagrams in Dynamic Modelling 2](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5697bfd01a28abf838caa9d5/html5/thumbnails/23.jpg)
23
END