SlideShare a Scribd company logo
1
SOFTWARE ENGINEERING II
Lecture VIII- Part 2
COMSATS Institute of Information Technology Computer Science
Department
Syed Faraz Ahmad,
MS (Computer Science)
CIIT Abbottabad
comsian032@gmail.com
2
UML Defined
• The Unified Modeling Language (UML) is a
general purpose visual modeling language that is
used to specify, visualize, construct, and document
the artifacts of a software system.
Source: Rumbaugh, Jacobson, Booch, Unified Modeling Language Reference Manual (Addison-Wesley, 1999), p.
3
3
UML Defined
• It captures decisions and understanding about
systems that must be constructed.
• It is used to understand, design, browse, configure,
maintain, and control information about systems.
• It is intended to be used with all development
methods, lifecycle stages, application domains,
and media.
Source: Rumbaugh, Jacobson, Booch, Unified Modeling Language Reference Manual (Addison-Wesley, 1999), p.
3
4
Goals of UML
 There were a number of goals behind the development
of UML:
 UML is a general-purpose modeling language that all
modelers can use.
 It is meant to include the concepts of the leading methods so
that it can be used as their modeling language.
 It was intended to be as familiar as possible.
 It is meant to support good practices for design such as
encapsulation, separation of concerns, and capture of the
intent of a model construct.
 It is intended to address current software development
issues, such as large scale, distribution, concurrency,
patterns and team development.
 It was to be as simple as possible while still being capable
of modeling the full range of practical systems that need to
be built.
Source: Rumbaugh, Jacobson, Booch, Unified Modeling Language Reference Manual (Addison-Wesley, 1999), p.
8-9
5
UML Building Blocks
• UML is composed of three building blocks:
– Things
• These are the modeling elements
– Relationships
• These tie things together
– Diagrams
• These are views into UML models
Source: Booch, The Unified Modeling Language User Guide (Addison-Wesley, 1998), p. 2.
6
UML Things
 UML thing may be partitioned into:
 Structural things
 Represent the nouns of a UML model such as class,
component, use case, etc
 Behavioral things
 Represent the verbs of a UML model such as
interactions, states, etc.
 Grouping things
 Represent things that group elements together such as the
package.
 Annotational things
 The note
