Professional Documents
Culture Documents
© SERG
Existing and Planned System Models
• They help clarify what the existing system does and can be used
as a basis for discussing its strengths and weaknesses.
© SERG
Existing and planned system models
© SERG
System Perspectives
• An external perspective, where you model the context or
environment of the system.
© SERG
Overview of UML Diagrams
Behavioral
Structural : behavioral features of a system / business
process
: element of spec. irrespective of time
• Activity
• State machine
• Class
• Use case
• Component
• Interaction
• Deployment
• Object
• Composite structure Interaction
: emphasize object interaction
• Package
• Communication(collaberati
on)
• Sequence
• Interaction overview
• Timing
© SERG
Context Models
• Context models are used to illustrate the operational context of a
system - they show what lies outside the system boundaries.
• Architectural models show the system and its relationship with other
systems.
© SERG
System boundaries
• System boundaries are established to define what is inside and what is
outside the system.
– They show other systems that are used or depend on the system
being developed.
© SERG
The Context of the Mentcare System
© SERG
Classes
A class is a description of a set of
ClassName objects that share the same attributes,
operations, relationships, and semantics.
attributes
Graphically, a class is rendered as a
rectangle, usually including its name,
operations attributes, and operations in separate,
designated compartments.
operations
Person
name : String
address : Address
birthdate : Date
ssn : Id
Person
Person
name : String
address : Address
birthdate : Date
ssn : Id
eat Operations describe the class behavior
sleep and appear in the third compartment.
work
play
• Object
• Class
• Attribute
• Operation
• Relationships
© SERG
The Relationship Between Classes and
Objects
A class is an abstract definition of an object
It defines the structure and behavior of each object in the class
It serves as a template for creating objects
Objects are grouped into classes
Objects Class
Professor
Professor Jones
© SERG
Relationships
• A relationship is a general term covering the specific types
of logical connections found on class and object diagrams.
© SERG
Relationships
In UML, object interconnections (logical or physical), are
modeled as relationships.
• dependencies
• generalizations
Person
Student Instructor
© SERG
Association Relationships (Cont’d)
We can indicate the multiplicity of an association by adding
multiplicity adornments to the line denoting the association.
Student Instructor
1..*
Student Instructor
1..*
membership
Student Team
1..* 1..*
Student Schedule
Aggregation
Scrollbar
1 1
Window Titlebar
1 1
Menu
1 1 .. *
© SERG
Activity Diagrams
• It is essentially a flowchart
– Showing flow of control from activity to activity
• Purpose
– Model business workflows
– Model operations
© SERG
Activity Diagrams
© SERG
ACTIVITY DIAGRAM
© SERG
DECISIONS
© SERG
SYNCHRONIZATION
• A fork node is used to split a single incoming flow into multiple
concurrent flows. It is represented as a straight, slightly thicker line in
an activity diagram.
• A join node joins multiple concurrent flows back into a single outgoing
flow.
• A fork and join mode used together are often referred to as
synchronization.
© SERG
CONCURRENT PATHS
© SERG
SWIM LANES
• Swim lanes group related activities into one column.
• The activity diagram adds the dimension of visualizing
roles.
• To do that, you separate the diagram into parallel segments
called swimlanes.
• Each swimlane shows the name of a role at the top and
presents the activities of each role.
• Transitions can take place from one swimlane to another.
© SERG
© SERG
Activity Diagram Example 1
© SERG
© SERG
SEQUENCE DIAGRAM
• The UML sequence diagram adds the
dimension of time to object interaction.
© SERG
OBJECTS
© SERG
Representing Objects
© SERG
MESSAGES
• A message that goes from one object to another
goes from one object's lifeline to the other object's
lifeline.
1. Synchronous
2. A Synchronous
© SERG
SYNCHRONOUS MESSAGE
• One type of message is a call. This is a request from the object
sending the message to the object receiving the message.
• The request is for the receiver to carry out one of its (the
receiver's) operations.
• Usually, this entails the sender waiting for the receiver to carry
out that operation. Because the sender waits for the receiver
(that is, "synchs up" with the receiver), this message is also
referred to as synchronous.
© SERG
A SYNCHRONOUS MESSAGE
• With this one, the sender transfers control to the
receiver and doesn't wait for the operation to
complete.
© SERG
TIME
• The diagram represents time in the vertical direction.
© SERG
Sequence diagram for View Patient
Information
© SERG
ATM Example