SlideShare a Scribd company logo
1 of 22
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

What's hot

UML Architecture and Views
UML Architecture and ViewsUML Architecture and Views
UML Architecture and ViewsKumar
 
Unit 3 object analysis-classification
Unit 3 object analysis-classificationUnit 3 object analysis-classification
Unit 3 object analysis-classificationgopal10scs185
 
10 component diagram
10 component diagram10 component diagram
10 component diagramBaskarkncet
 
Software development life cycle
Software development life cycleSoftware development life cycle
Software development life cycleGurban Daniel
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case DiagramKumar
 
Design Concepts in Software Engineering-1.pptx
Design Concepts in Software Engineering-1.pptxDesign Concepts in Software Engineering-1.pptx
Design Concepts in Software Engineering-1.pptxKarthigaiSelviS3
 
Formal Approaches to SQA.pptx
Formal Approaches to SQA.pptxFormal Approaches to SQA.pptx
Formal Approaches to SQA.pptxKarthigaiSelviS3
 
Grasp patterns and its types
Grasp patterns and its typesGrasp patterns and its types
Grasp patterns and its typesSyed Hassan Ali
 
11 deployment diagrams
11 deployment diagrams11 deployment diagrams
11 deployment diagramsBaskarkncet
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologiesnaina-rani
 
object oriented methodologies
object oriented methodologiesobject oriented methodologies
object oriented methodologiesAmith Tiwari
 
The Ultimate Guide for UML Class Diagrams by Creately
The Ultimate Guide for UML Class Diagrams by CreatelyThe Ultimate Guide for UML Class Diagrams by Creately
The Ultimate Guide for UML Class Diagrams by CreatelyCreately
 
Java buzzwords
Java buzzwordsJava buzzwords
Java buzzwordsramesh517
 

What's hot (20)

Unit 4
Unit 4Unit 4
Unit 4
 
UML Architecture and Views
UML Architecture and ViewsUML Architecture and Views
UML Architecture and Views
 
Unit 3 object analysis-classification
Unit 3 object analysis-classificationUnit 3 object analysis-classification
Unit 3 object analysis-classification
 
Android UI
Android UIAndroid UI
Android UI
 
10 component diagram
10 component diagram10 component diagram
10 component diagram
 
Software development life cycle
Software development life cycleSoftware development life cycle
Software development life cycle
 
Unit 5
Unit 5Unit 5
Unit 5
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Component Diagram
Component DiagramComponent Diagram
Component Diagram
 
Design Concepts in Software Engineering-1.pptx
Design Concepts in Software Engineering-1.pptxDesign Concepts in Software Engineering-1.pptx
Design Concepts in Software Engineering-1.pptx
 
Formal Approaches to SQA.pptx
Formal Approaches to SQA.pptxFormal Approaches to SQA.pptx
Formal Approaches to SQA.pptx
 
Grasp patterns and its types
Grasp patterns and its typesGrasp patterns and its types
Grasp patterns and its types
 
11 deployment diagrams
11 deployment diagrams11 deployment diagrams
11 deployment diagrams
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
 
object oriented methodologies
object oriented methodologiesobject oriented methodologies
object oriented methodologies
 
The Ultimate Guide for UML Class Diagrams by Creately
The Ultimate Guide for UML Class Diagrams by CreatelyThe Ultimate Guide for UML Class Diagrams by Creately
The Ultimate Guide for UML Class Diagrams by Creately
 
Java buzzwords
Java buzzwordsJava buzzwords
Java buzzwords
 
Objective c
Objective cObjective c
Objective c
 
Waterfall model
Waterfall modelWaterfall model
Waterfall model
 
Design pattern-presentation
Design pattern-presentationDesign pattern-presentation
Design pattern-presentation
 

Similar to UML tutorial

UML-Advanced Software Engineering
UML-Advanced Software EngineeringUML-Advanced Software Engineering
UML-Advanced Software EngineeringAmit Singh
 
Modeling software with UML
Modeling software with UMLModeling software with UML
Modeling software with UML6020 peaks
 
An introduction to uml
An introduction to umlAn introduction to uml
An introduction to umlTony Huynh
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentationanasz3z3
 
Software Engineering Tools and Practices.pdf
Software Engineering Tools and Practices.pdfSoftware Engineering Tools and Practices.pdf
Software Engineering Tools and Practices.pdfMeagGhn
 
8.Unified Process Modelling.ppt of software engg
8.Unified Process Modelling.ppt  of software engg8.Unified Process Modelling.ppt  of software engg
8.Unified Process Modelling.ppt of software enggSukhmanSingh91
 
Introduction to Rational Rose
Introduction to Rational RoseIntroduction to Rational Rose
Introduction to Rational RoseMunaam Munawar
 