Source: Arlow and Neustadt, UML and the Unified Process (Addison-Wesley, 2002), p. 9.
Relationships
In UML, object interconnections
(logical or physical), are modeled as relationships.
There are three kinds of relationships in UML:
• Dependencies
• Generalizations
• Associations
Dependency Relationships
CourseSchedule
add(c : Course)
remove(c : Course)
Course
A dependency indicates a semantic relationship between
two or more elements. The dependency from
CourseSchedule to Course exists because Course is used
in both the add and remove operations of
CourseSchedule.
Generalization
Relationships
Person
A generalization connects a subclass
to its superclass. It denotes an
inheritance of attributes and behavior
from the superclass to the subclass and
indicates a specialization in the
subclass of the more general
superclass.Student
Generalization Relationships (Cont’d)
Student
UML permits a class to inherit from multiple superclasses,
although some programming languages (e.g., Java) do not
permit multiple inheritance.
TeachingAssistant
Employee
Association Relationships
If two classes in a model need to communicate with each
other, there must be link between them.
An association denotes that link.
StudentInstructor
instructs
Here , an association is instructs.
Association Relationships(Cont’d)
The example indicates that a Student has one or
more Instructors:
InstructorStudent
1..*
Association Relationships (Cont’d)
The example indicates that every Instructor has
one or more Students:
InstructorStudent
1..*
UML Diagram Types with Examples
There are 14 UML diagram types to help you model these
behavior. They can be divided into two main categories
structure diagrams and behavioral diagrams
Class Diagram
Component Diagram
Deployment Diagram
Object Diagram
Package Diagram
Profile Diagram
Composite Structure Diagram
Use Case Diagram
Activity Diagram
State Machine Diagram
Sequence Diagram
Communication Diagram
Interaction Overview
Diagram
Timing Diagram
Structure diagrams show the things in a system
being modeled. In a more technical term they show
different objects in a system.
Behavioral diagrams shows what should happen
in a system. They describe how the objects interact
with each other to create a functioning system.
http://creately.com/blog/diagrams/uml-diagram-types-examples/
Class Diagram
Class diagrams are the most used UML diagram type. It is the
main building block of any object oriented solution. It shows
the classes in a system, attributes and operations of each class
and the relationship between each class.
In most modeling tools a class has three parts, name at the
top, attributes in the middle and operations or methods at
the bottom.
In large systems with many related classes, classes are
grouped together to create class diagrams. Different
relationships between classes are shown by different types of
arrows.
Uml
Component Diagram
A component diagram displays the structural relationship of
components of a software system.
These are mostly used when working with complex systems
that has many components.
Components communicate with each other using interfaces.
The interfaces are linked using connectors.
Simple Component Diagram with Interfaces
Object Diagram
Object Diagrams, sometimes referred as Instance diagrams
are very similar to class diagrams.
As class diagrams they also show the relationship between
objects but they use real world examples.
They are used to show how a system will look like at a
given time. Because there is data available in the objects
they are often used to explain complex relationships
between objects.
UML Object Diagram Example
Use Case Diagram
Most known diagram type of the behavioral UML diagrams,
Use case diagrams gives a graphic overview of the actors
involved in a system, different functions needed by those
actors and how these different functions are interacted.
It’s a great starting point for any project discussion because
you can easily identify the main actors involved and the
main processes of the system.
Use Case diagram showing Actors and main processes
Activity Diagram
Activity diagrams represent workflows in an graphical way.
They can be used to describe business workflow or the
operational workflow of any component in a system.
Sometimes activity diagrams are used as an alternative to
State machine diagrams.
Activity Diagrams with start, end, processes and decision points
Sequence Diagram
Sequence diagrams in UML shows how object interact with
each other and the order those interactions occur.
It’s important to note that they show the interactions for a
particular scenario.
The processes are represented vertically and interactions are
show as arrows..
Sequence Diagrams in UML shows the interaction between two processes
Communication Diagram
Communication diagram was called collaboration diagram.
It is similar to sequence diagrams but the focus is on
messages passed between objects.
The same information can be represented using a sequence
diagram and different objects.
Communication Diagram in UML

More Related Content

PPTX
The Art of Debugging.pptx
KarthigaiSelviS3
 
PPTX
Presentation on uml
Shruti Dalela
 
PPTX
Overview of UML Diagrams
Manish Kumar
 
PPT
Joins in SQL
Vigneshwaran Sankaran
 
PDF
Software testing methods, levels and types
Confiz
 
PDF
Java conditional statements
Kuppusamy P
 
PPTX
Use case diagram
City University
 
The Art of Debugging.pptx
KarthigaiSelviS3
 
Presentation on uml
Shruti Dalela
 
Overview of UML Diagrams
Manish Kumar
 
Joins in SQL
Vigneshwaran Sankaran
 
Software testing methods, levels and types
Confiz
 
Java conditional statements
Kuppusamy P
 
Use case diagram
City University
 

What's hot (20)

PPT
UML Diagrams
Kartik Raghuvanshi
 
PPT
UML
iQra Rafaqat
 
PPTX
Uml with detail
Hamza Khan
 
PPT
Uml diagrams
barney92
 
PPT
Uml class-diagram
ASHOK KUMAR PALAKI
 
PDF
INTRODUCTION TO UML DIAGRAMS
Ashita Agrawal
 
PDF
UNIFIED MODELING LANGUAGE
Raval Chirag
 
PPTX
Cohesion and coupling
Aprajita (Abbey) Singh
 
PPTX
Uml Presentation
anasz3z3
 
PPT
UML Architecture and Views
Kumar
 
PPTX
Component diagram
Abdul Manan
 
PPTX
Activity diagram
LOKENDRA PRAJAPATI
 
PPT
Use Case Modeling
Venkat Srinivasan
 
PPTX
1. introduction to uml
PRABU M
 
PDF
Object Oriented Analysis Design using UML
Ajit Nayak
 
PPT
Object Oriented Design
Sudarsun Santhiappan
 
PPTX
Sequence diagram
Rahul Pola
 
