6 Behavioral Modeling
-
Upload
putri-irma-k-bratawijaya -
Category
Documents
-
view
215 -
download
1
description
Transcript of 6 Behavioral Modeling
![Page 1: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/1.jpg)
Chapter 6: Behavioral Modeling
1 Oktober 2015
![Page 2: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/2.jpg)
Behavioral Models
• Diagram underlying business process• Represent internal behavior of system• Iterative• Technology-independent (Analysis Phase)
![Page 3: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/3.jpg)
3 Types
1. Sequence2. Communication3. Behavioral State
Interaction – underlying Interaction – underlying details of Use details of Use CaseCase
Changes that occur in Changes that occur in underlying dataunderlying data
![Page 4: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/4.jpg)
Review of OO Concepts
Patient Class
Attributes: - Name - Address - Birthdate
Methods (or Operations)
Objects of Patient Class:
• Jim Maloney• Mary Wilson• Theresa Marks
![Page 5: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/5.jpg)
Type 1: Sequence Diagrams
• Sequence of events for ONE Use Case• Show sequence of messages passed between
objects
![Page 6: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/6.jpg)
Sequence Diagram Example
MakeAppointment
Becomes . . .
![Page 7: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/7.jpg)
Sequence Diagram Components
AN ACTOR
AN OBJECT
A LIFELINE
A FOCUS OF CONTROL
A MESSAGE
OBJECT DESTRUCTION
anObject:aClass
aMessage()
x
![Page 8: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/8.jpg)
Practice Exercises
![Page 9: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/9.jpg)
Type 2: Communication Diagrams
• Show communication flows among objects• An object diagram• Show patterns of activity
![Page 10: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/10.jpg)
Communication Diagram Example
![Page 11: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/11.jpg)
Communication Diagram Components
AN ACTOR
AN OBJECT
AN ASSOCIATION
A MESSAGE
anObject:aClass
aMessage()
![Page 12: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/12.jpg)
CRUD Analysis
![Page 13: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/13.jpg)
Practice ExercisesPractice Exercises
![Page 14: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/14.jpg)
Type 3: Behavior State Diagrams
• Show different states through which an object passes during its life
• Used to show how an instance evolves over time
![Page 15: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/15.jpg)
Behavioral State Terminology• State – value of attributes at specific point in time• Event – stimulus that changes an object’s value• Transition – movement of object from one state to another• Action – Nondecomposable (Atomic) process that cannot be
interrupted (an action is assosiated with a transition)• Activity – Can be decomposed & can be stopped/started by
Actions (an activity is assosiated with a state)
![Page 16: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/16.jpg)
Behavioral State Example
![Page 17: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/17.jpg)
Behavioral State Components
A STATE
AN INITIAL STATE
A FINAL STATE
AN EVENT
A TRANSITION
aState
anEvent
![Page 18: 6 Behavioral Modeling](https://reader036.fdocuments.us/reader036/viewer/2022081520/577c82ff1a28abe054b32309/html5/thumbnails/18.jpg)
Practice ExercisesPractice Exercises