SlideShare a Scribd company logo
1 of 38
Object Oriented Design and Analysis
Building Blocks of UML
Object Oriented Design and Analysis
OOAD with UML
Building a
house
Design and
layout
Blueprint
Actual
construction
Building software
OOAD
UML
Coding
Object Oriented Design and Analysis
A conceptual model of the UML
To understand the UML, you need to form a conceptual
model of the language, and this requires learning
three major elements:
 The UML’s basic building blocks.
 The rules that dictate how these building blocks put
together.
 Some mechanisms that apply throughout the UML.
Object Oriented Design and Analysis
Building Blocks of UML
• Things – abstractions that are first class citizen
in a model
• Relationships - tie things together
• Diagrams - group interesting collections of
things
Object Oriented Design and Analysis
Things in the UML
There are four kinds of things in the UML:
 Structural things
 Behavioral things
 Grouping things
 Annotational things
Object Oriented Design and Analysis
Structural Things
• Static part of a model, representing elements
that are either conceptual or physical
– Classes
– Interfaces
– Collaborations
– Use cases
– Active classes
– Components
– Nodes
Object Oriented Design and Analysis
• class
– a class is a description of a set of objects that share the same attributes,
operations, relationships, and semantics
– A class implements one or more interfaces.
• interface
– a collection of operations that specify a service of a class or component
– describes the externally visible behavior of that element
– defines a set of operation specifications but never a set of operation
implementations
– attached to class or component that realizes the interface
• Collaboration
– defines an interaction and is a society of roles and other elements that work
together to provide some cooperative behavior
– Collaborations have structural, as well as behavioral dimensions
– A given class may participate in several collaborations
– therefore represent the implementation of patterns that make up a system
Object Oriented Design and Analysis
Figure 1: Classes
Figure 2: Interfaces
Class Name
Attributes
Operations
Figure 3: Collaborations
Object Oriented Design and Analysis
• use case - a description of set of sequence of actions that a system
performs that yields an observable result of value to a particular
actor. A use case is used to structure the behavioral things in a
model. A use case is realized by a collaboration.
• active class - a class whose objects own one or more processes or
threads and therefore can initiate control activity. An active class is
just like a class except that its objects represent elements whose
behavior is concurrent with other elements.
• component - a physical and replaceable part of a system that
conforms to and provides the realization of a set of interfaces.
Represents the physical packaging of otherwise logical elements,
such as classes, interfaces, and collaborations.
• node - a physical element that exists at run time and represents a
computational resource, having at least some memory and, often,
processing capability. A set of components may reside on a node
and may also migrate from node to node.
Object Oriented Design and Analysis
Figure 3: Use Cases
Figure 4: Active Classes
Figure 5: Components Figure 6: Nodes
Object Oriented Design and Analysis
Behavioral Things
• Behavioral things are the dynamic parts of UML
models.
• These are the verbs of a model, representing
behavior over time and space.
• Two primary kinds of behavioral things.
– Interaction (exchange of set of messages among a set of
objects)(includes message, links, action sequence)
– State Machine (specifies the sequences of states an object or an
interaction goes through during its lifetime in response to
events, together with its responses to those events.)(includes
states, transitions, events, activities)
* Shown in the figure 7 and 8
Object Oriented Design and Analysis
Grouping Things
• Grouping things are the organizational parts
of UML models. These are the boxes into
which a model can be decomposed.
• There is one primary kind of grouping.
– Packages(mechanism for organizing elements
into groups) (a package is purely conceptual
meaning that it exists only at development time)
* Shown in the figure 9
Object Oriented Design and Analysis
Annotational Things
• Annotational things are the explanatory parts
of UML models. These are the comments you
may apply to describe, illuminate, and remark
about any element in a model.
• There is one primary kind of annotational
things.
– Note (a symbol for rendering constraints and comments
attached to an element or a collection of elements)
* Shown in the figure 10
Object Oriented Design and Analysis
Figure 7: Messages
Figure 8: States
Figure 9: Packages
Figure 10: Notes
Object Oriented Design and Analysis
Relationships in the UML
Object Oriented Design and Analysis
Relationships in the UML
• There are four kinds of relationships in the UML:
1. Dependency (a semantic relationship between two things in
which a change to one thing may affect the semantics of the other
thing)
2. Association (a structural relationship that describes a set of links, a
link being a connection among objects)
3. Generalization (a specialization / generalization relationship in
which objects of the specialized element (the child) are substitutable
for objects of the generalized element (the parent))
4. Realization (a semantic relationship between classifiers, wherein
one classifier specifies a contract that another classifier guarantees to
carry out) (between interfaces and the classes or components and
between use cases and the collaborations)
Object Oriented Design and Analysis
Relationships in the UML
1. Dependencies: rendered as a
dashed line, possibly directed, and
occasionally including a label
2. Associations: rendered as a solid line,
possibly directed, occasionally including a label,
and often containing other adornments, such as
multiplicity and role names
3. Generalizations: rendered as a
solid line with a hollow arrowhead pointing to
the parent
4. Realization: rendered as a cross
between a generalization and a dependency
relationship
Object Oriented Design and Analysis
Object Oriented Design and Analysis
Object Oriented Design and Analysis
Diagrams in the UML
• graphical presentation of a set of elements,
rendered as a connected graph of vertices
(things) and arcs (relationships).
• a projection into a system
• The same element may appear in all diagrams,
only a few diagrams (the most common case), or
in no diagrams at all (a very rare case)
Object Oriented Design and Analysis
Diagrams in the UML
1. Class diagram
2. Object diagram
3. Use case diagram
4. Sequence diagram
5. Collaboration diagram
6. Statechart diagram
7. Activity diagram
8. Component diagram
9. Deployment diagram
Interaction
diagrams
Object Oriented Design and Analysis
1. Class Diagram
• A class diagram shows a set of classes, interfaces,
and collaborations and their relationships.
• most common diagram found in modeling object-
oriented systems.
• address the static design view of a system.
• Class diagrams that include active classes address the
static process view of a system.
Object Oriented Design and Analysis
Object Oriented Design and Analysis
2. Object Diagram
• An object diagram shows a set of objects and
their relationships.
• Object diagrams represent static snapshots of
instances of the things found in class diagrams.
• address the static design view or static process
view of a system as do class diagrams, but from
the perspective of real or prototypical cases.
Object Oriented Design and Analysis
Object Oriented Design and Analysis
3. Use Case Diagram
• A use case diagram shows a set of use cases
and actors (a special kind of class) and their
relationships.
• address the static use case view of a system.
• especially important in organizing and
modeling the behaviors of a system.
Object Oriented Design and Analysis
Interaction Diagrams
• Both sequence diagrams and collaboration
diagrams are kinds of interaction diagrams.
• Arc shows an interaction, consisting of a set of
objects and their relationships, including the
messages that may be dispatched among
them.
• Interaction diagrams address the dynamic
view of a system
Object Oriented Design and Analysis
Object Oriented Design and Analysis
4. Sequence Diagram
• A sequence diagram is an interaction diagram
that emphasizes the time-ordering of messages.
Object Oriented Design and Analysis
5. Collaboration Diagram
• collaboration diagram is an interaction diagram
that emphasizes the structural organization of
the objects that send and receive messages.
• Note: Sequence diagrams and collaboration
diagrams are isomorphic, meaning that you can
take one and transform it into the other.
Object Oriented Design and Analysis
6. Statechart Diagram
• A statechart diagram shows a state machine,
consisting of states, transitions, events and
activities.
• Statechart diagrams address the dynamic view of a
system.
• especially important in modeling the behavior of an
interface, class, or collaboration and emphasize the
event-ordered behavior of an object, which is
especially useful in modeling reactive systems.
Object Oriented Design and Analysis
Object Oriented Design and Analysis
7. Activity Diagram
• An activity diagram is a special kind of a
statechart diagram that shows the flow from
activity to activity within a system.
• Activity diagrams address the dynamic view of
a system.
• They are especially important in modeling the
function of a system and emphasize the flow
of control among objects
Object Oriented Design and Analysis
Object Oriented Design and Analysis
8. Component Diagram
• A component diagram shows the organizations and
dependencies among a set of components.
• Component diagrams address the static
implementation view of a system.
• They are related to class diagrams in that a
component typically maps to one or more classes,
interfaces, or collaborations.
Object Oriented Design and Analysis
Object Oriented Design and Analysis
9. Deployment Diagram
• A deployment diagram shows the configuration of
run-time processing nodes and the components that
live on them.
• Deployment diagrams address the static deployment
view of an architecture.
• They are related to component diagrams in that a
node typically encloses one or more components.
Object Oriented Design and Analysis