PPT
Object Oriented Analysis and Design
Haitham El-Ghareeb
 
DOCX
Behavioural modelling
Benazir Fathima
 
PPT
Use case Diagram
Rahul Pola
 
UML Diagrams
Kartik Raghuvanshi
 
Uml with detail
Hamza Khan
 
Uml diagrams
barney92
 
Uml class-diagram
ASHOK KUMAR PALAKI
 
INTRODUCTION TO UML DIAGRAMS
Ashita Agrawal
 
UNIFIED MODELING LANGUAGE
Raval Chirag
 
Cohesion and coupling
Aprajita (Abbey) Singh
 
Uml Presentation
anasz3z3
 
UML Architecture and Views
Kumar
 
Component diagram
Abdul Manan
 
Activity diagram
LOKENDRA PRAJAPATI
 
Use Case Modeling
Venkat Srinivasan
 
1. introduction to uml
PRABU M
 
Object Oriented Analysis Design using UML
Ajit Nayak
 
Object Oriented Design
Sudarsun Santhiappan
 
Sequence diagram
Rahul Pola
 
Object Oriented Analysis and Design
Haitham El-Ghareeb
 
Behavioural modelling
Benazir Fathima
 
Use case Diagram
Rahul Pola
 
Ad

Similar to Uml (20)

PPTX
Learn sqa process
Nusrat Jahan
 
PPTX
Introduction to Unified Modeling Language
AMITJain879
 
PPTX
Ch 2.1
mahammed rashid
 
PPTX
Uml.pptx
AnjaliParihar13
 
PDF
UML-Advanced Software Engineering
Amit Singh
 
PPTX
Uml introduction
Muhammad Sayam
 
PPTX
Uml
Vishwa Mohan
 
PPTX
Unified Modeling Language
surana college
 
PPTX
Introduction to unified language modeling.pptx
MBIEDANGOMEGNIFRANKG
 
PPTX
Chapter 2.pptx
RobaDechasa
 
PDF
Object oriented analysis and design unit- ii
Shri Shankaracharya College, Bhilai,Junwani
 
PDF
Object-Oriented Analysis and Design report
ritikapoudel2017
 
PPTX
UML Diagrams.pptxUML DiagramsUML DiagramsUML Diagrams
BDAVUITBDA
 
PPTX
Uml structural diagrams
Swathy T
 
PPTX
UNIFIED MODELLING LANGUAGE (UML)
Shamsunder Malgikar
 
DOCX
Experiment no
hinamunjal
 
PPT
Uml(unified modeling language) Homework Help
Steve Nash
 
DOC
Uml overview modified
senthilkumar_ak
 
PPT
Uml introduciton
Dr. C.V. Suresh Babu
 
Learn sqa process
Nusrat Jahan
 
Introduction to Unified Modeling Language
AMITJain879
 
Uml.pptx
AnjaliParihar13
 
UML-Advanced Software Engineering
Amit Singh
 
Uml introduction
Muhammad Sayam
 
Unified Modeling Language
surana college
 
Introduction to unified language modeling.pptx
MBIEDANGOMEGNIFRANKG
 
Chapter 2.pptx
RobaDechasa
 
Object oriented analysis and design unit- ii
Shri Shankaracharya College, Bhilai,Junwani
 
Object-Oriented Analysis and Design report
ritikapoudel2017
 
UML Diagrams.pptxUML DiagramsUML DiagramsUML Diagrams
BDAVUITBDA
 
Uml structural diagrams
Swathy T
 
UNIFIED MODELLING LANGUAGE (UML)
Shamsunder Malgikar
 
Experiment no
hinamunjal
 
Uml(unified modeling language) Homework Help
Steve Nash
 
Uml overview modified
senthilkumar_ak
 
Uml introduciton
Dr. C.V. Suresh Babu
 
Ad

More from Sulman Ahmed (20)

PPT
Entrepreneurial Strategy Generating and Exploiting new entries
Sulman Ahmed
 
PPT
Entrepreneurial Intentions and corporate entrepreneurship
Sulman Ahmed
 
PPT
Entrepreneurship main concepts and description
Sulman Ahmed
 
PPTX
Run time Verification using formal methods
Sulman Ahmed
 