UNIT-3 Design Using UML (1).pptx
UNIT-3 Design Using UML (1).pptxUNIT-3 Design Using UML (1).pptx
UNIT-3 Design Using UML (1).pptxviju001
 
Lect-4: UML diagrams - Unified Modeling Language - SPM
Lect-4: UML diagrams - Unified Modeling Language - SPMLect-4: UML diagrams - Unified Modeling Language - SPM
Lect-4: UML diagrams - Unified Modeling Language - SPMMubashir Ali
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagramsbarney92
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.pptRAJESH S
 

Similar to UML tutorial (20)

SMD Unit ii
SMD Unit iiSMD Unit ii
SMD Unit ii
 
UML-Advanced Software Engineering
UML-Advanced Software EngineeringUML-Advanced Software Engineering
UML-Advanced Software Engineering
 
Modeling software with UML
Modeling software with UMLModeling software with UML
Modeling software with UML
 
An introduction to uml
An introduction to umlAn introduction to uml
An introduction to uml
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
 
Design UML diagrams
Design UML diagramsDesign UML diagrams
Design UML diagrams
 
Design UML diagrams
Design UML diagramsDesign UML diagrams
Design UML diagrams
 
Software Engineering Tools and Practices.pdf
Software Engineering Tools and Practices.pdfSoftware Engineering Tools and Practices.pdf
Software Engineering Tools and Practices.pdf
 
8.Unified Process Modelling.ppt of software engg
8.Unified Process Modelling.ppt  of software engg8.Unified Process Modelling.ppt  of software engg
8.Unified Process Modelling.ppt of software engg
 
Introduction to Rational Rose
Introduction to Rational RoseIntroduction to Rational Rose
Introduction to Rational Rose
 
UNIT-3 Design Using UML (1).pptx
UNIT-3 Design Using UML (1).pptxUNIT-3 Design Using UML (1).pptx
UNIT-3 Design Using UML (1).pptx
 
Case stydy cs701
Case stydy cs701 Case stydy cs701
Case stydy cs701
 
OOM Unit I - III.pdf
OOM Unit I - III.pdfOOM Unit I - III.pdf
OOM Unit I - III.pdf
 
Case Study Uml
Case Study UmlCase Study Uml
Case Study Uml
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
 
Lect-4: UML diagrams - Unified Modeling Language - SPM
Lect-4: UML diagrams - Unified Modeling Language - SPMLect-4: UML diagrams - Unified Modeling Language - SPM
Lect-4: UML diagrams - Unified Modeling Language - SPM
 
Object oriented analysis and design unit- iv
Object oriented analysis and design unit- ivObject oriented analysis and design unit- iv
Object oriented analysis and design unit- iv
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
Uml Diagrams
Uml DiagramsUml Diagrams
Uml Diagrams
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
 

Recently uploaded

Planetary and Vedic Yagyas Bring Positive Impacts in Life
Planetary and Vedic Yagyas Bring Positive Impacts in LifePlanetary and Vedic Yagyas Bring Positive Impacts in Life
Planetary and Vedic Yagyas Bring Positive Impacts in LifeBhavana Pujan Kendra
 
1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdf1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdfShaun Heinrichs
 
TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024Adnet Communications
 
business environment micro environment macro environment.pptx
business environment micro environment macro environment.pptxbusiness environment micro environment macro environment.pptx
business environment micro environment macro environment.pptxShruti Mittal
 
Introducing the Analogic framework for business planning applications
Introducing the Analogic framework for business planning applicationsIntroducing the Analogic framework for business planning applications
Introducing the Analogic framework for business planning applicationsKnowledgeSeed
 
Excvation Safety for safety officers reference
Excvation Safety for safety officers referenceExcvation Safety for safety officers reference
Excvation Safety for safety officers referencessuser2c065e
 
Technical Leaders - Working with the Management Team
Technical Leaders - Working with the Management TeamTechnical Leaders - Working with the Management Team
Technical Leaders - Working with the Management TeamArik Fletcher
 
Effective Strategies for Maximizing Your Profit When Selling Gold Jewelry
Effective Strategies for Maximizing Your Profit When Selling Gold JewelryEffective Strategies for Maximizing Your Profit When Selling Gold Jewelry
Effective Strategies for Maximizing Your Profit When Selling Gold JewelryWhittensFineJewelry1
 
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxThe-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxmbikashkanyari
 
Pitch Deck Teardown: Xpanceo's $40M Seed deck
Pitch Deck Teardown: Xpanceo's $40M Seed deckPitch Deck Teardown: Xpanceo's $40M Seed deck
Pitch Deck Teardown: Xpanceo's $40M Seed deckHajeJanKamps
 