More Related Content

What's hot (20)

Class diagram
Class diagramClass diagram
Class diagram
 
Behavioural modelling
Behavioural modellingBehavioural modelling
Behavioural modelling
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGE
 
UML
UMLUML
UML
 
Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction Diagram
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Unit 5
Unit 5Unit 5
Unit 5
 
Domain Modeling
Domain ModelingDomain Modeling
Domain Modeling
 
Software architecture design ppt
Software architecture design pptSoftware architecture design ppt
Software architecture design ppt
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
 
Uml deployment diagram
Uml deployment diagramUml deployment diagram
Uml deployment diagram
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
 
Uml
UmlUml
Uml
 
Ooad unit – 1 introduction
Ooad unit – 1 introductionOoad unit – 1 introduction
Ooad unit – 1 introduction
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
 
Advanced Structural Modeling
Advanced Structural ModelingAdvanced Structural Modeling
Advanced Structural Modeling
 
Domain object model
Domain object modelDomain object model
Domain object model
 
Object oriented analysis
Object oriented analysisObject oriented analysis
Object oriented analysis
 

Viewers also liked

OOAD UNIT I UML DIAGRAMS
OOAD UNIT I UML DIAGRAMSOOAD UNIT I UML DIAGRAMS
OOAD UNIT I UML DIAGRAMSMikel Raj
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling LanguageShahzad
 
