SlideShare une entreprise Scribd logo
1  sur  12
Lecture 3
Capturing System Behavior
Class: BSIT-5th Semester
Teacher: Inam Ul Haq
University of Education Okara
Subject: Object Oriented Analysis & Design
BehavioralDiagrams(UML),
OOA/D,UniversityofEducation
Okara
1
Structural Diagrams
• UML Standard Diagrams = Structural diagrams and Behavioral Diagrams
• The structural diagrams represent the static aspect of the system.
These static aspects represent those parts of a diagram which forms
the main structure and therefore stable.
• These static parts are represents by classes, interfaces, objects,
components and nodes. The four structural diagrams are:
1. Class diagram
2. Object diagram
3. Component diagram
4. Deployment diagram
Behavioral Diagrams: Any system can have two aspects, static and dynamic.
• The Behavioral diagrams include following five diagrams:
1. Use case diagram
2. Sequence diagram, Collaboration diagram [Interaction Diagrams]
3. State chart diagram
4. Activity diagram
BehavioralDiagrams(UML),
OOA/D,UniversityofEducation
Okara
2
Structural Diagrams (Cont.)
• 1- Class Diagram: are the most common diagrams used in UML. Class
diagram consists of classes, interfaces, associations and
collaboration.
• The class diagram is a static diagram that represents the static view of an
application. It is not only used for visualizing, describing & documenting
different aspects of a system but also for constructing executable code of
the software application.
• The class diagram shows a collection of classes, interfaces, associations,
collaborations and constraints. It is also known as a structural diagram.
BehavioralDiagrams(UML),
OOA/D,UniversityofEducation
Okara
3
Structural Diagrams (Cont.)
• 2- Object diagrams are derived from class diagrams so object diagrams are
dependent upon class diagrams. It is similar to class diagram.
• The difference is that a class diagram represents an abstract model consisting of
classes and their relationships. But an object diagram represents an instance at a
particular moment which is concrete in nature.
• E.g. Calculator is a class and add is an object of that class
BehavioralDiagrams(UML),
OOA/D,UniversityofEducation
Okara
4
Structural Diagrams (Cont.)
• 3- Component diagrams are different in terms of nature and behavior. Component
diagrams are used to model physical aspects of a system.
• Physical aspects are the elements like executables, libraries, files, documents etc
which resides in the code.
• So component diagrams are used to visualize the organization and relationships among
components in a system.
BehavioralDiagrams(UML),
OOA/D,UniversityofEducation
Okara
5
Structural Diagrams (Cont.)
• 4- Deployment diagrams are used to visualize the topology of the physical
components of a system where the software components are deployed.
• Deployment diagrams consist of nodes and their relationships and used for describing
the hardware components where software components are deployed.
BehavioralDiagrams(UML),
OOA/D,UniversityofEducation
Okara
6
Behavioral Diagrams
• Only static behavior is not sufficient to model a system rather dynamic behavior is
more important than static behavior.
• 1- Use case diagram is used to capture the dynamic aspect of a system.
• Use case diagrams are used to gather the requirements of a system including internal
and external links. These requirements are mostly design requirements.
BehavioralDiagrams(UML),
OOA/D,UniversityofEducation
Okara
7
Behavioral Diagrams (cont.)
• From the name Interaction it is clear that the diagram is used to describe some type
of interactions among the different elements in the model.
• 2 - Interactive behavior is represented in UML by two diagrams known as Sequence
diagram and Collaboration diagram. The basic purposes of both the diagrams are
similar.
• Sequence diagram emphasizes on time sequence of messages and collaboration diagram
emphasizes on the structural organization of the objects that send and receive messages.
BehavioralDiagrams(UML),
OOA/D,UniversityofEducation
Okara
8
Behavioral Diagrams (cont.)
Collaboration Diagram
BehavioralDiagrams(UML),
OOA/D,UniversityofEducation
Okara
9
Behavioral Diagrams (cont.)
• 3- State Chart Diagram describes different states of a component in a system.
• The first state is an idle state from where the process starts. The next states are
arrived for events like send request, confirm request, and dispatch order. These
events are responsible for state changes of order object.
BehavioralDiagrams(UML),
OOA/D,UniversityofEducation
Okara
10
Behavioral Diagrams (cont.)
• 4- Activity diagram is basically a flow chart to represent the flow form one activity to
another activity. The activity can be described as an operation of the system.
• It does not show any message flow from one activity to another (as in other 3
diagrams).
BehavioralDiagrams(UML),
OOA/D,UniversityofEducation
Okara
11
References
• http://www.tutorialspoint.com/uml/uml_standard_diagrams.htm
Further Readings:
https://en.wikipedia.org/wiki/Unified_Modeling_Language
https://en.wikipedia.org/wiki/Category:Unified_Modeling_Language
BehavioralDiagrams(UML),
OOA/D,UniversityofEducation
Okara
12

