SlideShare a Scribd company logo
UML Tutorial
UML Diagrams
UML, which stands for Unified
Modeling Language, is a
popular modeling language for
software engineers.
These professionals use it to
analyze, design, and implement
both business processes and
software-based systems.
UML Diagram Definition
• Before you begin a UML diagram, it's important to realize
that UML, as the name suggests, is a unifying language.
• The primary authors—Jim Rumbaugh, Ivar Jacobson, and
Grady Booch—combined their competing methods into a
single open standard for modeling computer applications.
• UML has the added benefit of being programming-
language independent, so any qualified person can use it.
UML Diagram Definition
• Remember that the UML notation set is a language, rather
than a methodology.
• This distinction allows companies to easily incorporate the
Unified Modeling Language into their existing business
processes without significant changes.
• Although UML is not a methodology, it provides several
diagram types that can be utilized within a methodology
to increase understanding.
UML Diagram Definition
• These diagrams offer a helpful introduction to UML and its
underlying principles. This tutorial will cover the main
diagram types.
• Standard UML diagrams consist of:
• Activity diagrams
• Use case diagrams
• Class diagrams
• Sequence diagrams
• Component diagrams
• Deployment diagrams
ACTIVITY DIAGRAMS
• Activity diagrams show the procedural flow of control
between class objects, along with organizational processes
like business workflows.
• These diagram are made of specialized shapes, then
connected with arrows. The notation set for activity
diagrams is similar to those for state diagrams.
ACTIVITY DIAGRAMS Cont’d
1. Begin your activity diagram with a solid circle.
2. Connect the circle to the first activity, which is modeled
with a round-edged rectangle.
3. Now, connect each activity to other activities with lines
that demonstrate the stepwise flow of the entire process.
4. You can also try using swimlanes to represent the
objects that perform each activity.
Activity Diagram
Example
USE CASE DIAGRAMS
• A use case is a list of steps that define interaction between an
actor (a human who interacts with the system or an external
system) and the system itself. Use case diagrams depict the
specifications of a use case and model the functional units of a
system.
• These diagrams help development teams understand the
requirements of their system, including the role of human
interaction therein and the differences between various use
cases.
• A use case diagram might display all use cases of the system,
or just one group of use cases with similar functionality.
Use Case
Diagram
Example
CLASS DIAGRAMS
• Class diagrams represent the static structures of a system,
including its classes, attributes, operations, and objects.
• A class diagram can display computational data or
organizational data in the form of implementation classes
and logical classes, respectively.
• There may be overlap between these two groups.
CLASS DIAGRAMS Cont’d
1. Classes are represented with a rectangular shape that is split
into thirds. The top section displays the class name, while
the middle section contains the class' attributes. The bottom
section features the class operations (also known as
methods).
2. Add class shapes to your class diagram to model the
relationship between those objects. You may need to add
subclasses, as well.
3. Use lines to represent association, inheritance, multiplicity,
and other relationships between classes and subclasses.
Your preferred notation style will inform the notation of
these lines.
Class Diagram Example
SEQUENCE DIAGRAMS
• Sequence diagrams, also known as event diagrams or
event scenarios, illustrate how processes interact with
each other by showing calls between different objects in a
sequence.
• These diagrams have two dimensions: vertical and
horizontal. The vertical lines show the sequence of
messages and calls in chronological order, and the
horizontal elements show object instances where the
messages are relayed.
SEQUENCE DIAGRAMS Cont’d
1. To create a sequence diagram, write the class instance
name and class name in a rectangular box.
2. Draw lines between class instances to represent the
sender and receiver of messages.
3. Use solid arrowheads to symbolize synchronous
messages, open arrowheads for asynchronous
messages, and dashed lines for reply messages.
Sequence
Diagram
Example
COMPONENT DIAGRAMS
• Component diagrams show how components are
combined to form larger components or software
systems. These diagrams are meant to model the
dependencies of each component in the system.
• A component is something required to execute a
stereotype function.
• A component stereotype may consist of executables,
documents, database tables, files, or library files.
COMPONENT DIAGRAMS Cont’d
1. Represent a component with a rectangle shape. It
should have two small rectangles on the side, or feature
an icon with this shape.
2. Add lines between component shapes to represent the
relevant relationships.
Component Diagram Example
DEPLOYMENT DIAGRAMS
A deployment diagram models the physical deployment
and structure of hardware components. Deployment
diagrams demonstrate where and how the components of a
system will operate in conjunction with each other.
1. When drawing a deployment diagram, use the same
notation that you use for a component diagram.
2. Use a 3-D cube to model a node (which represents a
physical machine or virtual machine).
3. Label the node in the same style that is used for
sequence diagrams. Add other nodes as needed, then
connect with lines.
Deployment
Diagram
Example
Resources
• See Lucid U for examples
and tutorials on UML
diagrams.
• Try the Lucidchart demo
for free!
Lucidchart was made to handle complex UML diagrams, include activity diagrams, class
diagrams, and use case diagrams. Use our application to make and share professional-
looking charts from the web.

