SlideShare a Scribd company logo
Object Oriented
Analysis
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Static Models
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Static Models
■ Represents the static elements of a system
■ Explains the structural organization of a system
■ Describes the static structure of objects that exist in the problem domain
■ Time independent view of system
■ Static modelling includes
– Use case diagram
– Class diagram
– Object diagram
– Component diagram
– Deployment diagram
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Static Models (Object Model)
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Object Model
■ System is modelled using object oriented techniques
■ Classified into differentstages
1. Analysis object model
2. System design object model
3. Object design model
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Static Models (Class Diagram)
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Class Diagram
■ Class diagram is a static model diagram which is modelled using the UML (Unified
Modeling Language)
■ Show classes which are abstractions that specify the common structure, attributes
and behaviors of a set of objects
■ Describes the structure of a system by using classes and objects, and the
relationships among them
■ Used from data modeling of a specific domain to a detailed design of the system
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Object Modelling using UML
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Object Modelling using UML
■ Object modelling technique
– An object modeling approach for software modeling and designing
– Method for analysis, design and implementation using object oriented principles
■ UML (Unified Modeling Language)
– An industry standard modeling language with a rich graphical notation, and
comprehensive set of diagrams and elements
– A modeling language use to specify, design and develop the document artifacts of a
software system
– Used to analyze, design and implement a system using the methods of object
oriented software engineering
– Combine different approaches in a single design language
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
The process of developing class
diagram
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
The process of developing class diagram
■ Steps of developing a class diagram
1. Identify set of classes
2. Define relationships between classes
3. Add attributes and behaviors
4. Iterate over the process again till class diagram is satisfactory
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Class Diagram UML (Class)
■ Class is represented with a box that contain three compartments, top compartment
contains the name of a class, the middle compartment contain the attributes of a
class, and lower compartment contain the behaviors of a class
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Class_Name
visibility attribute_name: data_type
visibility behavior_name(input_parameter : data_type) : return_type
Class Diagram UML (Association)
■ Association relation is represented by a line from one class to another class and its
multiplicity is represented by a numerical range at the both ends of a line
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Class_Name
<attributeslist>
<behaviors list>
Class_Name
<attributeslist>
<behaviors list>
min_no … max_no
(* for Infinite)
min_no … max_no
(* for Infinite)
Class Diagram UML (Aggregation)
■ Aggregation relation is represented by hollow diamond shape on the containing
class with a single line that connects it to the contained class and its multiplicity is
represented by a numerical range at the both ends of a line
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Class_Name
<attributeslist>
<behaviors list>
Class_Name
<attributeslist>
<behaviors list>
min_no … max_no
(* for Infinite)
min_no … max_no
(* for Infinite)
Class Diagram UML (Composition)
■ Composition relation is represented by filled diamond shape on the containing class
with a single line that connects it to the contained class and its multiplicity is
represented by a numerical range at the both ends of a line
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Class_Name
<attributeslist>
<behaviors list>
Class_Name
<attributeslist>
<behaviors list>
min_no … max_no
(* for Infinite)
min_no … max_no
(* for Infinite)
Class Diagram UML (Inheritance)
■ Inheritance relation is represented by hollow triangle shape on the base class end of
the line that connects it to the derived class
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Class_Name
<attributeslist>
<behaviors list>
Class_Name
<attributeslist>
<behaviors list>
Dynamic Models
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Dynamic Models
■ Represents the dynamic elements of a system
■ Explains the behavior of a system
■ Shows the order of events and messages that occur in a system
■ Describes the interaction among objects and flow of information
■ Time dependent view of system
■ Dynamic modelling includes
– Interaction diagram
– Sequence diagram
– State machine diagram
– Activity diagram
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Dynamic Models (Sequence Diagram)
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Sequence Diagram
■ Sequence diagram is a dynamic model diagram which is modelled using the UML
(Unified Modeling Language)
■ Describes the objects participating in a use case
■ Explains that how different parts of a system interact with each other to carry out a
specific task
■ Shows the dynamic behavior of interacting objects
■ Explains that how objects communicate with one another and in which order
■ Shows the messaging between objects arranged in a time sequence
■ Models the collaboration of different objects with respect to time
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Sequence Diagram UML
■ Every participating object has its own lifeline which is represented by a vertical
dotted line drawn either under a rectangular box or human symbol (if object is actor)
■ If an object is destroyed, cross is drawn on bottom of the lifeline
■ Messages exchanged between objects are represented by horizontal arrows, in the
order in which they occur, synchronous messages with solid arrow heads and
asynchronous messages with open arrow heads
■ Request or invocation messages are represented by solid lines and response or
return messages are represented by dotted lines
■ Processes performed in response to messages are represented by activation boxes,
which are opaque rectangles drawn on top of lifelines
■ Loops, alternative flows or reference to another sequence are represented inside a
large rectangle over the lifelines of related objects
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Sequence Diagram UML
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
Object_Name
Actor_Name
Object_Name
X
Request_Msg_Sync Request_Msg_Create_Sync
Response_Msg
Request_Msg_Delete_Async
Request_Msg_Async
Self_Msg
Reference
■ Object Oriented Software Engineering: Using UML, Patterns, and Java by Bernd
Bruegge, Allen H. Dutoit, Prentice Hall,2010
FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY

More Related Content

PDF
7-Refactoring (Object Oriented Software Engineering - BNU Spring 2017)
PDF
2-Software Design (Object Oriented Software Engineering - BNU Spring 2017)
PDF
6-Software Design Reviews (Object Oriented Software Engineering - BNU Spring ...
PDF
1-Introduction to Software Engineering (Object Oriented Software Engineering ...
PDF
9-Software Verification and Validation (Object Oriented Software Engineering ...
PDF
Software Engineering : Process Models
PDF
Walsh, Stephani - Resume
PPT
03 unified process
7-Refactoring (Object Oriented Software Engineering - BNU Spring 2017)
2-Software Design (Object Oriented Software Engineering - BNU Spring 2017)
6-Software Design Reviews (Object Oriented Software Engineering - BNU Spring ...
1-Introduction to Software Engineering (Object Oriented Software Engineering ...
9-Software Verification and Validation (Object Oriented Software Engineering ...
Software Engineering : Process Models
Walsh, Stephani - Resume
03 unified process

What's hot (20)

PDF
Software Engineering : Software testing
PPTX
Software engineering 10 software cost estimation cocomo
PDF
UML-test Application for Automated Validation of Students’ UML Class Diagram
PPTX
Ch 14 s.e use case diagrams
PPT
4.2 architecture introduction
PPT
Lecture 1
PPTX
Tactics:Categories of Testing Techniques
PPTX
Software engineering
PPTX
Lecture 01
PPTX
Software Process Models
PDF
Process slide v1
DOCX
Ch 02 s.e software process models 1
PPTX
Exam evaluation sytem
DOCX
Posiciones ALTEN Holanda
PPTX
Spiral Model
PPTX
Itertaive process-development model
PPTX
Software Process Model (System Development Life Cycle)
PPTX
01 software development life cycle
Software Engineering : Software testing
Software engineering 10 software cost estimation cocomo
UML-test Application for Automated Validation of Students’ UML Class Diagram
Ch 14 s.e use case diagrams
4.2 architecture introduction
Lecture 1
Tactics:Categories of Testing Techniques
Software engineering
Lecture 01
Software Process Models
Process slide v1
Ch 02 s.e software process models 1
Exam evaluation sytem
Posiciones ALTEN Holanda
Spiral Model
Itertaive process-development model
Software Process Model (System Development Life Cycle)
01 software development life cycle
Ad

Similar to 5-Object Oriented Analysis (Object Oriented Software Engineering - BNU Spring 2017) (20)

PPT
Object oriented and analysis
PDF
3-Software Anti Design Patterns (Object Oriented Software Engineering - BNU S...
PDF
4-Object Oriented Design Heuristics (Object Oriented Software Engineering - B...
PDF
SE@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.ppt.pdf
PDF
CS6502 OOAD - Question Bank and Answer
PPSX
MDE in Practice
PDF
L03 Software Design
DOCX
Phase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
PPTX
UML Design Document Training Learn UML .pptx
PPT
Oomd unit1
PPT
IntroductionToUML.ppt
PPTX
AN introduction to Software Engineering and Data.pptx
PPTX
Class Diagrams
PPT
Architecture Centric Development PPT Presentation
PDF
Model-Based Systems Engineering Demystified
PPT
5 Design Patterns Explained
PPT
OOSE Unit 3 PPT.ppt
PDF
Object-oriented modeling and design.pdf
PDF
ppt_ooad.pdf
PPT
Unit 1( modelling concepts & class modeling)
Object oriented and analysis
3-Software Anti Design Patterns (Object Oriented Software Engineering - BNU S...
4-Object Oriented Design Heuristics (Object Oriented Software Engineering - B...
SE@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.ppt.pdf
CS6502 OOAD - Question Bank and Answer
MDE in Practice
L03 Software Design
Phase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
UML Design Document Training Learn UML .pptx
Oomd unit1
IntroductionToUML.ppt
AN introduction to Software Engineering and Data.pptx
Class Diagrams
Architecture Centric Development PPT Presentation
Model-Based Systems Engineering Demystified
5 Design Patterns Explained
OOSE Unit 3 PPT.ppt
Object-oriented modeling and design.pdf
ppt_ooad.pdf
Unit 1( modelling concepts & class modeling)
Ad

More from Hafiz Ammar Siddiqui (9)

PDF
4-Game Physics (Game Design and Development)
PDF
3-Game Graphics (Game Design and Development)
PDF
2-Game Design (Game Design and Development)
PDF
1-Introduction (Game Design and Development)
PDF
10-Software Project Management (Object Oriented Software Engineering - BNU Sp...
PDF
9-Game Design (Game Development - UMT Spring 2017/2018)
PDF
6-Animation in Game (Game Development - UMT Spring 2017/2018)
PDF
3-Graphics in Game (Game Development - UMT Spring 2017/2018)
PDF
1-Introduction (Game Development - UMT Spring 2017/2018)
4-Game Physics (Game Design and Development)
3-Game Graphics (Game Design and Development)
2-Game Design (Game Design and Development)
1-Introduction (Game Design and Development)
10-Software Project Management (Object Oriented Software Engineering - BNU Sp...
9-Game Design (Game Development - UMT Spring 2017/2018)
6-Animation in Game (Game Development - UMT Spring 2017/2018)
3-Graphics in Game (Game Development - UMT Spring 2017/2018)
1-Introduction (Game Development - UMT Spring 2017/2018)

Recently uploaded (20)

PDF
Computing-Curriculum for Schools in Ghana
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Pre independence Education in Inndia.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Institutional Correction lecture only . . .
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Computing-Curriculum for Schools in Ghana
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Anesthesia in Laparoscopic Surgery in India
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
01-Introduction-to-Information-Management.pdf
Cell Structure & Organelles in detailed.
O5-L3 Freight Transport Ops (International) V1.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Final Presentation General Medicine 03-08-2024.pptx
Pre independence Education in Inndia.pdf
O7-L3 Supply Chain Operations - ICLT Program
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
Institutional Correction lecture only . . .
TR - Agricultural Crops Production NC III.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Microbial disease of the cardiovascular and lymphatic systems
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...

5-Object Oriented Analysis (Object Oriented Software Engineering - BNU Spring 2017)

  • 1. Object Oriented Analysis FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 2. Static Models FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 3. Static Models ■ Represents the static elements of a system ■ Explains the structural organization of a system ■ Describes the static structure of objects that exist in the problem domain ■ Time independent view of system ■ Static modelling includes – Use case diagram – Class diagram – Object diagram – Component diagram – Deployment diagram FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 4. Static Models (Object Model) FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 5. Object Model ■ System is modelled using object oriented techniques ■ Classified into differentstages 1. Analysis object model 2. System design object model 3. Object design model FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 6. Static Models (Class Diagram) FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 7. Class Diagram ■ Class diagram is a static model diagram which is modelled using the UML (Unified Modeling Language) ■ Show classes which are abstractions that specify the common structure, attributes and behaviors of a set of objects ■ Describes the structure of a system by using classes and objects, and the relationships among them ■ Used from data modeling of a specific domain to a detailed design of the system FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 8. Object Modelling using UML FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 9. Object Modelling using UML ■ Object modelling technique – An object modeling approach for software modeling and designing – Method for analysis, design and implementation using object oriented principles ■ UML (Unified Modeling Language) – An industry standard modeling language with a rich graphical notation, and comprehensive set of diagrams and elements – A modeling language use to specify, design and develop the document artifacts of a software system – Used to analyze, design and implement a system using the methods of object oriented software engineering – Combine different approaches in a single design language FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 10. The process of developing class diagram FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 11. The process of developing class diagram ■ Steps of developing a class diagram 1. Identify set of classes 2. Define relationships between classes 3. Add attributes and behaviors 4. Iterate over the process again till class diagram is satisfactory FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 12. Class Diagram UML (Class) ■ Class is represented with a box that contain three compartments, top compartment contains the name of a class, the middle compartment contain the attributes of a class, and lower compartment contain the behaviors of a class FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY Class_Name visibility attribute_name: data_type visibility behavior_name(input_parameter : data_type) : return_type
  • 13. Class Diagram UML (Association) ■ Association relation is represented by a line from one class to another class and its multiplicity is represented by a numerical range at the both ends of a line FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY Class_Name <attributeslist> <behaviors list> Class_Name <attributeslist> <behaviors list> min_no … max_no (* for Infinite) min_no … max_no (* for Infinite)
  • 14. Class Diagram UML (Aggregation) ■ Aggregation relation is represented by hollow diamond shape on the containing class with a single line that connects it to the contained class and its multiplicity is represented by a numerical range at the both ends of a line FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY Class_Name <attributeslist> <behaviors list> Class_Name <attributeslist> <behaviors list> min_no … max_no (* for Infinite) min_no … max_no (* for Infinite)
  • 15. Class Diagram UML (Composition) ■ Composition relation is represented by filled diamond shape on the containing class with a single line that connects it to the contained class and its multiplicity is represented by a numerical range at the both ends of a line FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY Class_Name <attributeslist> <behaviors list> Class_Name <attributeslist> <behaviors list> min_no … max_no (* for Infinite) min_no … max_no (* for Infinite)
  • 16. Class Diagram UML (Inheritance) ■ Inheritance relation is represented by hollow triangle shape on the base class end of the line that connects it to the derived class FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY Class_Name <attributeslist> <behaviors list> Class_Name <attributeslist> <behaviors list>
  • 17. Dynamic Models FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 18. Dynamic Models ■ Represents the dynamic elements of a system ■ Explains the behavior of a system ■ Shows the order of events and messages that occur in a system ■ Describes the interaction among objects and flow of information ■ Time dependent view of system ■ Dynamic modelling includes – Interaction diagram – Sequence diagram – State machine diagram – Activity diagram FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 19. Dynamic Models (Sequence Diagram) FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 20. Sequence Diagram ■ Sequence diagram is a dynamic model diagram which is modelled using the UML (Unified Modeling Language) ■ Describes the objects participating in a use case ■ Explains that how different parts of a system interact with each other to carry out a specific task ■ Shows the dynamic behavior of interacting objects ■ Explains that how objects communicate with one another and in which order ■ Shows the messaging between objects arranged in a time sequence ■ Models the collaboration of different objects with respect to time FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 21. Sequence Diagram UML ■ Every participating object has its own lifeline which is represented by a vertical dotted line drawn either under a rectangular box or human symbol (if object is actor) ■ If an object is destroyed, cross is drawn on bottom of the lifeline ■ Messages exchanged between objects are represented by horizontal arrows, in the order in which they occur, synchronous messages with solid arrow heads and asynchronous messages with open arrow heads ■ Request or invocation messages are represented by solid lines and response or return messages are represented by dotted lines ■ Processes performed in response to messages are represented by activation boxes, which are opaque rectangles drawn on top of lifelines ■ Loops, alternative flows or reference to another sequence are represented inside a large rectangle over the lifelines of related objects FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY
  • 22. Sequence Diagram UML FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY Object_Name Actor_Name Object_Name X Request_Msg_Sync Request_Msg_Create_Sync Response_Msg Request_Msg_Delete_Async Request_Msg_Async Self_Msg
  • 23. Reference ■ Object Oriented Software Engineering: Using UML, Patterns, and Java by Bernd Bruegge, Allen H. Dutoit, Prentice Hall,2010 FROM: HAFIZ AMMAR SIDDIQUI – COURSE: OBJECT ORIENTED SOFTWARE ENGINEERING – INSTITUTE: BEACONHOUSE NATIONAL UNIVERSITY