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.
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 university; a given teacher may or may
integer not be working for the university at a
0..* From zero to any positive
particular time.”
integer
1..* From one to any positive
Class Diagram
Sequence Diagram
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.
The state is the set of values that describes an object at a
specific point in time.
Server Application
Web Page
AC
HTTP Database
* *
Browsers Apache
MYSQL
MYSQL
* *
Reading Assignment
Diagram extensions
Compare Aggregation and Composition
Thank You ...