PPTX
Use of Formal Methods at Amazon Web Services
Sulman Ahmed
 
PPTX
student learning App
Sulman Ahmed
 
PPTX
Software Engineering Economics Life Cycle.
Sulman Ahmed
 
PPTX
Data mining Techniques
Sulman Ahmed
 
PPTX
Rules of data mining
Sulman Ahmed
 
PPTX
Rules of data mining
Sulman Ahmed
 
PPTX
Classification in data mining
Sulman Ahmed
 
PPTX
Data mining Basics and complete description
Sulman Ahmed
 
PPTX
Data mining Basics and complete description onword
Sulman Ahmed
 
PPT
Dwh lecture-07-denormalization
Sulman Ahmed
 
PPT
Dwh lecture-06-normalization
Sulman Ahmed
 
PPT
Dwh lecture 12-dm
Sulman Ahmed
 
PPT
Dwh lecture 13-process dm
Sulman Ahmed
 
PPT
Dwh lecture 11-molap
Sulman Ahmed
 
PPT
Dwh lecture 10-olap
Sulman Ahmed
 
PPT
Dwh lecture 08-denormalization tech
Sulman Ahmed
 
Entrepreneurial Strategy Generating and Exploiting new entries
Sulman Ahmed
 
Entrepreneurial Intentions and corporate entrepreneurship
Sulman Ahmed
 
Entrepreneurship main concepts and description
Sulman Ahmed
 
Run time Verification using formal methods
Sulman Ahmed
 
Use of Formal Methods at Amazon Web Services
Sulman Ahmed
 
student learning App
Sulman Ahmed
 
Software Engineering Economics Life Cycle.
Sulman Ahmed
 
Data mining Techniques
Sulman Ahmed
 
Rules of data mining
Sulman Ahmed
 
Rules of data mining
Sulman Ahmed
 
Classification in data mining
Sulman Ahmed
 
Data mining Basics and complete description
Sulman Ahmed
 
Data mining Basics and complete description onword
Sulman Ahmed
 
Dwh lecture-07-denormalization
Sulman Ahmed
 
Dwh lecture-06-normalization
Sulman Ahmed
 
Dwh lecture 12-dm
Sulman Ahmed
 
Dwh lecture 13-process dm
Sulman Ahmed
 
Dwh lecture 11-molap
Sulman Ahmed
 
Dwh lecture 10-olap
Sulman Ahmed
 
Dwh lecture 08-denormalization tech
Sulman Ahmed
 

Recently uploaded (20)

PPTX
IMPACT OF AI FOR FUTURE GENERATIONS.pptx
holin7
 
PDF
Unlock TikTok Growth with The Short Media
21MCA2671RITUBISHT
 
PPTX
How-Intent-Data-Platforms-Support-Content-Syndication-Strategies.pptx
brandonsoros91
 
PDF
MIL LESSON 1 - MEDIA IN THE CONTEXT OF MIL.pdf
ellakimoxford
 
PPTX
INTRODUCTION TO HTML .pptx
bbariaroshan003
 
PDF
Your Brand’s Pinterest Blueprint Build Your Pinterest Plan
SocioCosmos
 
PDF
Buy Facebook Growth That Works Get Started
SocioCosmos
 
PDF
Dominate Your Niche—The Smart Way...............
SocioCosmos
 