More Related Content

PPT
Unit 1( modelling concepts & class modeling)
PPTX
Object oriented methodologies
PDF
State chart diagram
PPT
10 component diagram
PPT
Object Oriented Modeling and Design with UML
PPTX
HCI Models of System
PPTX
Testing strategies part -1
PPT
UML Diagrams
Unit 1( modelling concepts & class modeling)
Object oriented methodologies
State chart diagram
10 component diagram
Object Oriented Modeling and Design with UML
HCI Models of System
Testing strategies part -1
UML Diagrams

What's hot (20)

PDF
Object diagram
PDF
Sequence diagrams
PPTX
STRUCTURE OF SQL QUERIES
PDF
Object Oriented Analysis Design using UML
PPT
Ooad overview
PPTX
state modeling In UML
 
PDF
Unit 4- Software Engineering System Model Notes
PPT
System Models in Software Engineering SE7
PPTX
Object diagram
DOCX
Behavioural modelling
PDF
SE_Lec 05_System Modelling and Context Model
PPT
Object Oriented Design in Software Engineering SE12
PDF
CS8592-OOAD Lecture Notes Unit-3
PPTX
Overview of UML Diagrams
PPTX
Domain class model
PDF
SE_Lec 09_ UML Behaviour Diagrams
PPT
5.state diagrams
 
PPT
11 deployment diagrams
PDF
CS8592 Object Oriented Analysis & Design - UNIT II
PPTX
Unified modeling language diagrams
Object diagram
Sequence diagrams
STRUCTURE OF SQL QUERIES
Object Oriented Analysis Design using UML
Ooad overview
state modeling In UML
 
Unit 4- Software Engineering System Model Notes
System Models in Software Engineering SE7
Object diagram
Behavioural modelling
SE_Lec 05_System Modelling and Context Model
Object Oriented Design in Software Engineering SE12
CS8592-OOAD Lecture Notes Unit-3
Overview of UML Diagrams
Domain class model
SE_Lec 09_ UML Behaviour Diagrams
5.state diagrams
 
11 deployment diagrams
CS8592 Object Oriented Analysis & Design - UNIT II
Unified modeling language diagrams
Ad

Similar to UML tutorial (20)

PPTX
UML Diagrams.pptxUML DiagramsUML DiagramsUML Diagrams
PPTX
SMD Unit ii
PDF
UML-Advanced Software Engineering
PDF
Modeling software with UML
PPTX
detailed info of class diagram in ooad with uml
PPTX
class diagrams in unified modeling language
PPTX
An introduction to uml
PPTX
Uml Presentation
PDF
Design UML diagrams
PDF
Design UML diagrams
PDF
Software Engineering Tools and Practices.pdf
PPT
8.Unified Process Modelling.ppt of software engg
PPTX
UNIT-3 Design Using UML_Design_of_UML.pptx
PPT
Introduction to Rational Rose
PPTX
UNIT-3 Design Using UML (1).pptx
PPTX
Unified Modelling language Component diagram.pptx
PDF
Case stydy cs701
PDF
OOM Unit I - III.pdf
DOC
Case Study Uml
PDF
Types of UML diagrams
UML Diagrams.pptxUML DiagramsUML DiagramsUML Diagrams
SMD Unit ii
UML-Advanced Software Engineering
Modeling software with UML
detailed info of class diagram in ooad with uml
class diagrams in unified modeling language
An introduction to uml
Uml Presentation
Design UML diagrams
Design UML diagrams
Software Engineering Tools and Practices.pdf
8.Unified Process Modelling.ppt of software engg
UNIT-3 Design Using UML_Design_of_UML.pptx
Introduction to Rational Rose
UNIT-3 Design Using UML (1).pptx
Unified Modelling language Component diagram.pptx
Case stydy cs701
OOM Unit I - III.pdf
Case Study Uml
Types of UML diagrams
Ad

