Unit 5_ System Modeling
Unit 5_ System Modeling
System Modeling
1
System modeling
2
Existing and planned system models
5
UML
Dynamic Models
• Behavior diagrams emphasize what must happen in the system being modeled
• Ex: Use Case Diagram, Activity Diagram, State Transition Diagram, Sequence
Diagram
Static Models
• Structure diagrams emphasize the things that must be present in the system
being modeled
• Ex: Class diagram, CRC Index, Object diagram, Component diagram,
Deployment diagram
7
C
o
n Context models
t
e
x
t
m
o
d
e
l
s
a
r
e 8
System boundaries
9
Process perspective
Context models simply show the other systems in the environment, not how
the system being developed is used in that environment.
Process models reveal how the system being developed is used in broader
business processes.
0 Level data flow diagram may be used to represent the context model
May also be represented as Block diagram of sub-systems
10
M
o
d Interaction Models
e
l
i
n
g
u
s
e
r
i
n
t
e 11
r
Structural models
12
Class diagrams and CRC Index
13
Class diagrams
Class Identification
1.Hierarchical Object Oriented Design (HOOD) Approach
English Grammar Based Approach
Common Nouns: Class
Verb: Methods
Adjectives: Attributes
2. SOLID Principles
Single Responsibility Principle
Open-Closed Principle
Liskov’s Substitution Principle
Interface Segregation Principle
Dependency Inversion Principle
Class diagrams
• Relationships
Class diagrams
• Visibility
• Private ( - ) :
• A private member is visible only from within the class
• Protected ( # ) :
• A protected member is visible from within the class and
from the subclasses inherited from this class
• Public ( + ) :
• A public member is visible from anywhere in the system
Behavioural Model
17
Data modeling
Data modeling is the analysis of data objects and their relationships to other
data objects
Data modeling is often the first step in database design
Two Models
Flow Model:
• Shows the movement of data from source to the sink
• Data Flow Diagram is used for modeling the flow
Relationship Model:
• Shows the relation between different objects of the system
• Entity-Relationship (ER) diagram is used for modeling the flow
18
Data modeling
19
Data modeling
Data Flow Diagram
Components of DFD
Entity
• An external entity that communicates with the system and stands outside of the system.
• An entity may be another system with which the modeled system communicates
Process
• The process (function, transformation) is part of a system that transforms inputs to outputs
Database
• database is used to represent storage of data for later use
Flow
• flow shows the transfer of information (sometimes also material) from one part of the system to
another
20
Data modeling
Data Flow Diagram
Notations:
21
Data modeling
ER Diagram
The ER or (Entity Relational Model) is a high-level conceptual data model
diagram
Entity-Relation model is based on the notion of real-world entities and the
relationship between them
Components of the ER Diagram
• Entities
• Attributes
• Relationships
22
Model-Driven Architecture