PPTX
Social Media Report Template [To use the template, click the _File_ tab and s...
Ankit kurup
 
PDF
ATTITUDE OF GENERATION Z COLLEGE STUDENTS TOWARDS STUDYING SOCIAL SCIENCE
AJHSSR Journal
 
PDF
Modern & Stylish Kitchen Design Ideas.pdf
muqarrab277
 
PPTX
Freedom-of-Human-Person_20250210_211129_0000.pptx
joshuaeborde787
 
PDF
Sociocosmos = Facebook Growth Partner Build With Us
SocioCosmos
 
PPTX
INTRODUCTION TO HTML. pptx
bariabariabariabaria
 
PDF
Be Seen Where It Scrolls Claim Your Spot
SocioCosmos
 
PDF
How to Get 100k Views on TikTok_ Secrets You Need to Know
Ufki
 
PPTX
Multiple Quotes-playful Multiple Quotes-playful.pptx
BinayKrishnaDey
 
PDF
Boost Your Business with Expert Digital Marketing Services
Amrit Web
 
PDF
Let Poetry Heal What the Heart Can’t Say
Wajiha Mushtaq
 
PDF
The Journey of Digital Marketing Explained
dhanalakshmipanchadh
 
IMPACT OF AI FOR FUTURE GENERATIONS.pptx
holin7
 
Unlock TikTok Growth with The Short Media
21MCA2671RITUBISHT
 
How-Intent-Data-Platforms-Support-Content-Syndication-Strategies.pptx
brandonsoros91
 
MIL LESSON 1 - MEDIA IN THE CONTEXT OF MIL.pdf
ellakimoxford
 
INTRODUCTION TO HTML .pptx
bbariaroshan003
 
Your Brand’s Pinterest Blueprint Build Your Pinterest Plan
SocioCosmos
 
Buy Facebook Growth That Works Get Started
SocioCosmos
 
Dominate Your Niche—The Smart Way...............
SocioCosmos
 
Social Media Report Template [To use the template, click the _File_ tab and s...
Ankit kurup
 
ATTITUDE OF GENERATION Z COLLEGE STUDENTS TOWARDS STUDYING SOCIAL SCIENCE
AJHSSR Journal
 
Modern & Stylish Kitchen Design Ideas.pdf
muqarrab277
 
Freedom-of-Human-Person_20250210_211129_0000.pptx
joshuaeborde787
 
Sociocosmos = Facebook Growth Partner Build With Us
SocioCosmos
 
INTRODUCTION TO HTML. pptx
bariabariabariabaria
 
Be Seen Where It Scrolls Claim Your Spot
SocioCosmos
 
How to Get 100k Views on TikTok_ Secrets You Need to Know
Ufki
 
Multiple Quotes-playful Multiple Quotes-playful.pptx
BinayKrishnaDey
 
Boost Your Business with Expert Digital Marketing Services
Amrit Web
 
Let Poetry Heal What the Heart Can’t Say
Wajiha Mushtaq
 
The Journey of Digital Marketing Explained
dhanalakshmipanchadh
 

Uml

  • 1. 1 SOFTWARE ENGINEERING II Lecture VIII- Part 2 COMSATS Institute of Information Technology Computer Science Department Syed Faraz Ahmad, MS (Computer Science) CIIT Abbottabad [email protected]
  • 2. 2 UML Defined • The Unified Modeling Language (UML) is a general purpose visual modeling language that is used to specify, visualize, construct, and document the artifacts of a software system. Source: Rumbaugh, Jacobson, Booch, Unified Modeling Language Reference Manual (Addison-Wesley, 1999), p. 3
  • 3. 3 UML Defined • It captures decisions and understanding about systems that must be constructed. • It is used to understand, design, browse, configure, maintain, and control information about systems. • It is intended to be used with all development methods, lifecycle stages, application domains, and media. Source: Rumbaugh, Jacobson, Booch, Unified Modeling Language Reference Manual (Addison-Wesley, 1999), p. 3
  • 4. 4 Goals of UML  There were a number of goals behind the development of UML:  UML is a general-purpose modeling language that all modelers can use.  It is meant to include the concepts of the leading methods so that it can be used as their modeling language.  It was intended to be as familiar as possible.  It is meant to support good practices for design such as encapsulation, separation of concerns, and capture of the intent of a model construct.  It is intended to address current software development issues, such as large scale, distribution, concurrency, patterns and team development.  It was to be as simple as possible while still being capable of modeling the full range of practical systems that need to be built. Source: Rumbaugh, Jacobson, Booch, Unified Modeling Language Reference Manual (Addison-Wesley, 1999), p. 8-9
  • 5. 5 UML Building Blocks • UML is composed of three building blocks: – Things • These are the modeling elements – Relationships • These tie things together – Diagrams • These are views into UML models Source: Booch, The Unified Modeling Language User Guide (Addison-Wesley, 1998), p. 2.
  • 6. 6 UML Things  UML thing may be partitioned into:  Structural things  Represent the nouns of a UML model such as class, component, use case, etc  Behavioral things  Represent the verbs of a UML model such as interactions, states, etc.  Grouping things  Represent things that group elements together such as the package.  Annotational things  The note Source: Arlow and Neustadt, UML and the Unified Process (Addison-Wesley, 2002), p. 9.
  • 7. Relationships In UML, object interconnections (logical or physical), are modeled as relationships. There are three kinds of relationships in UML: • Dependencies • Generalizations • Associations
  • 8. Dependency Relationships CourseSchedule add(c : Course) remove(c : Course) Course A dependency indicates a semantic relationship between two or more elements. The dependency from CourseSchedule to Course exists because Course is used in both the add and remove operations of CourseSchedule.
  • 9. Generalization Relationships Person A generalization connects a subclass to its superclass. It denotes an inheritance of attributes and behavior from the superclass to the subclass and indicates a specialization in the subclass of the more general superclass.Student
  • 10. Generalization Relationships (Cont’d) Student UML permits a class to inherit from multiple superclasses, although some programming languages (e.g., Java) do not permit multiple inheritance. TeachingAssistant Employee
  • 11. Association Relationships If two classes in a model need to communicate with each other, there must be link between them. An association denotes that link. StudentInstructor instructs Here , an association is instructs.
  • 12. Association Relationships(Cont’d) The example indicates that a Student has one or more Instructors: InstructorStudent 1..*
  • 13. Association Relationships (Cont’d) The example indicates that every Instructor has one or more Students: InstructorStudent 1..*
  • 14. UML Diagram Types with Examples There are 14 UML diagram types to help you model these behavior. They can be divided into two main categories structure diagrams and behavioral diagrams Class Diagram Component Diagram Deployment Diagram Object Diagram Package Diagram Profile Diagram Composite Structure Diagram Use Case Diagram Activity Diagram State Machine Diagram Sequence Diagram Communication Diagram Interaction Overview Diagram Timing Diagram
  • 15. Structure diagrams show the things in a system being modeled. In a more technical term they show different objects in a system. Behavioral diagrams shows what should happen in a system. They describe how the objects interact with each other to create a functioning system.
  • 17. Class Diagram Class diagrams are the most used UML diagram type. It is the main building block of any object oriented solution. It shows the classes in a system, attributes and operations of each class and the relationship between each class. In most modeling tools a class has three parts, name at the top, attributes in the middle and operations or methods at the bottom. In large systems with many related classes, classes are grouped together to create class diagrams. Different relationships between classes are shown by different types of arrows.
  • 19. Component Diagram A component diagram displays the structural relationship of components of a software system. These are mostly used when working with complex systems that has many components. Components communicate with each other using interfaces. The interfaces are linked using connectors.
  • 20. Simple Component Diagram with Interfaces
  • 21. Object Diagram Object Diagrams, sometimes referred as Instance diagrams are very similar to class diagrams. As class diagrams they also show the relationship between objects but they use real world examples. They are used to show how a system will look like at a given time. Because there is data available in the objects they are often used to explain complex relationships between objects.
  • 23. Use Case Diagram Most known diagram type of the behavioral UML diagrams, Use case diagrams gives a graphic overview of the actors involved in a system, different functions needed by those actors and how these different functions are interacted. It’s a great starting point for any project discussion because you can easily identify the main actors involved and the main processes of the system.
  • 24. Use Case diagram showing Actors and main processes
  • 25. Activity Diagram Activity diagrams represent workflows in an graphical way. They can be used to describe business workflow or the operational workflow of any component in a system. Sometimes activity diagrams are used as an alternative to State machine diagrams.
  • 26. Activity Diagrams with start, end, processes and decision points
  • 27. Sequence Diagram Sequence diagrams in UML shows how object interact with each other and the order those interactions occur. It’s important to note that they show the interactions for a particular scenario. The processes are represented vertically and interactions are show as arrows..
  • 28. Sequence Diagrams in UML shows the interaction between two processes
  • 29. Communication Diagram Communication diagram was called collaboration diagram. It is similar to sequence diagrams but the focus is on messages passed between objects. The same information can be represented using a sequence diagram and different objects.