SlideShare a Scribd company logo
UML 2.0
Collection of standards and guidelines for UML
diagrams
What is UML?
The Unified Modelling Language (UML) is a
family of graphical notations, that help in
describing and designing software systems
Examples:
Start with the UML
• Nobody understand or use all of UML.
• Use a small subset of the UML for you and your
colleagues.
• Concentrate first on Class and Sequence
Diagrams
UML Types
• Activity - Procedural and parallel behaviour
• Class - Class, features, relationships
• Communication - Interaction between objects
• Component - Structure and connections of components
• Composite Structure - Runtime decomposition of a class
• Deployment - Deployment of artefacts to notes
• Interaction overview - Mix of sequence and activity diagram
• Object - Example configurations of instances
• Package - Compile-time hierarchic structure
• Sequence - Interactions between objects; emphasis on sequence
• State machine - How events change an object over it’s life
• Timing - Interaction between objects; emphasis on timing
• Use case - How users interact with a system
Class Diagram
Describe objects and relationship types among them.
Attributes
visibility name: type multiplicity = default {property-string}public age: int [1..*] = 15 {readOnly}+ age: int [1..*] = 15 {readOnly}
public / private
attribute name
numeric | boolean | string…
1 | 0..1 | *
default value
{readOnly}
Methods
visibility name (parameter-list) : return-type {property-string}public talk (speech: string) : void+talk(speech:string):void
public / private
method name
parameters
return value
{visibility:implementation}
Associations
• Class Names
Person Car
• Association Line
• Association name
owns
• Multiplicity
0..1 *
Notes, Comments
Dependency
• Use dependencies whenever you want to show
how changes in one element might alter other
elements.
• Dependency is in only one direction and goes from
the presentation class to the domain class.
General Guidelines
• Crossing Lines
• Avoid Diagonal and Curved lines
• Align Labels Horizontally
• Arrange Symbols Symmetrically
• Attach Lines to the Middle of Bubbles
• Organise Diagrams Left to Right, Top to Bottom
• Avoid Many Close Lines
• Provide a Notation Legends
Back to the Class
Diagrams
Association Class
Association classes allow you to add attributes, operations,
and other features to associations
Promoting an association
class to a full class
Company Contract
Role
description
Company Contract
Role
description
* *
* * * *
Sequence Diagrams
How groups of objects collaborate in some behaviour
• A lifeline represents an
individual participant in a
sequence diagram.
• A lifeline will usually have a
rectangle containing its
object name.
• Lifeline can represent actor,
Boundary, Control and Entity
elements
Messages
• Messages are displayed as arrows
• Messages can be synchronous and asynchronous
• synchronous message line

denoted by the solid arrowhead
• asynchronous message line 

denoted by line arrowhead
• return message line 

denoted by dashed line
Found and Lost messages
• Lost messages are those,
that go to a recipient not
shown on the current
diagram.
• Found messages are those
that arrive from an unknown
sender, or from a sender not
shown on the current
diagram.
• They are denoted going to or
coming from an endpoint
element.
• A self message can
represent a recursive
call of an operation, or
one method calling
another method
belonging to the
same object.
Lifeline Start and End
• A lifeline may be
created or
destroyed during
the timescale
• The lifeline is
terminated by a stop
symbol, represented
as a cross.
Loops
• Loops
represented as
fragment into
sequence
diagram
Sequence Diagram Example
Activity Diagram
Email Connection Activity Diagram
Basic notations and symbols
Initial State or Start Point
Activity or Action State
Action Flow
Decisions and Branching
End Point Symbol
Synchronisation
• Straight, slightly thicker line
is used to split a single
incoming flow into multiple
concurrent flows.
• A join node joins multiple
concurrent flows back into
a single outgoing flow.
• A fork and join mode used
together are often referred
to as synchronization.
Swimlanes
Swimlanes group related
activities into one
column
ATM Activity Diagram
Example
Sources
• The Elements of UML 2.0 Style - Scott W. Ambler
• Learning UML 2.0 - O’Reilly
• UML Distilled. A Brief Guide to the Standard Object
Modelling Language - Martin Fowler
• Sparx Systems - www.sparxsystems.com
Thanks for listening

