Professional Documents
Culture Documents
Modeling With
Unified Modeling Language
(UML)
Learning Outcome
Describe :
What is meant by a model
Concept of modeling
The distinction between a model and
a diagram
The UML concept of a model
What is Model?
What is a Diagram?
Abstract shapes are used to represent
things or actions from the real world
Diagrams follow rules or standards
The standards make sure that different
people will interpret the diagram in the
same way
40
What is Modeling?
Why modeling?
Modelling Organizations
Organizations are human activity systems.
The situation is complex
Stakeholders have different views
We have to model requirements
accurately, completely and unambiguously
The model must not prejudge the solution
Modeling Notations
It is important to have standard notations for
modeling, documenting, and communicating
decisions
Modeling helps us to understand
requirements thoroughly
What is UML?
Developed the
Booch method
(clouds), ACM
Fellow 1995, and
IBM Fellow 2003
http://www.booch.co
m/
What is UML?
UML
References www.inconcept.com/JCM/April1998/halpin.html
15
16
Different types of
models
17
18
19
21
methodology
UML Diagrams
Every complex system is best approached
through a small set of nearly independent
views of a model no single view is
sufficient
The choice of what models or diagrams one
creates has a great influence on how a
problem is encountered and how a
corresponding solution is shaped
23
Diagrams in UML
Plan Chapter
Produce
First Draft
Revise Draft
[not satisfied]
[satisfied]
Add Exercises
Add References
to Bibliography
24
Requirements Model
Requirements
List
Campaign Management
Assign staf f
to work on
a campaign
include
Campaign Management
Assign staf f
to work on
a campaign
Find campaign
include
include
Add a new
adv ert to
a campaignFind campaign
include
include
Campaign Add a new
Manager adv ert to
a campaign
Initial System
Architecture
Model
include
Check campaign
budget
Campaign
Manager
Check campaign
budget
Interface
Prototypes
extend
Use Cases
Accountant
Print campaign
summary
extend
extend
Print campaign
summary
extend
Print campaign
invoice
Print campaign
invoice
Accountant
Glossary
25
Examples of Models
Requirements Model
complete view of requirements
may include other models, such as a Use
Case Model
includes textual description as well as sets of
diagrams
26
Examples of Models
Behavioural Model
shows how the system responds to events
in the outside world and the passage of
time
an initial model may just use
Communication Diagrams
a later model will include Sequence
Diagrams and State Machines
27
Models in UML
A system is the overall thing that is being
modelled
A subsystem is a part of a system
consisting of related elements
A model is an abstraction of a system or
subsystem from a particular perspective
A model is complete and consistent at the
chosen level of abstraction
28
Models in UML
29
UML Diagrams
Structure Diagrams
Package
Diagram
Class
Diagram
Component
Diagram
Deployment
Diagram
Behavior Diagrams
Use Case
Diagram
Activity
Diagram
State
Machine
Diagram
Interaction Diagrams
Object
Diagram
Sequence
Diagram
Composite
Structure
Diagram
Interaction
Overview
Diagram
Communication
Diagram
Timing
Diagram
30
Structure Diagrams
Used
Behavior Diagrams
To
32
Interaction Diagrams
Interaction Diagrams
34
Developing Models
35
Iteration 1
Obvious use cases.
Simple use case descriptions.
Acc ountant
Change the
rate for a
staff grade
Change the
grade for a
staff member
Acc ountant
Change the
grade for a
staff member
Calc ulate staff
bonuses
Staff Management
Iteration 2
Additional use cases.
Simple use case descriptions.
Prototypes.
Acc ountant
Change the
rate for a
staff grade
Change the
rate for a
staff grade
Change the
grade for a
staff member
Campaign Selection
Campaign Selection
Change the
grade for a
staff member
Acc ountant
Client:
Campaign Selection
Client:
Client:
Campaign:
Campaign:
Holborn Motors
Lynch Properties
Holborn
Motors
Yellow
Partridge
Lynch
Properties
Zeta
Systems
Holborn
Motors
Yellow
Partridge
Lynch
Properties
Zeta
Systems
Yellow Partridge
Zeta Systems
Campaign:
OK
Quit
OK
Quit
OK
Quit
Campaign M anagement
Iteration 3
Structured use cases.
Structured use case descriptions.
Prototypes.
Assign staff
to work on
a cam paign
include
Campaign M anagement
Add a new
adv ert to
include
a cam paign
Campaign M anagement
Assign staff
to work on
a cam paign
Campaign
Manager
Find campaign
include
Assign staff
to work on
a cam paign
Campaign
Manager
include
Add a new
adv ert to
include
a cam paign
Check campaign
budget
Find campaigninc lude
include
Add a new
adv ert to
a cam paign
extend
Campaign Selection
P rint campaign
summ ary
extend
Check campaign
budget
extend
Campaign Selection
Accountant
P rint campaign
summ ary
extend
extend
Check campaign
budget
inc lude
Campaign
Manager
extend
Accountant
P rint campaign
summ ary
Accountant
Client:
Campaign Selection
Client:
Client:
Campaign:
Campaign:
Holborn Motors
Lynch Properties
Holborn
Motors
Yellow
Partridge
Lynch
Properties
Zeta
Systems
Holborn
Motors
Yellow
Partridge
Lynch
Properties
Zeta
Systems
Yellow Partridge
Zeta Systems
Campaign:
OK
Quit
OK
OK
Quit
Quit
36
Recap
Describe :
What is meant by a model
Concept of modeling
The distinction between a model and
a diagram
The UML concept of a model
37
References
Additional References
http://www-306.ibm.com/software/awdtools/developer/java/
http://www.borland.com/us/products/together/index.html
http://java-source.net/open-source/uml-modeling
ArgoUML,UMLet,Violet,