System Modeling
System Modeling
SYSTEM MODELING
Contents:
4.1 Context models
4.2 Interaction models
4.3 Structural models
4.4 Behavioral models
4.5 Package Structure
Enter Time
<<include>> Validate
Enter Amount
Patient Registration
Print-Slip
Manage
Appointments
View Insufficient
amount information
Admin
View patients record
and information
performing an operation.
4. Message
• A message defines a particular communication between Lifelines of an
Interaction.
• Call message is a kind of message that represents an invocation of operation
of target lifeline.
5. Return Message
Return message is a kind of message that represents the pass of information
back to the caller of a corresponded former message
• Represented with dotted line.
Dependency:
Association:
Relationships:
Generalization: • Dependency : Eg: Student_Name is dependent on
Student_Id
• Association : describes connection between two or
more objects
• Generalization : Relationship between parent class
and child class
• Aggregation : subset of association. Eg. Company
Aggregation: encompasses a number of employees
• Composition: It represents a whole-part relationship.
• Realization: denotes the implementation of the
functionality defined in one class by another class
Composition: • Multiplicity: Multiple patients are admitted to one
hospital
3/3/2024 4. System Modeling Reference: https://www.javatpoint.com/uml-class-diagram 48
Generalization
• Generalization is a relationship between a general thing (a
parent or superclass) and a more specific kind of that thing (a
child or subclass).
• The notation used for generalization is a line segment with an
empty block triangular arrowhead.
• The arrowhead points toward the generalized class or use case
or package.
Source:
https://www.tutorialspoint.com/um
l/uml_class_diagram.htm
Source: https://www.geeksforgeeks.org/unified-
modeling-language-uml-state-
diagrams/#:~:text=A%20state%20diagram%20is% Source; https://www.startertutorials.com/uml/uml-diagrams-
20used,machines%20and%20State%2Dchart%20D atm-application.html#Class_diagram
iagrams.
Source:
https://creately.com/blog/diagrams/activity-diagram-tutorial/ Source:
https://www.davuniversity.org/images/files/study-material/UML-ATM.pdf
3/3/2024 4. System Modeling 80
Order Management System
Source:
https://www.visual-paradigm.com/guide/uml-
unified-modeling-language/what-is-activity-diagram/
Source: https://www.geeksforgeeks.org/package-diagram-introduction-elements-use-cases-and-benefits/
3/3/2024 4. System Modeling 85
Package Relationships
1. Package Merge Relationship 2. Package Dependency Relationship
• used to represent that the contents of a package can • A package can be dependent on other different packages,
be merged with the contents of another package. signifying that the source package is somehow
dependent on the target package.
• This implies that the source and the target package
has some elements common in them, so that they • The above diagram depicts that the online payment
can be merged together. package is dependent on the Internet package and uses
“need” dependency.
Source: https://www.visual-paradigm.com/guide/uml-unified-modeling-language/what-is-package-diagram/
3/3/2024 4. System Modeling 88
Keypoints
• A model is an abstract view of a system that ignores system details. Complementary system
models can be developed to show the system’s context, interactions, structure and behavior.
• Context models show how a system that is being modeled is positioned in an environment with
other systems and processes.
• Use case diagrams and sequence diagrams are used to describe the interactions between users
and systems in the system being designed. Use cases describe interactions between a system and
external actors; sequence diagrams add more information to these by showing interactions
between system objects.
• Structural models show the organization and architecture of a system. Class diagrams are used to
define the static structure of classes in a system and their associations.
• Behavioral models are used to describe the dynamic behavior of an executing system. This
behavior can be modeled from the perspective of the data processed by the system, or by the
events that stimulate responses from a system.
• Activity diagrams may be used to model the processing of data, where each activity represents
one process step.
• State diagrams are used to model a system’s behavior in response to internal or external events.
3/3/2024 4. System Modeling 89
References for Complete UML diagrams:
• ATM Machine:
• https://www.startertutorials.com/uml/uml-diagrams-atm-
application.html#Class_diagram
• https://www.davuniversity.org/images/files/study-material/UML-ATM.pdf
• Library Management System:
• https://www.startertutorials.com/uml/uml-diagrams-library-management-
system.html
• Online Banking System:
• https://www.startertutorials.com/uml/uml-diagrams-online-banking-
system.html
• Railway reservation system:
• https://www.startertutorials.com/uml/uml-diagrams-online-banking-
system.html