SlideShare a Scribd company logo
1 of 18
OBJECT-ORIENTED ANALYSIS AND DESIGN
PATTERNS
TECH TALK
Shaik. ZainabFathima
17951A05H2
TOPIC
2
Sequence Diagrams
 Shows objects and classes involved in a use case scenario.
 Shows the message exchanged between objects in time order
sequence.
 It is used in design to assign object responsibilities.
 Can be used test user interface requirements.
3
System Sequence Diagrams(SSD’s)
• SSD is an artifact of analysis that illustrates input and
output events related to the system.
• SSD is associated with use-case realization in the logical
view of system development.
• SSD’s and System behavior:
o System behaves as “Black Box”.
o Interior objects are not shown, as they would be on a
Sequence Diagram.
4
Use Cases are Source for SSD
• Use cases describe
– How actors interact with system.
– Typical course of events that external actors
generate and
– The order of the events.
5
SSD Components
For a particular scenario of use-case an SSD shows-
• The external actors that interact directly with the system.
• The System (as a black box).
• The system events that the actors generate.
• What SSDs Show:
• Match operations of the system in response to the events generated
• Depict the temporal order of the events.
• Should be done for the main success scenario of the use-case
– Also for frequent and alternative scenarios
6
Objects and Actors on SSDs
• Objects are instances of classes.
• Represented as a rectangle which contains the name of the
object underlined
• Because the system is instantiated, it is shown as an object.
Actor: An Actor is modeled using the ubiquitous symbol, the
stick figure.
7
:object1
Lifelines and messages on SSDs
• LifeLine identifies the existence of the object over time. The
notation for a Lifeline is a vertical dotted line extending from an
object.
• Messages, modeled as horizontal arrows between Activations,
indicate the communications between objects.
8
Example of an SSD
• Following example shows the success scenario of the Process
Sale use case.
• Events generated by cashier (actor)-
makeNewSale
enterItem
endSale
makePayment
9
SSD for Process Sale scenario
10
Create SSDs for each Use Case
1. Draw a lifeline representing the system as a black box.
2. Identify each actor that directly operates on the
system. Draw a lifeline for each actor
3. From the use case happy path text, identify system
(external) events that actors generate (look at right side
of the flow of events). Add them as messages to
diagram.
4. Add the main outputs from the use case as messages
back to actor – see use case table
5. Optionally, include the use case text to the left of the
diagram.
11
SSDs are derived from use cases
12
System Events and System Boundary
13
• To identify the system events, knowing the system boundary
is critical.
• For the purpose of software development, the system
boundary is chosen to be the software system itself.
Determining SSD System Boundary
14
• Identifying the System events-
1. Determine the actors that directly interact with the system.
2. In the process Sale example, the customer does not
directly interact with the POS system. Cashier interacts
with the system directly. Therefore cashier is the
generator of the system events.
Defining System Boundary
15
Choosing SSD event / operation names
“enterItem” is better
than “scan” as it
captures the intent of
operation rather than
what interface is used
to capture the system
event (design choice).
16
SSDs in Analysis
17
 SSDs are a visualization of the interactions implied in the
Use cases.
It is useful to create SSDs during analysis to:
• Identify the system events and major operations
• Write system operation contracts (Contracts describe
detailed system behavior)
• Provide a way for us to visually step through invocation of
the operations in Use-Cases.
18

More Related Content

Similar to Tech talk ooad h2

Refining The System Definition
Refining The System DefinitionRefining The System Definition
Refining The System Definition
Sandeep Ganji
 
Software requirementspecification
Software requirementspecificationSoftware requirementspecification
Software requirementspecification
oshin-japanese
 

Similar to Tech talk ooad h2 (20)

System Modelling.ppt
System Modelling.pptSystem Modelling.ppt
System Modelling.ppt
 
6.SE_Requirements Modeling.ppt
6.SE_Requirements Modeling.ppt6.SE_Requirements Modeling.ppt
6.SE_Requirements Modeling.ppt
 
8. system sequence diagrams
8. system sequence diagrams8. system sequence diagrams
8. system sequence diagrams
 
Jar chapter 3
Jar chapter 3Jar chapter 3
Jar chapter 3
 