More Related Content

What's hot

UML Diagrams- Unified Modeling Language Introduction
UML Diagrams- Unified Modeling Language IntroductionUML Diagrams- Unified Modeling Language Introduction
UML Diagrams- Unified Modeling Language Introduction
Ramakant Soni
 
Object and class relationships
Object and class relationshipsObject and class relationships
Object and class relationshipsPooja mittal
 
Lecture 4-oop class diagram
Lecture 4-oop class diagramLecture 4-oop class diagram
Lecture 4-oop class diagram
ktuonlinenotes
 
Class diagram
Class diagramClass diagram
Class diagram
SESP123
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
Nurul Haszeli Ahmad
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptx
Nwabueze Obioma
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGE
Raval Chirag
 
Uml class diagram and packages ppt for dot net
Uml class diagram and packages ppt for dot netUml class diagram and packages ppt for dot net
Uml class diagram and packages ppt for dot net
mekhap
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
Nadia_Nazeer
 
Class diagram
Class diagramClass diagram
Class diagram
Praneeth Yadav
 
What is UML (Unified Modeling Language)?
What is UML (Unified Modeling Language)?What is UML (Unified Modeling Language)?
What is UML (Unified Modeling Language)?
Eliza Wright
 
Fundamentals of Software Engineering
Fundamentals of Software Engineering Fundamentals of Software Engineering
Fundamentals of Software Engineering
Madhar Khan Pathan
 
Class diagram presentation
Class diagram presentationClass diagram presentation
Class diagram presentation
SayedFarhan110
 
Uml class Diagram
Uml class DiagramUml class Diagram
Uml class Diagram
Satyamevjayte Haxor
 
Enhancement of Action Description Language for UML Activity Diagram Review
Enhancement of Action Description Language for UML Activity Diagram ReviewEnhancement of Action Description Language for UML Activity Diagram Review
Enhancement of Action Description Language for UML Activity Diagram Review
Chinnapat Kaewchinporn
 

What's hot (20)

UML Diagrams- Unified Modeling Language Introduction
UML Diagrams- Unified Modeling Language IntroductionUML Diagrams- Unified Modeling Language Introduction
UML Diagrams- Unified Modeling Language Introduction
 
Object and class relationships
Object and class relationshipsObject and class relationships
Object and class relationships
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling Language
 
Uml
UmlUml
Uml
 
Lecture 4-oop class diagram
Lecture 4-oop class diagramLecture 4-oop class diagram
Lecture 4-oop class diagram
 
Uml sequence diagrams
Uml sequence diagramsUml sequence diagrams
Uml sequence diagrams
 
Class diagram
Class diagramClass diagram
Class diagram
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptx
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGE
 
Uml class diagram and packages ppt for dot net
Uml class diagram and packages ppt for dot netUml class diagram and packages ppt for dot net
Uml class diagram and packages ppt for dot net
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
 
Class diagram
Class diagramClass diagram
Class diagram
 
graph
graphgraph
graph
 
What is UML (Unified Modeling Language)?
What is UML (Unified Modeling Language)?What is UML (Unified Modeling Language)?
What is UML (Unified Modeling Language)?
 
Fundamentals of Software Engineering
Fundamentals of Software Engineering Fundamentals of Software Engineering
Fundamentals of Software Engineering
 
Case Study Uml
Case Study UmlCase Study Uml
Case Study Uml
 
Class diagram presentation
Class diagram presentationClass diagram presentation
Class diagram presentation
 
Uml class Diagram
Uml class DiagramUml class Diagram
Uml class Diagram
 
