Professional Documents
Culture Documents
L5b - System Modeling v1
L5b - System Modeling v1
² Structural models
§ display the organization of a system in terms of the
components that make up that system and their relationships.
§ may be static models, which show the structure of the system
design, or
§ dynamic models, which show the organization of the system
when it is executing.
² Class diagrams
§ are used when developing an object-oriented system model to
show the classes in a system and the associations between
these classes.
1 1 Patient
Patient record
Object is an
instance of
a class.
(Ref: Link)
COMP3297 by Leo Yeung L5 - System Modeling 25
What do the UML notations mean?
1 1 Patient
Patient record
3) Return int
4) Parameter n is of
type int
5) Visibility
+ denotes public attributes or operations
- denotes private attributes or operations
COMP3297 by Leo Yeung L5 - System Modeling 30
Perspectives of Class Diagram
Staff # Practice
Pager # Address
Hospital General
doctor practitioner In this example,
a) General practitioners and hospital
doctors can be generalized as
doctors
Consultant Team doctor
b) There are three types of Hospital
Doctor:
I. Trainee Doctor
Trainee Qualified II. Qualified doctor
doctor doctor III. Consultant
Staff # Practice
Pager # Address
These lower-level classes then add more
specific attributes and operations.
In this example,
• All hospital doctors have a staff number and carry a pager.
• General practitioners do not have these attributes, as they
work independently, but they have an individual practice
name and address.
COMP3297 by Leo Yeung L5 - System Modeling 34
Object class aggregation models
Generalization Aggregation
“is a” relationship “has a” relationship
Question
What is the difference
considering implementation?
(Ref: Link)
COMP3297 by Leo Yeung L5 - System Modeling 36
All notations in a Class Diagram: Order System
Disabled
do: display
'Waiting'
2) Concentric circle:
Example: State diagram of a microwave oven Represent final state.
COMP3297 by Leo Yeung L5 - System Modeling 42
Microwave oven operation
1) Rounded Operation
Time
square: Represent Checking
Superstate (e.g. OK Cook
do: check do: run
Operation)
status generator
containing a set of
substates (e.g. Turntable Emitter Timeout
Checking, Cook, fault fault
Alarm, Done)
Done
Alarm
do: buzzer on
do: display
for 5 secs.
event
Disabled Waiting
Option 1:
Option 2:
(Ref: Link)
COMP3297 by Leo Yeung L5 - System Modeling 46
Real Example – Vendor Presentation