SlideShare a Scribd company logo
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

PPTX
State diagram
PPTX
Unit 5 general principles, simulation software
PPTX
Discrete event-simulation
PDF
Discrete Event Simulation in Healthcare
PPT
Chapter3 general principles of discrete event simulation
PDF
SE18_Lec 09_UML Use Cases
PDF
SE18_Lec 07_System Modelling and Context Model
PPTX
Co relation between dfd & event table
State diagram
Unit 5 general principles, simulation software
Discrete event-simulation
Discrete Event Simulation in Healthcare
Chapter3 general principles of discrete event simulation
SE18_Lec 09_UML Use Cases
SE18_Lec 07_System Modelling and Context Model
Co relation between dfd & event table

Similar to Tech talk ooad h2 (20)

PPT
Analysis-Models jjjkkkkjgffffffttui3k3k3j3n
PPT
System Modelling.ppt
PDF
se cph - 4---7-WA0008..pdf ejejekkekekememm
PPT
6.SE_Requirements Modeling.ppt
PPT
8. system sequence diagrams
PPT
PDF
6-UseCfgfhgfhgfhgfhgfhfhhaseActivity.pdf
PPTX
OOSAD-Object Oriented Systems Analysis and Design - Chapter05.pptx
PPT
chapter_5_5.ppt
PDF
Requirement analysis and UML modelling in Software engineering
PPTX
SAD06 - Use Case Diagrams
PPTX
SWEN-4321-CH04-1Chapter 4 System sequence diagrams.pptx
PPT
Unit 3(advanced state modeling & interaction meodelling)
PPT
Jar chapter 4_part_ii
PDF
SE_Lec 08_UML Use Cases
PPTX
Lecture-System_Contracts.pptx
PPT
Refining The System Definition
PDF
Software Modeling and Design for Real-Time Embedded Systems
PDF
Use Case Diagrams part4
PPTX
uml.pptx
Analysis-Models jjjkkkkjgffffffttui3k3k3j3n
System Modelling.ppt
se cph - 4---7-WA0008..pdf ejejekkekekememm
6.SE_Requirements Modeling.ppt
8. system sequence diagrams
6-UseCfgfhgfhgfhgfhgfhfhhaseActivity.pdf
OOSAD-Object Oriented Systems Analysis and Design - Chapter05.pptx
chapter_5_5.ppt
Requirement analysis and UML modelling in Software engineering
SAD06 - Use Case Diagrams
SWEN-4321-CH04-1Chapter 4 System sequence diagrams.pptx
Unit 3(advanced state modeling & interaction meodelling)
Jar chapter 4_part_ii
SE_Lec 08_UML Use Cases
Lecture-System_Contracts.pptx
Refining The System Definition
Software Modeling and Design for Real-Time Embedded Systems
Use Case Diagrams part4
uml.pptx
Ad

Recently uploaded (20)

PDF
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
PDF
YOW2022-BNE-MinimalViableArchitecture.pdf
PPTX
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
PPT
pump pump is a mechanism that is used to transfer a liquid from one place to ...
PPTX
Media And Information Literacy for Grade 12
PDF
SEVA- Fashion designing-Presentation.pdf
PPTX
An introduction to AI in research and reference management
PDF
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
PDF
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
PPTX
Complete Guide to Microsoft PowerPoint 2019 – Features, Tools, and Tips"
PPTX
Tenders & Contracts Works _ Services Afzal.pptx
PPTX
building Planning Overview for step wise design.pptx
PPTX
AD Bungalow Case studies Sem 2.pptxvwewev
PPTX
BSCS lesson 3.pptxnbbjbb mnbkjbkbbkbbkjb
PDF
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
PPTX
DOC-20250430-WA0014._20250714_235747_0000.pptx
PPTX
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
PDF
Interior Structure and Construction A1 NGYANQI
DOCX
The story of the first moon landing.docx
PDF
Integrated-2D-and-3D-Animation-Bridging-Dimensions-for-Impactful-Storytelling...
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
YOW2022-BNE-MinimalViableArchitecture.pdf
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
pump pump is a mechanism that is used to transfer a liquid from one place to ...
Media And Information Literacy for Grade 12
SEVA- Fashion designing-Presentation.pdf
An introduction to AI in research and reference management
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
Complete Guide to Microsoft PowerPoint 2019 – Features, Tools, and Tips"
Tenders & Contracts Works _ Services Afzal.pptx
building Planning Overview for step wise design.pptx
AD Bungalow Case studies Sem 2.pptxvwewev
BSCS lesson 3.pptxnbbjbb mnbkjbkbbkbbkjb
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
DOC-20250430-WA0014._20250714_235747_0000.pptx
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
Interior Structure and Construction A1 NGYANQI
The story of the first moon landing.docx
Integrated-2D-and-3D-Animation-Bridging-Dimensions-for-Impactful-Storytelling...
Ad

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