Contenu connexe

Tendances

Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxazida3
 
Evolutionary process models se.ppt
Evolutionary process models se.pptEvolutionary process models se.ppt
Evolutionary process models se.pptbhadjaashvini1
 
Agile development
Agile developmentAgile development
Agile developmentJoshuaU1
 
UML for Aspect Oriented Design
UML for Aspect Oriented DesignUML for Aspect Oriented Design
UML for Aspect Oriented DesignEdison Lascano
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologiesnaina-rani
 
Software Process Models
Software Process ModelsSoftware Process Models
Software Process ModelsAtul Karmyal
 
Aspect oriented architecture
Aspect oriented architecture Aspect oriented architecture
Aspect oriented architecture tigneb
 
Software Architecture and Design
Software Architecture and DesignSoftware Architecture and Design
Software Architecture and DesignRa'Fat Al-Msie'deen
 
Agile development, software engineering
Agile development, software engineeringAgile development, software engineering
Agile development, software engineeringRupesh Vaishnav
 
Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)Mohamed Sami El-Tahawy
 
Pressman ch-22-process-and-project-metrics
Pressman ch-22-process-and-project-metricsPressman ch-22-process-and-project-metrics
Pressman ch-22-process-and-project-metricsSeema Kamble
 
UML diagrams and symbols
UML diagrams and symbolsUML diagrams and symbols
UML diagrams and symbolsKumar
 
Architecture business cycle ( abc )
Architecture business cycle ( abc )Architecture business cycle ( abc )
Architecture business cycle ( abc )Dr Reeja S R
 
Software Engineering Process Models
Software Engineering Process Models Software Engineering Process Models
Software Engineering Process Models Satya P. Joshi
 
Uml structural diagrams
Uml structural diagramsUml structural diagrams
Uml structural diagramsSwathy T
 

Tendances (20)

The Software Development Process
The Software Development ProcessThe Software Development Process
The Software Development Process
 
Slides chapters 21-23
Slides chapters 21-23Slides chapters 21-23
Slides chapters 21-23
 
Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptx
 
Evolutionary process models se.ppt
Evolutionary process models se.pptEvolutionary process models se.ppt
Evolutionary process models se.ppt
 
Agile development
Agile developmentAgile development
Agile development
 
Requirements Engineering
Requirements EngineeringRequirements Engineering
Requirements Engineering
 
UML for Aspect Oriented Design
UML for Aspect Oriented DesignUML for Aspect Oriented Design
UML for Aspect Oriented Design
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
 
Software Process Models
Software Process ModelsSoftware Process Models
Software Process Models
 
Aspect oriented architecture
Aspect oriented architecture Aspect oriented architecture
Aspect oriented architecture
 
Ooad
OoadOoad
Ooad
 
Software Architecture and Design
Software Architecture and DesignSoftware Architecture and Design
Software Architecture and Design
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
Agile development, software engineering
Agile development, software engineeringAgile development, software engineering
Agile development, software engineering
 
Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)
 
Pressman ch-22-process-and-project-metrics
Pressman ch-22-process-and-project-metricsPressman ch-22-process-and-project-metrics
Pressman ch-22-process-and-project-metrics
 
UML diagrams and symbols
UML diagrams and symbolsUML diagrams and symbols
UML diagrams and symbols
 
Architecture business cycle ( abc )
Architecture business cycle ( abc )Architecture business cycle ( abc )
Architecture business cycle ( abc )
 
Software Engineering Process Models
Software Engineering Process Models Software Engineering Process Models
Software Engineering Process Models
 