Lecture#02, building blocks of uml ASE
Lecture#02, building blocks of uml ASELecture#02, building blocks of uml ASE
Lecture#02, building blocks of uml ASEbabak danyal
 
M03 1 Structuraldiagrams
M03 1 StructuraldiagramsM03 1 Structuraldiagrams
M03 1 StructuraldiagramsDang Tuan
 
Structured Vs, Object Oriented Analysis and Design
Structured Vs, Object Oriented Analysis and DesignStructured Vs, Object Oriented Analysis and Design
Structured Vs, Object Oriented Analysis and DesignMotaz Saad
 
Understanding unified modelling language
Understanding unified modelling languageUnderstanding unified modelling language
Understanding unified modelling languageEmmanuel Kumah
 
Image processing techniques 1
Image processing techniques   1Image processing techniques   1
Image processing techniques 11988sreejith
 
Planning-Based Approach for Automating Sequence Diagram Generation
Planning-Based Approach for Automating Sequence Diagram GenerationPlanning-Based Approach for Automating Sequence Diagram Generation
Planning-Based Approach for Automating Sequence Diagram GenerationYaser Sulaiman
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagramskebsterz
 
Object Oriented Analysis And Design
Object Oriented Analysis And DesignObject Oriented Analysis And Design
Object Oriented Analysis And DesignSahil Mahajan
 
Unit 1- OOAD ppt
Unit 1- OOAD  pptUnit 1- OOAD  ppt
Unit 1- OOAD pptPRIANKA R
 
SE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour DiagramsSE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour DiagramsAmr E. Mohamed
 
SE_Lec 02_Software Life Cycle Models
SE_Lec 02_Software Life Cycle ModelsSE_Lec 02_Software Life Cycle Models
SE_Lec 02_Software Life Cycle ModelsAmr E. Mohamed
 

Viewers also liked (20)

OOAD UNIT I UML DIAGRAMS
OOAD UNIT I UML DIAGRAMSOOAD UNIT I UML DIAGRAMS
OOAD UNIT I UML DIAGRAMS
 
Uml class Diagram
Uml class DiagramUml class Diagram
Uml class Diagram
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling Language
 
Lecture#02, building blocks of uml ASE
Lecture#02, building blocks of uml ASELecture#02, building blocks of uml ASE
Lecture#02, building blocks of uml ASE
 