chapter_5_5.ppt
chapter_5_5.pptchapter_5_5.ppt
chapter_5_5.ppt
 
Requirement analysis and UML modelling in Software engineering
Requirement analysis and UML modelling in Software engineeringRequirement analysis and UML modelling in Software engineering
Requirement analysis and UML modelling in Software engineering
 
SAD06 - Use Case Diagrams
SAD06 - Use Case DiagramsSAD06 - Use Case Diagrams
SAD06 - Use Case Diagrams
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)
 
Jar chapter 4_part_ii
Jar chapter 4_part_iiJar chapter 4_part_ii
Jar chapter 4_part_ii
 
SE_Lec 08_UML Use Cases
SE_Lec 08_UML Use CasesSE_Lec 08_UML Use Cases
SE_Lec 08_UML Use Cases
 
Lecture-System_Contracts.pptx
Lecture-System_Contracts.pptxLecture-System_Contracts.pptx
Lecture-System_Contracts.pptx
 
Refining The System Definition
Refining The System DefinitionRefining The System Definition
Refining The System Definition
 
Use Case Diagrams part4
Use Case Diagrams part4Use Case Diagrams part4
Use Case Diagrams part4
 
uml.pptx
uml.pptxuml.pptx
uml.pptx
 
Case Module 6.docx
Case Module 6.docxCase Module 6.docx
Case Module 6.docx
 
Case Module 6.docx
Case Module 6.docxCase Module 6.docx
Case Module 6.docx
 
OOAD U1.pptx
OOAD U1.pptxOOAD U1.pptx
OOAD U1.pptx
 
Week 5
Week 5Week 5
Week 5
 
3 interaction and_state_modeling
3 interaction and_state_modeling3 interaction and_state_modeling
3 interaction and_state_modeling
 
Software requirementspecification
Software requirementspecificationSoftware requirementspecification
Software requirementspecification
 

Recently uploaded

ECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdf
ECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdfECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdf
ECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdf
Sarbjit Bahga
 
Week 11 Mini-Tasks.pptxjjjjjjjjjjjjjjjjjjjj
Week 11 Mini-Tasks.pptxjjjjjjjjjjjjjjjjjjjjWeek 11 Mini-Tasks.pptxjjjjjjjjjjjjjjjjjjjj
Week 11 Mini-Tasks.pptxjjjjjjjjjjjjjjjjjjjj
joshuaclack73
 
Evaluating natural frequencies and mode shapes.pptx
Evaluating natural frequencies and mode shapes.pptxEvaluating natural frequencies and mode shapes.pptx
Evaluating natural frequencies and mode shapes.pptx
joshuaclack73
 
一模一样英国德比大学毕业证(derby毕业证书)本科学历-国外大学文凭办理
一模一样英国德比大学毕业证(derby毕业证书)本科学历-国外大学文凭办理一模一样英国德比大学毕业证(derby毕业证书)本科学历-国外大学文凭办理
一模一样英国德比大学毕业证(derby毕业证书)本科学历-国外大学文凭办理
thubko
 
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
ugzga
 
如何办理(UCI毕业证书)加利福尼亚大学尔湾分校毕业证成绩单本科硕士学位证留信学历认证
如何办理(UCI毕业证书)加利福尼亚大学尔湾分校毕业证成绩单本科硕士学位证留信学历认证如何办理(UCI毕业证书)加利福尼亚大学尔湾分校毕业证成绩单本科硕士学位证留信学历认证
如何办理(UCI毕业证书)加利福尼亚大学尔湾分校毕业证成绩单本科硕士学位证留信学历认证
ugzga
 
如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证
ugzga
 
如何办理(RUG毕业证书)格罗宁根大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(RUG毕业证书)格罗宁根大学毕业证成绩单本科硕士学位证留信学历认证如何办理(RUG毕业证书)格罗宁根大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(RUG毕业证书)格罗宁根大学毕业证成绩单本科硕士学位证留信学历认证
ugzga
 
NO1 Best Kala Jadu Expert Specialist In Qatar Kala Jadu Expert Specialist In ...
NO1 Best Kala Jadu Expert Specialist In Qatar Kala Jadu Expert Specialist In ...NO1 Best Kala Jadu Expert Specialist In Qatar Kala Jadu Expert Specialist In ...
NO1 Best Kala Jadu Expert Specialist In Qatar Kala Jadu Expert Specialist In ...
Amil baba
 

