Lec6 Erd DFD
Lec6 Erd DFD
Engineering
Week 07 Lecture 01
RECAP
Class-based modeling
•Association: the type of relationship between classes.
• Exactly one (1)
• Zero to Many (0 … *)
• Zero or one (0 … 1)
• One to Many (1 … *)
• Many to Many (* … *)
Association is a has-a relationship
Class-based modeling
[contd..]
•Dependency:
Car Engine
-color: string -horsepower: int
+moves() +starts()
Class-based modeling
[contd..]
•Generalization:
Person Student
Is-a
-name: string -rollNo: int
+walks() +studies()
Class-based modeling
[contd..]
•Aggregation:
Car Engine
-color: string -horsepower: int
+moves() +starts()
Class-based modeling
[contd..]
•Composition:
Book Pages
-name: string -color: string
Class-based Association
modeling
[contd..]
•Example:
Online Shopping ShoppingCart
-noOfItems : int
Scenario-
based
modeling
Activity Diagram
•Example:
Behavioral modeling [contd..]
•Components of a sequence diagram
Flow-oriented Modeling
Repository
Request Item
Data Flow Diagram (DFD)
• Graphically shows the flow of data between different
components or modules.
• The system or process is represented by a collection of
interconnected modules, called processes.
Data Flow Diagram (DFD)
[contd..] Source Sink
Components of DFD:
• External entity: an outside system that sends or receives
data, communicating with the system being diagrammed.
• Process: any process that changes the data, producing an
output
• Data store: files or repositories that hold information for
later use, such as a database table
Data Flow Diagram (DFD)
[contd..]
Components of DFD:
• Data flow: the route that data takes between the external
entities, processes and data stores.