M03 1 Structuraldiagrams
M03 1 StructuraldiagramsM03 1 Structuraldiagrams
M03 1 Structuraldiagrams
 
Ooad
OoadOoad
Ooad
 
Structured Vs, Object Oriented Analysis and Design
Structured Vs, Object Oriented Analysis and DesignStructured Vs, Object Oriented Analysis and Design
Structured Vs, Object Oriented Analysis and Design
 
Understanding unified modelling language
Understanding unified modelling languageUnderstanding unified modelling language
Understanding unified modelling language
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
UML
UMLUML
UML
 
Image processing techniques 1
Image processing techniques   1Image processing techniques   1
Image processing techniques 1
 
Planning-Based Approach for Automating Sequence Diagram Generation
Planning-Based Approach for Automating Sequence Diagram GenerationPlanning-Based Approach for Automating Sequence Diagram Generation
Planning-Based Approach for Automating Sequence Diagram Generation
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagrams
 
Uml Common Mechanism
Uml Common MechanismUml Common Mechanism
Uml Common Mechanism
 
Object Oriented Analysis And Design
Object Oriented Analysis And DesignObject Oriented Analysis And Design
Object Oriented Analysis And Design
 
Ooadb
OoadbOoadb
Ooadb
 
UML TUTORIALS
UML TUTORIALSUML TUTORIALS
UML TUTORIALS
 
Unit 1- OOAD ppt
Unit 1- OOAD  pptUnit 1- OOAD  ppt
Unit 1- OOAD ppt
 
SE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour DiagramsSE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour Diagrams
 
SE_Lec 02_Software Life Cycle Models
SE_Lec 02_Software Life Cycle ModelsSE_Lec 02_Software Life Cycle Models
SE_Lec 02_Software Life Cycle Models
 

Similar to UML diagrams and symbols

Similar to UML diagrams and symbols (20)

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
 
UML-Advanced Software Engineering
UML-Advanced Software EngineeringUML-Advanced Software Engineering
UML-Advanced Software Engineering
 
Ooad lab manual
Ooad  lab manualOoad  lab manual
Ooad lab manual
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling Language
 
2 uml
2 uml2 uml
2 uml
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Capturing System Behaviour
Capturing System BehaviourCapturing System Behaviour
Capturing System Behaviour
 
Oomd unit1
Oomd unit1Oomd unit1
Oomd unit1
 
R1x g02 enterprise architecture i
R1x g02 enterprise architecture iR1x g02 enterprise architecture i
R1x g02 enterprise architecture i
 
Chapter 6 Object Modeling .pptxInformation Technology Project Management
Chapter 6 Object Modeling .pptxInformation Technology Project ManagementChapter 6 Object Modeling .pptxInformation Technology Project Management
Chapter 6 Object Modeling .pptxInformation Technology Project Management
 
20CS011.pptx
20CS011.pptx20CS011.pptx
20CS011.pptx
 
fdocuments.in_unit-2-ooad.ppt
fdocuments.in_unit-2-ooad.pptfdocuments.in_unit-2-ooad.ppt
fdocuments.in_unit-2-ooad.ppt
 
oomd-unit-i-cgpa.ppt
oomd-unit-i-cgpa.pptoomd-unit-i-cgpa.ppt
oomd-unit-i-cgpa.ppt
 
432
432432
432
 
chapter06-120827115400-phpapp01.pdf
chapter06-120827115400-phpapp01.pdfchapter06-120827115400-phpapp01.pdf
chapter06-120827115400-phpapp01.pdf
 
SMD Unit ii
SMD Unit iiSMD Unit ii
SMD Unit ii
 
OOP_Module 2.pptx
OOP_Module 2.pptxOOP_Module 2.pptx
OOP_Module 2.pptx
 
UML.pdf
UML.pdfUML.pdf
UML.pdf
 
Uml
UmlUml
Uml
 
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
 

More from Kumar

Graphics devices
Graphics devicesGraphics devices
Graphics devicesKumar
 
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithmsKumar
 
region-filling
region-fillingregion-filling
region-fillingKumar
 