Strategic Project Finance Essentials: A Project Manager’s Guide to Financial ...
Strategic Project Finance Essentials: A Project Manager’s Guide to Financial ...Strategic Project Finance Essentials: A Project Manager’s Guide to Financial ...
Strategic Project Finance Essentials: A Project Manager’s Guide to Financial ...Aggregage
 
Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Americas Got Grants
 
14680-51-4.pdf Good quality CAS Good quality CAS
14680-51-4.pdf  Good  quality CAS Good  quality CAS14680-51-4.pdf  Good  quality CAS Good  quality CAS
14680-51-4.pdf Good quality CAS Good quality CAScathy664059
 
20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdf
20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdf20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdf
20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdfChris Skinner
 
The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...
The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...
The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...Operational Excellence Consulting
 
Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Peter Ward
 
Healthcare Feb. & Mar. Healthcare Newsletter
Healthcare Feb. & Mar. Healthcare NewsletterHealthcare Feb. & Mar. Healthcare Newsletter
Healthcare Feb. & Mar. Healthcare NewsletterJamesConcepcion7
 
NAB Show Exhibitor List 2024 - Exhibitors Data
NAB Show Exhibitor List 2024 - Exhibitors DataNAB Show Exhibitor List 2024 - Exhibitors Data
NAB Show Exhibitor List 2024 - Exhibitors DataExhibitors Data
 
1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdf1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdfShaun Heinrichs
 
Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...
Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...
Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...ssuserf63bd7
 

Recently uploaded (20)

Planetary and Vedic Yagyas Bring Positive Impacts in Life
Planetary and Vedic Yagyas Bring Positive Impacts in LifePlanetary and Vedic Yagyas Bring Positive Impacts in Life
Planetary and Vedic Yagyas Bring Positive Impacts in Life
 
1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdf1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdf
 
TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024
 
business environment micro environment macro environment.pptx
business environment micro environment macro environment.pptxbusiness environment micro environment macro environment.pptx
business environment micro environment macro environment.pptx
 
Introducing the Analogic framework for business planning applications
Introducing the Analogic framework for business planning applicationsIntroducing the Analogic framework for business planning applications
Introducing the Analogic framework for business planning applications
 
Excvation Safety for safety officers reference
Excvation Safety for safety officers referenceExcvation Safety for safety officers reference
Excvation Safety for safety officers reference
 
Technical Leaders - Working with the Management Team
Technical Leaders - Working with the Management TeamTechnical Leaders - Working with the Management Team
Technical Leaders - Working with the Management Team
 
Effective Strategies for Maximizing Your Profit When Selling Gold Jewelry
Effective Strategies for Maximizing Your Profit When Selling Gold JewelryEffective Strategies for Maximizing Your Profit When Selling Gold Jewelry
Effective Strategies for Maximizing Your Profit When Selling Gold Jewelry
 
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxThe-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
 
Pitch Deck Teardown: Xpanceo's $40M Seed deck
Pitch Deck Teardown: Xpanceo's $40M Seed deckPitch Deck Teardown: Xpanceo's $40M Seed deck
Pitch Deck Teardown: Xpanceo's $40M Seed deck
 
Strategic Project Finance Essentials: A Project Manager’s Guide to Financial ...
Strategic Project Finance Essentials: A Project Manager’s Guide to Financial ...Strategic Project Finance Essentials: A Project Manager’s Guide to Financial ...
Strategic Project Finance Essentials: A Project Manager’s Guide to Financial ...
 
Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...
 
14680-51-4.pdf Good quality CAS Good quality CAS
14680-51-4.pdf  Good  quality CAS Good  quality CAS14680-51-4.pdf  Good  quality CAS Good  quality CAS
14680-51-4.pdf Good quality CAS Good quality CAS
 
20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdf
20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdf20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdf
20220816-EthicsGrade_Scorecard-JP_Morgan_Chase-Q2-63_57.pdf
 
The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...
The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...
The McKinsey 7S Framework: A Holistic Approach to Harmonizing All Parts of th...
 
Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...
 
Healthcare Feb. & Mar. Healthcare Newsletter
Healthcare Feb. & Mar. Healthcare NewsletterHealthcare Feb. & Mar. Healthcare Newsletter
Healthcare Feb. & Mar. Healthcare Newsletter
 
NAB Show Exhibitor List 2024 - Exhibitors Data
NAB Show Exhibitor List 2024 - Exhibitors DataNAB Show Exhibitor List 2024 - Exhibitors Data
NAB Show Exhibitor List 2024 - Exhibitors Data
 
1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdf1911 Gold Corporate Presentation Apr 2024.pdf
1911 Gold Corporate Presentation Apr 2024.pdf
 
Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...
Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...
Intermediate Accounting, Volume 2, 13th Canadian Edition by Donald E. Kieso t...
 

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.