Recently uploaded (20)

PDF
Dr. Enrique Segura Ense Group - A Self-Made Entrepreneur And Executive
DOCX
unit 2 cost accounting- Tender and Quotation & Reconciliation Statement
PDF
IFRS Notes in your pocket for study all the time
PDF
MSPs in 10 Words - Created by US MSP Network
PDF
How to Get Funding for Your Trucking Business
PDF
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
PPTX
Amazon (Business Studies) management studies
PPTX
Lecture (1)-Introduction.pptx business communication
PPTX
AI-assistance in Knowledge Collection and Curation supporting Safe and Sustai...
PDF
Power and position in leadershipDOC-20250808-WA0011..pdf
PPTX
5 Stages of group development guide.pptx
PDF
Deliverable file - Regulatory guideline analysis.pdf
PPTX
Dragon_Fruit_Cultivation_in Nepal ppt.pptx
PDF
Roadmap Map-digital Banking feature MB,IB,AB
PDF
kom-180-proposal-for-a-directive-amending-directive-2014-45-eu-and-directive-...
PDF
A Brief Introduction About Julia Allison
PPTX
job Avenue by vinith.pptxvnbvnvnvbnvbnbmnbmbh
PPTX
Business Ethics - An introduction and its overview.pptx
PPT
Data mining for business intelligence ch04 sharda
PDF
Ôn tập tiếng anh trong kinh doanh nâng cao
Dr. Enrique Segura Ense Group - A Self-Made Entrepreneur And Executive
unit 2 cost accounting- Tender and Quotation & Reconciliation Statement
IFRS Notes in your pocket for study all the time
MSPs in 10 Words - Created by US MSP Network
How to Get Funding for Your Trucking Business
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
Amazon (Business Studies) management studies
Lecture (1)-Introduction.pptx business communication
AI-assistance in Knowledge Collection and Curation supporting Safe and Sustai...
Power and position in leadershipDOC-20250808-WA0011..pdf
5 Stages of group development guide.pptx
Deliverable file - Regulatory guideline analysis.pdf
Dragon_Fruit_Cultivation_in Nepal ppt.pptx
Roadmap Map-digital Banking feature MB,IB,AB
kom-180-proposal-for-a-directive-amending-directive-2014-45-eu-and-directive-...
A Brief Introduction About Julia Allison
job Avenue by vinith.pptxvnbvnvnvbnvbnbmnbmbh
Business Ethics - An introduction and its overview.pptx
Data mining for business intelligence ch04 sharda
Ôn tập tiếng anh trong kinh doanh nâng cao