Bresenham derivation
Bresenham derivationBresenham derivation
Bresenham derivationKumar
 
Bresenham circles and polygons derication
Bresenham circles and polygons dericationBresenham circles and polygons derication
Bresenham circles and polygons dericationKumar
 
Introductionto xslt
Introductionto xsltIntroductionto xslt
Introductionto xsltKumar
 
Extracting data from xml
Extracting data from xmlExtracting data from xml
Extracting data from xmlKumar
 
Xml basics
Xml basicsXml basics
Xml basicsKumar
 
XML Schema
XML SchemaXML Schema
XML SchemaKumar
 
Publishing xml
Publishing xmlPublishing xml
Publishing xmlKumar
 
Applying xml
Applying xmlApplying xml
Applying xmlKumar
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XMLKumar
 
How to deploy a j2ee application
How to deploy a j2ee applicationHow to deploy a j2ee application
How to deploy a j2ee applicationKumar
 
JNDI, JMS, JPA, XML
JNDI, JMS, JPA, XMLJNDI, JMS, JPA, XML
JNDI, JMS, JPA, XMLKumar
 
EJB Fundmentals
EJB FundmentalsEJB Fundmentals
EJB FundmentalsKumar
 
JSP and struts programming
JSP and struts programmingJSP and struts programming
JSP and struts programmingKumar
 
java servlet and servlet programming
java servlet and servlet programmingjava servlet and servlet programming
java servlet and servlet programmingKumar
 
Introduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC DriversIntroduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC DriversKumar
 
Introduction to J2EE
Introduction to J2EEIntroduction to J2EE
Introduction to J2EEKumar
 

More from Kumar (20)

Graphics devices
Graphics devicesGraphics devices
Graphics devices
 
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithms
 
region-filling
region-fillingregion-filling
region-filling
 
Bresenham derivation
Bresenham derivationBresenham derivation
Bresenham derivation
 
Bresenham circles and polygons derication
Bresenham circles and polygons dericationBresenham circles and polygons derication
Bresenham circles and polygons derication
 
Introductionto xslt
Introductionto xsltIntroductionto xslt
Introductionto xslt
 
Extracting data from xml
Extracting data from xmlExtracting data from xml
Extracting data from xml
 
Xml basics
Xml basicsXml basics
Xml basics
 
XML Schema
XML SchemaXML Schema
XML Schema
 
Publishing xml
Publishing xmlPublishing xml
Publishing xml
 
DTD
DTDDTD
DTD
 
Applying xml
Applying xmlApplying xml
Applying xml
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
How to deploy a j2ee application
How to deploy a j2ee applicationHow to deploy a j2ee application
How to deploy a j2ee application
 
JNDI, JMS, JPA, XML
JNDI, JMS, JPA, XMLJNDI, JMS, JPA, XML
JNDI, JMS, JPA, XML
 
EJB Fundmentals
EJB FundmentalsEJB Fundmentals
EJB Fundmentals
 
JSP and struts programming
JSP and struts programmingJSP and struts programming
JSP and struts programming
 
java servlet and servlet programming
java servlet and servlet programmingjava servlet and servlet programming
java servlet and servlet programming
 
Introduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC DriversIntroduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC Drivers
 
Introduction to J2EE
Introduction to J2EEIntroduction to J2EE
Introduction to J2EE
 

Recently uploaded

University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 

Recently uploaded (20)

University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 