Enhancement of Action Description Language for UML Activity Diagram Review
Enhancement of Action Description Language for UML Activity Diagram ReviewEnhancement of Action Description Language for UML Activity Diagram Review
Enhancement of Action Description Language for UML Activity Diagram Review
 

Similar to UML

uml.ppt
uml.pptuml.ppt
uml.ppt
RojaPogul1
 
Cs 1023 lec 10 uml (week 3)
Cs 1023 lec 10 uml (week 3)Cs 1023 lec 10 uml (week 3)
Cs 1023 lec 10 uml (week 3)stanbridge
 
1. introduction to uml
1. introduction to uml1. introduction to uml
1. introduction to uml
PRABU M
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
Kartik Raghuvanshi
 
UML (Hemant rajak)
UML (Hemant rajak)UML (Hemant rajak)
UML (Hemant rajak)hrajak5
 
Class diagram
Class diagramClass diagram
Class diagram
LakshmanaD2
 
Object Oriented Analysis Design using UML
Object Oriented Analysis Design using UMLObject Oriented Analysis Design using UML
Object Oriented Analysis Design using UML
Ajit Nayak
 
Ooad static diagram
Ooad static diagramOoad static diagram
Ooad static diagram
TSubashiniAPIICSE
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence Diagram
Nikhil Pandit
 
UML Modeling in Java
UML Modeling in JavaUML Modeling in Java
UML Modeling in Java
Daffodil International University
 
An introduction to uml
An introduction to umlAn introduction to uml
An introduction to umlTony Huynh
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
RAJESH S
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram Tutorial
Creately
 
Ooad lab manual
Ooad  lab manualOoad  lab manual
Ooad lab manual
Praseela R
 
Unit 1- OOAD ppt
Unit 1- OOAD  pptUnit 1- OOAD  ppt
Unit 1- OOAD ppt
PRIANKA R
 
Intoduction to uml
Intoduction to umlIntoduction to uml
Intoduction to uml
Mahesh Bhalerao
 
UML tutorial
UML tutorialUML tutorial
UML tutorial
Eliza Wright
 
Uml package diagram
Uml package  diagramUml package  diagram
Uml package diagram
Vedaraj M
 
Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction DiagramNiloy Rocker
 

Similar to UML (20)

uml.ppt
uml.pptuml.ppt
uml.ppt
 
Cs 1023 lec 10 uml (week 3)
Cs 1023 lec 10 uml (week 3)Cs 1023 lec 10 uml (week 3)
Cs 1023 lec 10 uml (week 3)
 
1. introduction to uml
1. introduction to uml1. introduction to uml
1. introduction to uml
 
Uml class-diagram
Uml class-diagramUml class-diagram
Uml class-diagram
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
UML (Hemant rajak)
UML (Hemant rajak)UML (Hemant rajak)
UML (Hemant rajak)
 
Class diagram
Class diagramClass diagram
Class diagram
 
Object Oriented Analysis Design using UML
Object Oriented Analysis Design using UMLObject Oriented Analysis Design using UML
Object Oriented Analysis Design using UML
 
Ooad static diagram
Ooad static diagramOoad static diagram
Ooad static diagram
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence Diagram
 
UML Modeling in Java
UML Modeling in JavaUML Modeling in Java
UML Modeling in Java
 
An introduction to uml
An introduction to umlAn introduction to uml
An introduction to uml
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram Tutorial
 
Ooad lab manual
Ooad  lab manualOoad  lab manual
Ooad lab manual
 
Unit 1- OOAD ppt
Unit 1- OOAD  pptUnit 1- OOAD  ppt
Unit 1- OOAD ppt
 
Intoduction to uml
Intoduction to umlIntoduction to uml
Intoduction to uml
 
UML tutorial
UML tutorialUML tutorial
UML tutorial
 
Uml package diagram
Uml package  diagramUml package  diagram
Uml package diagram
 
Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction Diagram
 