Uml structural diagrams
Uml structural diagramsUml structural diagrams
Uml structural diagrams
 

Similaire à Capturing System Behaviour

Similaire à Capturing System Behaviour (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
 
Case Study Uml
Case Study UmlCase Study Uml
Case Study 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
 
Case stydy cs701
Case stydy cs701 Case stydy cs701
Case stydy cs701
 
Uml
UmlUml
Uml
 
UML.pdf
UML.pdfUML.pdf
UML.pdf
 
Uml.pptx
Uml.pptxUml.pptx
Uml.pptx
 
Uml Diagrams
Uml DiagramsUml Diagrams
Uml Diagrams
 
UML Diagrams.ppt
UML Diagrams.pptUML Diagrams.ppt
UML Diagrams.ppt
 
Uml overview modified
Uml overview modifiedUml overview modified
Uml overview modified
 
Ooad lab manual
Ooad  lab manualOoad  lab manual
Ooad lab manual
 
UML Diagrams_UNIT III.ppt
UML Diagrams_UNIT III.pptUML Diagrams_UNIT III.ppt
UML Diagrams_UNIT III.ppt
 
UML Diagrams.ppt
UML Diagrams.pptUML Diagrams.ppt
UML Diagrams.ppt
 
Class diagrams are a type of UML (Unified Modeling Language) diagram used in ...
Class diagrams are a type of UML (Unified Modeling Language) diagram used in ...Class diagrams are a type of UML (Unified Modeling Language) diagram used in ...
Class diagrams are a type of UML (Unified Modeling Language) diagram used in ...
 
432
432432
432
 
4+1
4+14+1
4+1
 
Uml
UmlUml
Uml
 
UML tutorial
UML tutorialUML tutorial
UML tutorial
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMS
 
SMD Unit ii
SMD Unit iiSMD Unit ii
SMD Unit ii
 

Plus de university of education,Lahore

Plus de university of education,Lahore (20)

Activites and Time Planning
 Activites and Time Planning Activites and Time Planning
Activites and Time Planning
 
Steganography
SteganographySteganography
Steganography
 
Classical Encryption Techniques
Classical Encryption TechniquesClassical Encryption Techniques
Classical Encryption Techniques
 
Activites and Time Planning
Activites and Time PlanningActivites and Time Planning
Activites and Time Planning
 
OSI Security Architecture
OSI Security ArchitectureOSI Security Architecture
OSI Security Architecture
 
Network Security Terminologies
Network Security TerminologiesNetwork Security Terminologies
Network Security Terminologies
 
Project Scheduling, Planning and Risk Management
Project Scheduling, Planning and Risk ManagementProject Scheduling, Planning and Risk Management
Project Scheduling, Planning and Risk Management
 
Software Testing and Debugging
Software Testing and DebuggingSoftware Testing and Debugging
Software Testing and Debugging
 
ePayment Methods
ePayment MethodsePayment Methods
ePayment Methods
 
SEO
SEOSEO
SEO
 
A Star Search
A Star SearchA Star Search
A Star Search
 
Enterprise Application Integration
Enterprise Application IntegrationEnterprise Application Integration
Enterprise Application Integration
 
eDras Max
eDras MaxeDras Max
eDras Max
 
RAD Model
RAD ModelRAD Model
RAD Model
 
Microsoft Project
Microsoft ProjectMicrosoft Project
Microsoft Project
 
Itertaive Process Development
Itertaive Process DevelopmentItertaive Process Development
Itertaive Process Development
 
Computer Aided Software Engineering Nayab Awan
Computer Aided Software Engineering Nayab AwanComputer Aided Software Engineering Nayab Awan
Computer Aided Software Engineering Nayab Awan
 
Lect 2 assessing the technology landscape
Lect 2 assessing the technology landscapeLect 2 assessing the technology landscape
Lect 2 assessing the technology landscape
 
system level requirements gathering and analysis
system level requirements gathering and analysissystem level requirements gathering and analysis
system level requirements gathering and analysis
 
Java Script
Java ScriptJava Script
Java Script
 

Dernier

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 

Dernier (20)

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 

Capturing System Behaviour

  • 1. Lecture 3 Capturing System Behavior Class: BSIT-5th Semester Teacher: Inam Ul Haq University of Education Okara Subject: Object Oriented Analysis & Design BehavioralDiagrams(UML), OOA/D,UniversityofEducation Okara 1
  • 2. Structural Diagrams • UML Standard Diagrams = Structural diagrams and Behavioral Diagrams • The structural diagrams represent the static aspect of the system. These static aspects represent those parts of a diagram which forms the main structure and therefore stable. • These static parts are represents by classes, interfaces, objects, components and nodes. The four structural diagrams are: 1. Class diagram 2. Object diagram 3. Component diagram 4. Deployment diagram Behavioral Diagrams: Any system can have two aspects, static and dynamic. • The Behavioral diagrams include following five diagrams: 1. Use case diagram 2. Sequence diagram, Collaboration diagram [Interaction Diagrams] 3. State chart diagram 4. Activity diagram BehavioralDiagrams(UML), OOA/D,UniversityofEducation Okara 2
  • 3. Structural Diagrams (Cont.) • 1- Class Diagram: are the most common diagrams used in UML. Class diagram consists of classes, interfaces, associations and collaboration. • The class diagram is a static diagram that represents the static view of an application. It is not only used for visualizing, describing & documenting different aspects of a system but also for constructing executable code of the software application. • The class diagram shows a collection of classes, interfaces, associations, collaborations and constraints. It is also known as a structural diagram. BehavioralDiagrams(UML), OOA/D,UniversityofEducation Okara 3
  • 4. Structural Diagrams (Cont.) • 2- Object diagrams are derived from class diagrams so object diagrams are dependent upon class diagrams. It is similar to class diagram. • The difference is that a class diagram represents an abstract model consisting of classes and their relationships. But an object diagram represents an instance at a particular moment which is concrete in nature. • E.g. Calculator is a class and add is an object of that class BehavioralDiagrams(UML), OOA/D,UniversityofEducation Okara 4
  • 5. Structural Diagrams (Cont.) • 3- Component diagrams are different in terms of nature and behavior. Component diagrams are used to model physical aspects of a system. • Physical aspects are the elements like executables, libraries, files, documents etc which resides in the code. • So component diagrams are used to visualize the organization and relationships among components in a system. BehavioralDiagrams(UML), OOA/D,UniversityofEducation Okara 5
  • 6. Structural Diagrams (Cont.) • 4- Deployment diagrams are used to visualize the topology of the physical components of a system where the software components are deployed. • Deployment diagrams consist of nodes and their relationships and used for describing the hardware components where software components are deployed. BehavioralDiagrams(UML), OOA/D,UniversityofEducation Okara 6
  • 7. Behavioral Diagrams • Only static behavior is not sufficient to model a system rather dynamic behavior is more important than static behavior. • 1- Use case diagram is used to capture the dynamic aspect of a system. • Use case diagrams are used to gather the requirements of a system including internal and external links. These requirements are mostly design requirements. BehavioralDiagrams(UML), OOA/D,UniversityofEducation Okara 7
  • 8. Behavioral Diagrams (cont.) • From the name Interaction it is clear that the diagram is used to describe some type of interactions among the different elements in the model. • 2 - Interactive behavior is represented in UML by two diagrams known as Sequence diagram and Collaboration diagram. The basic purposes of both the diagrams are similar. • Sequence diagram emphasizes on time sequence of messages and collaboration diagram emphasizes on the structural organization of the objects that send and receive messages. BehavioralDiagrams(UML), OOA/D,UniversityofEducation Okara 8
  • 9. Behavioral Diagrams (cont.) Collaboration Diagram BehavioralDiagrams(UML), OOA/D,UniversityofEducation Okara 9
  • 10. Behavioral Diagrams (cont.) • 3- State Chart Diagram describes different states of a component in a system. • The first state is an idle state from where the process starts. The next states are arrived for events like send request, confirm request, and dispatch order. These events are responsible for state changes of order object. BehavioralDiagrams(UML), OOA/D,UniversityofEducation Okara 10
  • 11. Behavioral Diagrams (cont.) • 4- Activity diagram is basically a flow chart to represent the flow form one activity to another activity. The activity can be described as an operation of the system. • It does not show any message flow from one activity to another (as in other 3 diagrams). BehavioralDiagrams(UML), OOA/D,UniversityofEducation Okara 11