UML diagrams and symbols

  • 1. Object Oriented Design and Analysis Building Blocks of UML
  • 2. Object Oriented Design and Analysis OOAD with UML Building a house Design and layout Blueprint Actual construction Building software OOAD UML Coding
  • 3. Object Oriented Design and Analysis A conceptual model of the UML To understand the UML, you need to form a conceptual model of the language, and this requires learning three major elements:  The UML’s basic building blocks.  The rules that dictate how these building blocks put together.  Some mechanisms that apply throughout the UML.
  • 4. Object Oriented Design and Analysis Building Blocks of UML • Things – abstractions that are first class citizen in a model • Relationships - tie things together • Diagrams - group interesting collections of things
  • 5. Object Oriented Design and Analysis Things in the UML There are four kinds of things in the UML:  Structural things  Behavioral things  Grouping things  Annotational things
  • 6. Object Oriented Design and Analysis Structural Things • Static part of a model, representing elements that are either conceptual or physical – Classes – Interfaces – Collaborations – Use cases – Active classes – Components – Nodes
  • 7. Object Oriented Design and Analysis • class – a class is a description of a set of objects that share the same attributes, operations, relationships, and semantics – A class implements one or more interfaces. • interface – a collection of operations that specify a service of a class or component – describes the externally visible behavior of that element – defines a set of operation specifications but never a set of operation implementations – attached to class or component that realizes the interface • Collaboration – defines an interaction and is a society of roles and other elements that work together to provide some cooperative behavior – Collaborations have structural, as well as behavioral dimensions – A given class may participate in several collaborations – therefore represent the implementation of patterns that make up a system
  • 8. Object Oriented Design and Analysis Figure 1: Classes Figure 2: Interfaces Class Name Attributes Operations Figure 3: Collaborations
  • 9. Object Oriented Design and Analysis • use case - a description of set of sequence of actions that a system performs that yields an observable result of value to a particular actor. A use case is used to structure the behavioral things in a model. A use case is realized by a collaboration. • active class - a class whose objects own one or more processes or threads and therefore can initiate control activity. An active class is just like a class except that its objects represent elements whose behavior is concurrent with other elements. • component - a physical and replaceable part of a system that conforms to and provides the realization of a set of interfaces. Represents the physical packaging of otherwise logical elements, such as classes, interfaces, and collaborations. • node - a physical element that exists at run time and represents a computational resource, having at least some memory and, often, processing capability. A set of components may reside on a node and may also migrate from node to node.
  • 10. Object Oriented Design and Analysis Figure 3: Use Cases Figure 4: Active Classes Figure 5: Components Figure 6: Nodes
  • 11. Object Oriented Design and Analysis Behavioral Things • Behavioral things are the dynamic parts of UML models. • These are the verbs of a model, representing behavior over time and space. • Two primary kinds of behavioral things. – Interaction (exchange of set of messages among a set of objects)(includes message, links, action sequence) – State Machine (specifies the sequences of states an object or an interaction goes through during its lifetime in response to events, together with its responses to those events.)(includes states, transitions, events, activities) * Shown in the figure 7 and 8
  • 12. Object Oriented Design and Analysis Grouping Things • Grouping things are the organizational parts of UML models. These are the boxes into which a model can be decomposed. • There is one primary kind of grouping. – Packages(mechanism for organizing elements into groups) (a package is purely conceptual meaning that it exists only at development time) * Shown in the figure 9
  • 13. Object Oriented Design and Analysis Annotational Things • Annotational things are the explanatory parts of UML models. These are the comments you may apply to describe, illuminate, and remark about any element in a model. • There is one primary kind of annotational things. – Note (a symbol for rendering constraints and comments attached to an element or a collection of elements) * Shown in the figure 10
  • 14. Object Oriented Design and Analysis Figure 7: Messages Figure 8: States Figure 9: Packages Figure 10: Notes
  • 15. Object Oriented Design and Analysis Relationships in the UML
  • 16. Object Oriented Design and Analysis Relationships in the UML • There are four kinds of relationships in the UML: 1. Dependency (a semantic relationship between two things in which a change to one thing may affect the semantics of the other thing) 2. Association (a structural relationship that describes a set of links, a link being a connection among objects) 3. Generalization (a specialization / generalization relationship in which objects of the specialized element (the child) are substitutable for objects of the generalized element (the parent)) 4. Realization (a semantic relationship between classifiers, wherein one classifier specifies a contract that another classifier guarantees to carry out) (between interfaces and the classes or components and between use cases and the collaborations)
  • 17. Object Oriented Design and Analysis Relationships in the UML 1. Dependencies: rendered as a dashed line, possibly directed, and occasionally including a label 2. Associations: rendered as a solid line, possibly directed, occasionally including a label, and often containing other adornments, such as multiplicity and role names 3. Generalizations: rendered as a solid line with a hollow arrowhead pointing to the parent 4. Realization: rendered as a cross between a generalization and a dependency relationship
  • 18. Object Oriented Design and Analysis
  • 19. Object Oriented Design and Analysis
  • 20. Object Oriented Design and Analysis Diagrams in the UML • graphical presentation of a set of elements, rendered as a connected graph of vertices (things) and arcs (relationships). • a projection into a system • The same element may appear in all diagrams, only a few diagrams (the most common case), or in no diagrams at all (a very rare case)
  • 21. Object Oriented Design and Analysis Diagrams in the UML 1. Class diagram 2. Object diagram 3. Use case diagram 4. Sequence diagram 5. Collaboration diagram 6. Statechart diagram 7. Activity diagram 8. Component diagram 9. Deployment diagram Interaction diagrams
  • 22. Object Oriented Design and Analysis 1. Class Diagram • A class diagram shows a set of classes, interfaces, and collaborations and their relationships. • most common diagram found in modeling object- oriented systems. • address the static design view of a system. • Class diagrams that include active classes address the static process view of a system.
  • 23. Object Oriented Design and Analysis
  • 24. Object Oriented Design and Analysis 2. Object Diagram • An object diagram shows a set of objects and their relationships. • Object diagrams represent static snapshots of instances of the things found in class diagrams. • address the static design view or static process view of a system as do class diagrams, but from the perspective of real or prototypical cases.
  • 25. Object Oriented Design and Analysis
  • 26. Object Oriented Design and Analysis 3. Use Case Diagram • A use case diagram shows a set of use cases and actors (a special kind of class) and their relationships. • address the static use case view of a system. • especially important in organizing and modeling the behaviors of a system.
  • 27. Object Oriented Design and Analysis Interaction Diagrams • Both sequence diagrams and collaboration diagrams are kinds of interaction diagrams. • Arc shows an interaction, consisting of a set of objects and their relationships, including the messages that may be dispatched among them. • Interaction diagrams address the dynamic view of a system
  • 28. Object Oriented Design and Analysis
  • 29. Object Oriented Design and Analysis 4. Sequence Diagram • A sequence diagram is an interaction diagram that emphasizes the time-ordering of messages.
  • 30. Object Oriented Design and Analysis 5. Collaboration Diagram • collaboration diagram is an interaction diagram that emphasizes the structural organization of the objects that send and receive messages. • Note: Sequence diagrams and collaboration diagrams are isomorphic, meaning that you can take one and transform it into the other.
  • 31. Object Oriented Design and Analysis 6. Statechart Diagram • A statechart diagram shows a state machine, consisting of states, transitions, events and activities. • Statechart diagrams address the dynamic view of a system. • especially important in modeling the behavior of an interface, class, or collaboration and emphasize the event-ordered behavior of an object, which is especially useful in modeling reactive systems.
  • 32. Object Oriented Design and Analysis
  • 33. Object Oriented Design and Analysis 7. Activity Diagram • An activity diagram is a special kind of a statechart diagram that shows the flow from activity to activity within a system. • Activity diagrams address the dynamic view of a system. • They are especially important in modeling the function of a system and emphasize the flow of control among objects
  • 34. Object Oriented Design and Analysis
  • 35. Object Oriented Design and Analysis 8. Component Diagram • A component diagram shows the organizations and dependencies among a set of components. • Component diagrams address the static implementation view of a system. • They are related to class diagrams in that a component typically maps to one or more classes, interfaces, or collaborations.
  • 36. Object Oriented Design and Analysis
  • 37. Object Oriented Design and Analysis 9. Deployment Diagram • A deployment diagram shows the configuration of run-time processing nodes and the components that live on them. • Deployment diagrams address the static deployment view of an architecture. • They are related to component diagrams in that a node typically encloses one or more components.
  • 38. Object Oriented Design and Analysis

Editor's Notes

  1. Abstraction – selective examination of certain aspects of a problem. The goal of abstraction is to isolate those aspects that are important and suppress those aspects that are unimportant. Abstraction must always be for some purpose, because the purpose determines what is and is not important. The purpose of abstraction is to limit the universe so that we can understand.