UML

  • 1. UML 2.0 Collection of standards and guidelines for UML diagrams
  • 2. What is UML? The Unified Modelling Language (UML) is a family of graphical notations, that help in describing and designing software systems
  • 4.
  • 5.
  • 6. Start with the UML • Nobody understand or use all of UML. • Use a small subset of the UML for you and your colleagues. • Concentrate first on Class and Sequence Diagrams
  • 7. UML Types • Activity - Procedural and parallel behaviour • Class - Class, features, relationships • Communication - Interaction between objects • Component - Structure and connections of components • Composite Structure - Runtime decomposition of a class • Deployment - Deployment of artefacts to notes • Interaction overview - Mix of sequence and activity diagram • Object - Example configurations of instances • Package - Compile-time hierarchic structure • Sequence - Interactions between objects; emphasis on sequence • State machine - How events change an object over it’s life • Timing - Interaction between objects; emphasis on timing • Use case - How users interact with a system
  • 8. Class Diagram Describe objects and relationship types among them.
  • 9.
  • 10. Attributes visibility name: type multiplicity = default {property-string}public age: int [1..*] = 15 {readOnly}+ age: int [1..*] = 15 {readOnly} public / private attribute name numeric | boolean | string… 1 | 0..1 | * default value {readOnly}
  • 11. Methods visibility name (parameter-list) : return-type {property-string}public talk (speech: string) : void+talk(speech:string):void public / private method name parameters return value {visibility:implementation}
  • 12. Associations • Class Names Person Car • Association Line • Association name owns • Multiplicity 0..1 *
  • 14. Dependency • Use dependencies whenever you want to show how changes in one element might alter other elements. • Dependency is in only one direction and goes from the presentation class to the domain class.
  • 15.
  • 18. • Avoid Diagonal and Curved lines • Align Labels Horizontally • Arrange Symbols Symmetrically • Attach Lines to the Middle of Bubbles
  • 19. • Organise Diagrams Left to Right, Top to Bottom • Avoid Many Close Lines • Provide a Notation Legends
  • 20. Back to the Class Diagrams Association Class
  • 21. Association classes allow you to add attributes, operations, and other features to associations
  • 22. Promoting an association class to a full class Company Contract Role description Company Contract Role description * * * * * *
  • 23. Sequence Diagrams How groups of objects collaborate in some behaviour
  • 24. • A lifeline represents an individual participant in a sequence diagram. • A lifeline will usually have a rectangle containing its object name. • Lifeline can represent actor, Boundary, Control and Entity elements
  • 25. Messages • Messages are displayed as arrows • Messages can be synchronous and asynchronous • synchronous message line
 denoted by the solid arrowhead • asynchronous message line 
 denoted by line arrowhead • return message line 
 denoted by dashed line
  • 26. Found and Lost messages • Lost messages are those, that go to a recipient not shown on the current diagram. • Found messages are those that arrive from an unknown sender, or from a sender not shown on the current diagram. • They are denoted going to or coming from an endpoint element.
  • 27. • A self message can represent a recursive call of an operation, or one method calling another method belonging to the same object.
  • 28. Lifeline Start and End • A lifeline may be created or destroyed during the timescale • The lifeline is terminated by a stop symbol, represented as a cross.
  • 33. Basic notations and symbols Initial State or Start Point Activity or Action State Action Flow Decisions and Branching End Point Symbol
  • 34. Synchronisation • Straight, slightly thicker line is used to split a single incoming flow into multiple concurrent flows. • A join node joins multiple concurrent flows back into a single outgoing flow. • A fork and join mode used together are often referred to as synchronization.
  • 37.
  • 38. Sources • The Elements of UML 2.0 Style - Scott W. Ambler • Learning UML 2.0 - O’Reilly • UML Distilled. A Brief Guide to the Standard Object Modelling Language - Martin Fowler • Sparx Systems - www.sparxsystems.com