week3 S.E (1)
week3 S.E (1)
Bani_walid
Software Engineering
chapter 5
2022
semester 8th
1
Chapter 5
System Modeling
2
Topics covered
Context models
Interaction models
Structural models
Behavioral models
3
System modeling
System modeling is the process of developing abstract models of a system, with each
model presenting a different view or perspective of that system.
System modeling has now come to mean representing a system using some kind of
graphical notation, which is now almost always based on notations in the Unified
Modeling Language (UML).
5
System Perspectives
A behavioral perspective, where you model the dynamic behavior of the system
and how it responds to events.
Use case diagrams, which show the interactions between a system and its
environment.
Sequence diagrams, which show interactions between actors and the system and
between system components.
Class diagrams, which show the object classes in the system and the associations
between these classes.
State diagrams, which show how the system reacts to internal and external
events.
7
Use of graphical models
facilitating discussion
Incomplete and incorrect models are OK as their role is to
support discussion.
documenting an existing system
accurate representation of the system but need not be complete.
basis for system implementation (generate code)
Models have to be both correct and complete.
8
1. Context (situation) Models
9
System Boundaries
The position of the system boundary has a profound effect on the system
requirements.
10
The Context of the MHC-PMS
11
Process Perspective
12
Process Model of Involuntary Detention
13
2. Interaction Models
Use case diagrams and sequence diagrams may be used for interaction
modeling.
These are the most popular modeling mechanisms
14
Use Case Modeling (Interaction Model)
15
Transfer-data Use Case Diagram
(graphical model)
A use case in the MHC-PMS
16
Tabular Description of the ‘Transfer data’ use-case
DescriptionA receptionist may transfer data from the MHC-PMS to a general patient record database
that is maintained by a health authority. The information transferred may either be
updated personal information (address, phone number, etc.) or a summary of the
patient’s diagnosis and treatment.
Comments The receptionist must have appropriate security permissions to access the patient information and
the PRS. Chapter 5 System modeling
17
Use Cases in the MHC-PMS involving the role ‘Medical
Receptionist’ (only showing one actor here)
18
Sequence Diagrams (Interaction Model)
Sequence diagrams are part of the UML and are used to model the
interactions between the actors and the objects within a system.
The objects and actors involved are listed along the top of the
diagram, with a dotted line drawn vertically from these.
19
Sequence diagram for View Patient
Information
20
Sequence diagram for Transfer Data
21
Structural models
You create structural models of a system when you are discussing and
designing the system architecture.
22
Class diagrams - Structural
23
UML classes and association
24
Classes and associations in the
MHC-PMS
25
The Consultation class
26
Behavioral models