Recently uploaded (20)

ECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdf
ECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdfECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdf
ECHOES OF GENIUS - A Tribute to Nari Gandhi's Architectural Legacy. .pdf
 
Week 11 Mini-Tasks.pptxjjjjjjjjjjjjjjjjjjjj
Week 11 Mini-Tasks.pptxjjjjjjjjjjjjjjjjjjjjWeek 11 Mini-Tasks.pptxjjjjjjjjjjjjjjjjjjjj
Week 11 Mini-Tasks.pptxjjjjjjjjjjjjjjjjjjjj
 
CADD 141 - BIRD Scooter - Cup Holder Photos.pdf
CADD 141 - BIRD Scooter - Cup Holder Photos.pdfCADD 141 - BIRD Scooter - Cup Holder Photos.pdf
CADD 141 - BIRD Scooter - Cup Holder Photos.pdf
 
Evaluating natural frequencies and mode shapes.pptx
Evaluating natural frequencies and mode shapes.pptxEvaluating natural frequencies and mode shapes.pptx
Evaluating natural frequencies and mode shapes.pptx
 
一模一样英国德比大学毕业证(derby毕业证书)本科学历-国外大学文凭办理
一模一样英国德比大学毕业证(derby毕业证书)本科学历-国外大学文凭办理一模一样英国德比大学毕业证(derby毕业证书)本科学历-国外大学文凭办理
一模一样英国德比大学毕业证(derby毕业证书)本科学历-国外大学文凭办理
 
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
 
Naer VR: Advanced Research and Usability Testing Project
Naer VR: Advanced Research and Usability Testing ProjectNaer VR: Advanced Research and Usability Testing Project
Naer VR: Advanced Research and Usability Testing Project
 
Top 10 Website Designing Hacks for Beginners.pptx.pptx
Top 10 Website Designing Hacks for Beginners.pptx.pptxTop 10 Website Designing Hacks for Beginners.pptx.pptx
Top 10 Website Designing Hacks for Beginners.pptx.pptx
 
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
 
CADD 141 - Puzzle Cube Project - Product Photos
CADD 141 - Puzzle Cube Project - Product PhotosCADD 141 - Puzzle Cube Project - Product Photos
CADD 141 - Puzzle Cube Project - Product Photos
 
Spring Summer 2026 Inspirations trend book Peclers Paris
Spring Summer 2026 Inspirations trend book Peclers ParisSpring Summer 2026 Inspirations trend book Peclers Paris
Spring Summer 2026 Inspirations trend book Peclers Paris
 
如何办理(UCI毕业证书)加利福尼亚大学尔湾分校毕业证成绩单本科硕士学位证留信学历认证
如何办理(UCI毕业证书)加利福尼亚大学尔湾分校毕业证成绩单本科硕士学位证留信学历认证如何办理(UCI毕业证书)加利福尼亚大学尔湾分校毕业证成绩单本科硕士学位证留信学历认证
如何办理(UCI毕业证书)加利福尼亚大学尔湾分校毕业证成绩单本科硕士学位证留信学历认证
 
The concept of motion graphics and its applications.
The concept of motion graphics and its applications.The concept of motion graphics and its applications.
The concept of motion graphics and its applications.
 
如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(ArtEZ毕业证书)ArtEZ艺术学院毕业证成绩单本科硕士学位证留信学历认证
 
Spring Summer 26 Colors Trend Book Peclers Paris
Spring Summer 26 Colors Trend Book Peclers ParisSpring Summer 26 Colors Trend Book Peclers Paris
Spring Summer 26 Colors Trend Book Peclers Paris
 
如何办理(RUG毕业证书)格罗宁根大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(RUG毕业证书)格罗宁根大学毕业证成绩单本科硕士学位证留信学历认证如何办理(RUG毕业证书)格罗宁根大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(RUG毕业证书)格罗宁根大学毕业证成绩单本科硕士学位证留信学历认证
 
Recycled Modular Low Cost Construction .pdf
Recycled Modular Low Cost Construction .pdfRecycled Modular Low Cost Construction .pdf
Recycled Modular Low Cost Construction .pdf
 
