Chapter 2 - UML
Chapter 2 - UML
Chapter 2 - UML
The extending use case may add behavior to the base use
case. The base class declares “extension points”.
Cont.
Class Diagram
Provide a conceptual model of the system in terms of
entities and their relationships.
Name
Attributes
Operations
Class Representation
Modifiers are used to indicate visibility of attributes and
operations.
‘+’ is used to denote Public visibility (everyone).
‘#’ (hash-sign) is used to denote Protected visibility
(friends and derived).
‘-’ (hyphen-sign) is used to denote Private visibility
(no one).
By default, attributes are hidden and operations are visible.
There are two kinds of relationships (OO
OO Relationships
Relationships)
Role
Multiplicity Role
Symbol Meaning
“A given university groups many people;
1 One and only one some act as students, others as teachers.
0..1 Zero or one A given student belongs to a single
* From zero to any positive integer university; a given teacher may or may
not be working for the university at a
0..* From zero to any positive integer
particular time.”
1..* From one to any positive integer
Class Diagram – Order System
Sequencee Diagram
Sequenc
Sequence diagrams – Models interaction of objects
arranged in time sequence.
X-axis is objects – Object that initiates interaction is left
most – Object to the right are increasingly more
subordinate.
Y-axis is time – Messages sent and received are ordered by
time.
Object life lines represent the existence over a period of
time.
Activation (double line) is the execution of the procedure.
Cont.
State Diagram
Shows the sequence of states that an object goes through
during it’s life.
Server Application
Web Page
AC
HTTP Database
* *
Browsers Apache
MYSQL
MYSQL
* *
Reading Assignment
Diagram extensions
Compare Aggregation and Composition
Thank You ...