UML tutorial

  • 2. UML Diagrams UML, which stands for Unified Modeling Language, is a popular modeling language for software engineers. These professionals use it to analyze, design, and implement both business processes and software-based systems.
  • 3. UML Diagram Definition • Before you begin a UML diagram, it's important to realize that UML, as the name suggests, is a unifying language. • The primary authors—Jim Rumbaugh, Ivar Jacobson, and Grady Booch—combined their competing methods into a single open standard for modeling computer applications. • UML has the added benefit of being programming- language independent, so any qualified person can use it.
  • 4. UML Diagram Definition • Remember that the UML notation set is a language, rather than a methodology. • This distinction allows companies to easily incorporate the Unified Modeling Language into their existing business processes without significant changes. • Although UML is not a methodology, it provides several diagram types that can be utilized within a methodology to increase understanding.
  • 5. UML Diagram Definition • These diagrams offer a helpful introduction to UML and its underlying principles. This tutorial will cover the main diagram types. • Standard UML diagrams consist of: • Activity diagrams • Use case diagrams • Class diagrams • Sequence diagrams • Component diagrams • Deployment diagrams
  • 6. ACTIVITY DIAGRAMS • Activity diagrams show the procedural flow of control between class objects, along with organizational processes like business workflows. • These diagram are made of specialized shapes, then connected with arrows. The notation set for activity diagrams is similar to those for state diagrams.
  • 7. ACTIVITY DIAGRAMS Cont’d 1. Begin your activity diagram with a solid circle. 2. Connect the circle to the first activity, which is modeled with a round-edged rectangle. 3. Now, connect each activity to other activities with lines that demonstrate the stepwise flow of the entire process. 4. You can also try using swimlanes to represent the objects that perform each activity.
  • 9. USE CASE DIAGRAMS • A use case is a list of steps that define interaction between an actor (a human who interacts with the system or an external system) and the system itself. Use case diagrams depict the specifications of a use case and model the functional units of a system. • These diagrams help development teams understand the requirements of their system, including the role of human interaction therein and the differences between various use cases. • A use case diagram might display all use cases of the system, or just one group of use cases with similar functionality.
  • 11. CLASS DIAGRAMS • Class diagrams represent the static structures of a system, including its classes, attributes, operations, and objects. • A class diagram can display computational data or organizational data in the form of implementation classes and logical classes, respectively. • There may be overlap between these two groups.
  • 12. CLASS DIAGRAMS Cont’d 1. Classes are represented with a rectangular shape that is split into thirds. The top section displays the class name, while the middle section contains the class' attributes. The bottom section features the class operations (also known as methods). 2. Add class shapes to your class diagram to model the relationship between those objects. You may need to add subclasses, as well. 3. Use lines to represent association, inheritance, multiplicity, and other relationships between classes and subclasses. Your preferred notation style will inform the notation of these lines.
  • 14. SEQUENCE DIAGRAMS • Sequence diagrams, also known as event diagrams or event scenarios, illustrate how processes interact with each other by showing calls between different objects in a sequence. • These diagrams have two dimensions: vertical and horizontal. The vertical lines show the sequence of messages and calls in chronological order, and the horizontal elements show object instances where the messages are relayed.
  • 15. SEQUENCE DIAGRAMS Cont’d 1. To create a sequence diagram, write the class instance name and class name in a rectangular box. 2. Draw lines between class instances to represent the sender and receiver of messages. 3. Use solid arrowheads to symbolize synchronous messages, open arrowheads for asynchronous messages, and dashed lines for reply messages.
  • 17. COMPONENT DIAGRAMS • Component diagrams show how components are combined to form larger components or software systems. These diagrams are meant to model the dependencies of each component in the system. • A component is something required to execute a stereotype function. • A component stereotype may consist of executables, documents, database tables, files, or library files.
  • 18. COMPONENT DIAGRAMS Cont’d 1. Represent a component with a rectangle shape. It should have two small rectangles on the side, or feature an icon with this shape. 2. Add lines between component shapes to represent the relevant relationships.
  • 20. DEPLOYMENT DIAGRAMS A deployment diagram models the physical deployment and structure of hardware components. Deployment diagrams demonstrate where and how the components of a system will operate in conjunction with each other. 1. When drawing a deployment diagram, use the same notation that you use for a component diagram. 2. Use a 3-D cube to model a node (which represents a physical machine or virtual machine). 3. Label the node in the same style that is used for sequence diagrams. Add other nodes as needed, then connect with lines.
  • 22. Resources • See Lucid U for examples and tutorials on UML diagrams. • Try the Lucidchart demo for free! Lucidchart was made to handle complex UML diagrams, include activity diagrams, class diagrams, and use case diagrams. Use our application to make and share professional- looking charts from the web.