And that's about to change! (Service Design Drinks Berlin May 2024)
And that's about to change! (Service Design Drinks Berlin May 2024)And that's about to change! (Service Design Drinks Berlin May 2024)
And that's about to change! (Service Design Drinks Berlin May 2024)
 
Branding in the Psychedelic Landscape Report.pdf
Branding in the Psychedelic Landscape Report.pdfBranding in the Psychedelic Landscape Report.pdf
Branding in the Psychedelic Landscape Report.pdf
 
NO1 Best Kala Jadu Expert Specialist In Qatar Kala Jadu Expert Specialist In ...
NO1 Best Kala Jadu Expert Specialist In Qatar Kala Jadu Expert Specialist In ...NO1 Best Kala Jadu Expert Specialist In Qatar Kala Jadu Expert Specialist In ...
NO1 Best Kala Jadu Expert Specialist In Qatar Kala Jadu Expert Specialist In ...
 

Tech talk ooad h2

  • 1. OBJECT-ORIENTED ANALYSIS AND DESIGN PATTERNS TECH TALK Shaik. ZainabFathima 17951A05H2
  • 3. Sequence Diagrams  Shows objects and classes involved in a use case scenario.  Shows the message exchanged between objects in time order sequence.  It is used in design to assign object responsibilities.  Can be used test user interface requirements. 3
  • 4. System Sequence Diagrams(SSD’s) • SSD is an artifact of analysis that illustrates input and output events related to the system. • SSD is associated with use-case realization in the logical view of system development. • SSD’s and System behavior: o System behaves as “Black Box”. o Interior objects are not shown, as they would be on a Sequence Diagram. 4
  • 5. Use Cases are Source for SSD • Use cases describe – How actors interact with system. – Typical course of events that external actors generate and – The order of the events. 5
  • 6. SSD Components For a particular scenario of use-case an SSD shows- • The external actors that interact directly with the system. • The System (as a black box). • The system events that the actors generate. • What SSDs Show: • Match operations of the system in response to the events generated • Depict the temporal order of the events. • Should be done for the main success scenario of the use-case – Also for frequent and alternative scenarios 6
  • 7. Objects and Actors on SSDs • Objects are instances of classes. • Represented as a rectangle which contains the name of the object underlined • Because the system is instantiated, it is shown as an object. Actor: An Actor is modeled using the ubiquitous symbol, the stick figure. 7 :object1
  • 8. Lifelines and messages on SSDs • LifeLine identifies the existence of the object over time. The notation for a Lifeline is a vertical dotted line extending from an object. • Messages, modeled as horizontal arrows between Activations, indicate the communications between objects. 8
  • 9. Example of an SSD • Following example shows the success scenario of the Process Sale use case. • Events generated by cashier (actor)- makeNewSale enterItem endSale makePayment 9
  • 10. SSD for Process Sale scenario 10
  • 11. Create SSDs for each Use Case 1. Draw a lifeline representing the system as a black box. 2. Identify each actor that directly operates on the system. Draw a lifeline for each actor 3. From the use case happy path text, identify system (external) events that actors generate (look at right side of the flow of events). Add them as messages to diagram. 4. Add the main outputs from the use case as messages back to actor – see use case table 5. Optionally, include the use case text to the left of the diagram. 11
  • 12. SSDs are derived from use cases 12
  • 13. System Events and System Boundary 13 • To identify the system events, knowing the system boundary is critical. • For the purpose of software development, the system boundary is chosen to be the software system itself.
  • 14. Determining SSD System Boundary 14 • Identifying the System events- 1. Determine the actors that directly interact with the system. 2. In the process Sale example, the customer does not directly interact with the POS system. Cashier interacts with the system directly. Therefore cashier is the generator of the system events.
  • 16. Choosing SSD event / operation names “enterItem” is better than “scan” as it captures the intent of operation rather than what interface is used to capture the system event (design choice). 16
  • 17. SSDs in Analysis 17  SSDs are a visualization of the interactions implied in the Use cases. It is useful to create SSDs during analysis to: • Identify the system events and major operations • Write system operation contracts (Contracts describe detailed system behavior) • Provide a way for us to visually step through invocation of the operations in Use-Cases.
  • 18. 18