UML Basics: Process Model
UML Basics: Process Model
UML Basics
Process Model
Deployment Model
Design Model
1
UML Basics
Contents -
Models
Use-case model
Design model (Class diagram)
Diagrams
Use-case diagram and activity diagram
Sequence diagram and communication diagram
Component diagram and deployment diagram
Topic diagram and browse diagram
2
UML Basics
What Is a Model?
A model is “a complete description of a system from a
particular perspective.” A model is a simplification of reality.
3
UML Basics
Why Model?
Modeling achieves four aims:
Helps you to visualize a system as you want it to be.
Permits you to specify the structure or behavior of a
system.
Gives you a template that guides you in constructing a
system.
Documents the decisions you have made.
You build models of complex systems because you
cannot comprehend such a system in its entirety.
You build models to better understand the system
you are developing.
4
UML Basics
Importance of Modeling
Applications approaching like building paper airplanes
Start coding from project requirements
Work longer hours and create more code
Lacks any planned architecture
Doomed to failure
Modeling is a common thread to successful projects
Less Important More Important
5
UML Basics
6
UML Basics
7
UML Basics
8
UML Basics
9
UML Basics
10
UML Basics
Windows95
Window95
Use Case 1
Windows95
¹®¼-°ü¸®
Ŭ¶óÀ̾ðÆ®.EXE
¹®¼-°ü¸® ¾ÖÇø´
Windows
NT
Actor A Actor B
Use Case 2 Solaris
¹®¼-°ü¸® ¿£Áø.EXE
Alpha
UNIX
ÀÀ¿ë¼-¹ö.EXE
Windows
NT
IBM
µ¥ÀÌŸº£À̽º¼-¹ö
DocumentList
code..
close( )
2: fetchDoc( ) read( )
FileList
sortFileList( )
fList
create( )
3: create ( )
fillDocument( )
add( )
delete( )
4: create ( ) 1
5: readDoc ( )
rep
7: readFile ( )
File
Repository
8: fillFile ( )
(from Persistence)
read( ) GrpFile
fillFile( )
11
UML Basics
UML 1.5
(March, ‘03)
UML 1.1
(Sept. ‘97)
UML 1.0
(Jan. ‘97)
12
UML Basics
Diagrams
Diagrams graphically depict a view of a part of your
model.
Different diagrams represent different views of the
system that you are developing.
A model element will appear on one or more diagrams.
13
UML Basics
Use-Case Class
Diagrams Diagrams
Composite
Sequence Structure
Diagrams Diagrams
Communication Component
Diagrams Model Diagrams
14
UML Basics
Class Diagrams
System Structure
Collaboration Diagrams
Interaction Diagrams
Activity Diagrams
System Behaviour State Charts
15
UML Basics
Analysts/Designers Programmers
Use-Case View
End-user
Functionality
System engineering
System integrators System topology, delivery,
installation, communication
Performance, scalability, throughput
16
UML Basics
A use-case model:
Is a model of a system’s intended functions and
its environment
Serves as a contract between the customer and
the developers
Contains the following diagrams:
Use case: Shows a set of use cases and actors and their
relationships
Activity: Shows the flow of events within a use case
Sequence: Shows how a use case will be implemented in
terms of collaborating objects
17
UML Basics
Course Catalog
Maintain Professor
Register for Courses Information
Student
Registrar
Select Courses to
Teach Close Registration
Professor
Submit Grades
Billing System
18
UML Basics
Activity Diagram
Action
A step in the flow of events
Decision
Flows split based on a guard
condition
Fork
Beginning of concurrent flows
Join
End of concurrent flow
Flow
Show the sequence of
activities
19
UML Basics
Synchronization
Bar (Fork)
Check Check
Guard Schedule Pre-requisites
Condition
Synchronization
[ checks completed ] [ checks failed ] Bar (Join)
Assign to Resolve
Course Conflicts
Transition
Update
Schedule
20
UML Basics
21
UML Basics
Class
A description of a set
of objects
Aggregation
Represents a part-whole
relationship
Attribute
Named property of
a class
Operation
Class behavior
Generalization
Shows an inheritance
relationship
22
UML Basics
Sequence Diagram
used to show how objects interact to perform the
behavior of all or part of a use case as part of a use-case
realization.
Object/Class
Shows the object/class
involved in the
interaction
Messages
Show data exchanged
between objects
Execution Occurrence
Shows object executing Lifeline
Shows the life of the object
23
UML Basics
1: create schedule( )
ref
Select Offerings
24
UML Basics
Loop (loop)
Executed as long as the first
guard condition
evaluates to true
25
UML Basics
Object/Class
Shows the
object/class involved
in the interaction
Message
Shows data
exchanged
between objects
26
UML Basics
: Student
2: get course offerings( )
4: get course offerings( )
: RegistrationController : CourseCatalogSystem
27
UML Basics
Component Diagram
It shows the runtime structure of the system at the level of software
components. Components are the modular parts of the system and
are made up of groups of related objects that are hidden behind an
external interface.
Component Class
Modular parts of the system Included to show implementation
relationships.
28
UML Basics
Deployment Diagram
Deployment diagrams show the deployment architecture of the
system, that is, which of the system’s software artifacts reside
on which pieces of hardware.
Artifact
Represents a physical file
Owned Element
Relationship
Shows another way of
showing nested elements
Node
Represents a
physical machine
29
UML Basics
30
UML Basics
References
Rational Unified Process® course
Essentials of Rational Unified Process®
Essentials of Rational® RequisitePro®
Web-based or Instructor-led training
Mastering Business Modeling with the UML
Web sites
Rational’s corporate site: www.rational.com
Rational Developer NetworkSM: www.rational.net
Books and articles about requirements management
31
UML Basics
THANK YOU
32