SlideShare a Scribd company logo
2
Object-Oriented Analysis and Design with the Unified Process
(i) Detailed Object-Oriented
Requirements Definitions
System requirements captured with OO models
“Divide and conquer” strategy toward complexity
Two subsets of OO modeling approach
Use case driven extending four specific models
◘Use case diagrams, use case descriptions, activity
diagrams, system sequence diagrams
Object driven extending statechart diagram
3
Object-Oriented Analysis and Design with the Unified Process
Figure 6-1
Requirements Diagrams With UML Models
4
Object-Oriented Analysis and Design with the Unified Process
Detailed Object-Oriented
Requirements Definitions
(continued)
Use case diagram: table of contents for business events
System sequence diagrams (SSDs)
Define and order sequence of inputs and outputs
Information flows referred to as messages
Class diagrams
Identify real-world “things”
Determine the structure of the programming classes
Statechart diagram describes collection of object states
5
Object-Oriented Analysis and Design with the Unified Process
(ii) System Processes—A Use
Case/Scenario View
Define use cases into two tiers:
Overview level derived from:
◘Event table and use case diagrams
Detailed level derived from combination of:
◘Use case description
◘Activity diagram
◘Sequence diagram
6
Object-Oriented Analysis and Design with the Unified Process
Use Cases and Actors
Source
Person or thing initiating the business event
Must be external to the system
Actor
Person or thing that touches the system
Lies outside of automation boundary
Identifying actors at the right level of detail
Assume actors (even non-human types) have hands
Use case is a goal that the actor wants to achieve
7
Object-Oriented Analysis and Design with the Unified Process
The Use Case Diagram
Notation for use case diagrams
Simple stick figure represents an actor
Actor’s hands indicate direct system access
Use case itself symbolized by an oval
Connecting lines match actors to use cases
Actors may also be other system interfaces
May be represented with stick figure or rectangle
8
Object-Oriented Analysis and Design with the Unified Process
Figure 6-2
A Simple Use Case with an Actor
9
Object-Oriented Analysis and Design with the Unified Process
Automation Boundary and
Organization
Expand use case diagrams with other actors and use
cases
Relationship line: allows each actor to interact with
each use case
Automation boundary
Line drawn around the entire set of use cases
Defines interface between actors and computer system
10
Object-Oriented Analysis and Design with the Unified Process
Figure 6-3
A Use Case Diagram of the Order-Entry Subsystem for RMO,
Showing a System Boundary
11
Object-Oriented Analysis and Design with the Unified Process
Figure 6-4
A Use Case Diagram of the Customer Support System (by Subsystem)
12
Object-Oriented Analysis and Design with the Unified Process
« Includes » Relationships
«includes» or «uses» relationship
Use case calling services of common subroutine
Common subroutine itself becomes additional use case
Examples: “Validate customer account” and “Look
Up Item Availability”
Notation
Relationship denoted by connecting line with arrow
Direction of the arrow indicates major/minor cases
13
Object-Oriented Analysis and Design with the Unified Process
Figure 6-6
An Example of the Order-entry Subsystem With «Includes» Use Cases
14
Object-Oriented Analysis and Design with the Unified Process
Developing a Use Case
Diagram
Two ways to identify additional use cases
Divide one large use case into two
Define another use case based on a common subroutine
Distinguish between temporal and state events
Iterative process translates business events to use cases
[1] Identify the actors and roles for each use case
[2] Extract system response to business events
Data of system stabilizes after completion of the goal
15
Object-Oriented Analysis and Design with the Unified Process
Use Case Detailed Descriptions
Use cases have internal complexity
Sequence of steps to execute business process
Several variations may exist within single use case
◘Valid variation known as scenario
Example: “Create new order” varies from phone to
Internet order
Work with variety of diagrams and descriptions
for each use case
16
Object-Oriented Analysis and Design with the Unified Process
Use Case Detailed Descriptions
(continued)
Use case descriptions written at (3) levels of detail
Brief description
◘Summary statement conjoined to activity diagram
Intermediate description
◘Expands brief description with internal flow of activities
Fully Developed Description
◘Expands intermediate description for richer view
17
Object-Oriented Analysis and Design with the Unified Process
Figure 6-7
Brief Description of Create New Order Use Case
18
Object-Oriented Analysis and Design with the Unified Process
Figure 6-8
Intermediate Description of Telephone Order Scenario for Create
New Order Use Case
19
Object-Oriented Analysis and Design with the Unified Process
Use Case Detailed Descriptions
(continued)
Fully developed use case description
Superset of intermediate and brief descriptions
Consists of eleven compartments
User, actor, stakeholder, EBP, and conditions
identified
Activity Diagram Description
Document the workflows of business processes
Document flow of activities for use case scenarios
Form basis of system sequence diagrams (SSDs)
20
Object-Oriented Analysis and Design with the Unified Process
Figure 6-10
Fully Developed Description of Telephone Order Scenario for
Create New Order Use Case
21
Object-Oriented Analysis and Design with the Unified Process
Figure 6-12
Activity Diagram of the Telephone Order Scenario
22
Object-Oriented Analysis and Design with the Unified Process
(iii) Identifying Inputs and
Outputs—the System Sequence
Diagram
System sequence diagram (SSD)
Describes flow of information
Identifies interaction between actors and system
Message oriented
23
Object-Oriented Analysis and Design with the Unified Process
SSD Notation
Actor “interacts” with the system via input/output
SSDs use object notation
Box (rectangle) refers to individual object
Name of the object underlined
Messages sent/received by objects, not classes
Lifeline
Extension of object or actor for duration of the SSD
Indicates sequence of the messages sent/received
24
Object-Oriented Analysis and Design with the Unified Process
Figure 6-14
Sample System Sequence Diagram
25
Object-Oriented Analysis and Design with the Unified Process
SSD Notation (continued)
Message syntax can take several forms
Depends on send/return direction
Message semantics: actions (like commands)
invoked on destination object
Complete message notation:*[true/false condition]
return-value := message-name (parameter-list)
26
Object-Oriented Analysis and Design with the Unified Process
Figure 6-15
Repeating Message (A) Detailed Notation (B) Alternate Notation
27
Object-Oriented Analysis and Design with the Unified Process
Developing a System Sequence
Diagram
Begin with detailed description of use case
Fully developed form
Activity diagrams
(4) step process for turning activity diagram into SSD
[1] Identify the input messages
[2] Describe messages from external actor to system
[3] Identify/apply special conditions to input messages
[4] Identify and add the output return messages
28
Object-Oriented Analysis and Design with the Unified Process
Figure 6-16
A Simplified Diagram of the Telephone Order Scenario
29
Object-Oriented Analysis and Design with the Unified Process
Developing a System Sequence
Diagram (continued)
Names of messages reflect services performed
Important principle for identifying data parameters
Base the list on the class diagram
Attributes from the classes listed as parameters
Iteratively define input/output parameters around
workflows
Objective: discovery and understanding
30
Object-Oriented Analysis and Design with the Unified Process
Figure 6-17
An SSD of the Simplified Telephone Order Scenario for the Create New
Order Use Case
31
Object-Oriented Analysis and Design with the Unified Process
(iv) Identifying the Object
BehaviorStatechart Diagram
A state is an abstraction of the values and links of an
object.
UML notation for state- a rounded box Containing an
optional state name, list the state name in boldface, center
the name near the top of the box, capitalize the fist letter.
A state in a statechart similar to status condition
Spans many business events
Developed for complex problem domain classes
32
Object-Oriented Analysis and Design with the Unified Process
Figure 6-19
Simple Statechart for a Printer
Statechart diagram Composed of ovals representing status of
object and Arrows represent transitions
33
Object-Oriented Analysis and Design with the Unified Process
Identifying the Object
Behaviorthe Statechart
Diagram (continued)
Guidelines to help identify states
Check naming convention for status conditions
Simple states reflect simple conditions such as “On”
Complex states labeled with verb phrases
◘Example: “Being shipped”
Active states usually not labeled with nouns
Describe only states of being of the object itself
Status conditions reported to management/customers
◘Example: “Shipped”
34
Object-Oriented Analysis and Design with the Unified Process
Nested States And
Concurrency
Concurrency: condition of being in more than one
state at a time
Two modes of representation
Use synchronization bars and concurrent paths
Nest low-level states inside higher-level states
Higher-level states also called composite states
Complex structure of sets of states and transitions
Represent a higher level of abstraction
35
Object-Oriented Analysis and Design with the Unified Process
Figure 6-20
Sample Composite States for the Printer Object
36
Object-Oriented Analysis and Design with the Unified Process
Figure 6-21
Concurrent Paths for the Printer in the On State
37
Object-Oriented Analysis and Design with the Unified Process
Rules for Developing
Statecharts
[1] Select the classes that will require statecharts
[2] List all the status conditions for each group
[3] Specify transitions that cause object to leave
the identified state
[4] Sequence state-transition combinations in
correct order
38
Object-Oriented Analysis and Design with the Unified Process
Rules for Developing
Statecharts (continued)
[5] Identify concurrent paths.
[6] Look for additional transitions
[7] Expand each transition as appropriate
[8] Review and test each statechart
39
Object-Oriented Analysis and Design with the Unified Process
Developing RMO Statecharts
Review the domain class diagram
Select classes with status conditions that need to
be tracked
Candidates: Order, OrderItem, InventoryItem,
Shipment, Customer
Choose Order and OrderItem
Simplicity
Location in the class hierarchy
40
Object-Oriented Analysis and Design with the Unified Process
Developing The Order Item
State Chart
Identify possible status conditions of interest
“Ready to be shipped”
“On back order”
“Shipped”
Continue developing statechart according to eight rules
41
Object-Oriented Analysis and Design with the Unified Process
Figure 6-22
States and Exit Transitions for Orderitem
42
Object-Oriented Analysis and Design with the Unified Process
Figure 6-24
Final Statechart for Orderitem
43
Object-Oriented Analysis and Design with the Unified Process
Developing the Order State
Chart
States mirror the life cycle of an order
Application of rules leads to greater complexity
Concurrent states
New transitions
Benefits of developing a statechart for an object
Captures and clarifies business rules
Gain true understanding of system requirements
44
Object-Oriented Analysis and Design with the Unified Process
Figure 6-25
States and Exit Transitions for Order
45
Object-Oriented Analysis and Design with the Unified Process
Figure 6-27
Second-cut Statechart for Order
46
Object-Oriented Analysis and Design with the Unified Process
(v) Integrating Object-Oriented
Models
Primary (or source) models
Use case diagram
Problem domain class diagram
CRUD(Create, Read, Update, Delete) analysis
validates model completeness
Construction of one model depends on another
Models capturing processes of new system
Use case diagram and models to lower left
Models capturing information about classes
Class diagrams and dependencies
47
Object-Oriented Analysis and Design with the Unified Process
Figure 6-28
Relationships among OO Requirements Models
48
Object-Oriented Analysis and Design with the Unified Process
Summary
OOA family of models documents users’ needs and
defines system requirements
Use case detailed models (descriptive or activity)
Sequence diagrams (SSDs)
Domain model class diagrams
Statechart diagrams
49
Object-Oriented Analysis and Design with the Unified Process
Summary (continued)
Use case: single system function responding to an
event
Actors: human users or system interfaces that initiate
system response
System function decomposed into workflows
SSDs, domain models, statecharts emulate routines
and object interaction
Software engineering terms signal transition into
design phase

More Related Content

Similar to Module-2 PPT.ppt

CS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT ICS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT I
pkaviya
 
Analysis modeling in software engineering
Analysis modeling in software engineeringAnalysis modeling in software engineering
Analysis modeling in software engineering
MuhammadTalha436
 
Object Oriented Analysis and Design with UML2 part1
Object Oriented Analysis and Design with UML2 part1Object Oriented Analysis and Design with UML2 part1
Object Oriented Analysis and Design with UML2 part1
Haitham Raik
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
Inocentshuja Ahmad
 
Ch7-Software Engineering 9
Ch7-Software Engineering 9Ch7-Software Engineering 9
Ch7-Software Engineering 9Ian Sommerville
 
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.pptUNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
VGaneshKarthikeyan
 
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.pptUNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
VGaneshKarthikeyan
 
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.pptUNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
VGaneshKarthikeyan
 
Introducing Uml And Development Process
Introducing Uml And Development ProcessIntroducing Uml And Development Process
Introducing Uml And Development Process
Terry Cho
 
System Modelling.ppt
System Modelling.pptSystem Modelling.ppt
System Modelling.ppt
AnishNarayan4
 
unit 3 software requirement and analysis-1.ppt
unit 3 software requirement and analysis-1.pptunit 3 software requirement and analysis-1.ppt
unit 3 software requirement and analysis-1.ppt
SomnathMule5
 
uml.pptx
uml.pptxuml.pptx
uml.pptx
amanuel236786
 
Ch7
Ch7Ch7
Ch7
Ch7Ch7

Similar to Module-2 PPT.ppt (20)

Sadcw 6e chapter5
Sadcw 6e chapter5Sadcw 6e chapter5
Sadcw 6e chapter5
 
CS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT ICS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT I
 
Analysis modeling in software engineering
Analysis modeling in software engineeringAnalysis modeling in software engineering
Analysis modeling in software engineering
 
Ch08
Ch08Ch08
Ch08
 
Ch08
Ch08Ch08
Ch08
 
Object Oriented Analysis and Design with UML2 part1
Object Oriented Analysis and Design with UML2 part1Object Oriented Analysis and Design with UML2 part1
Object Oriented Analysis and Design with UML2 part1
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
Ch7-Software Engineering 9
Ch7-Software Engineering 9Ch7-Software Engineering 9
Ch7-Software Engineering 9
 
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.pptUNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
 
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.pptUNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
 
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.pptUNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
 
Introducing Uml And Development Process
Introducing Uml And Development ProcessIntroducing Uml And Development Process
Introducing Uml And Development Process
 
System Modelling.ppt
System Modelling.pptSystem Modelling.ppt
System Modelling.ppt
 
Final
FinalFinal
Final
 
unit 3 software requirement and analysis-1.ppt
unit 3 software requirement and analysis-1.pptunit 3 software requirement and analysis-1.ppt
unit 3 software requirement and analysis-1.ppt
 
Intro Uml
Intro UmlIntro Uml
Intro Uml
 
uml.pptx
uml.pptxuml.pptx
uml.pptx
 
Ch7
Ch7Ch7
Ch7
 
Ch7
Ch7Ch7
Ch7
 
Ch7
Ch7Ch7
Ch7
 

Recently uploaded

Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 

Recently uploaded (20)

Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 

Module-2 PPT.ppt

  • 1.
  • 2. 2 Object-Oriented Analysis and Design with the Unified Process (i) Detailed Object-Oriented Requirements Definitions System requirements captured with OO models “Divide and conquer” strategy toward complexity Two subsets of OO modeling approach Use case driven extending four specific models ◘Use case diagrams, use case descriptions, activity diagrams, system sequence diagrams Object driven extending statechart diagram
  • 3. 3 Object-Oriented Analysis and Design with the Unified Process Figure 6-1 Requirements Diagrams With UML Models
  • 4. 4 Object-Oriented Analysis and Design with the Unified Process Detailed Object-Oriented Requirements Definitions (continued) Use case diagram: table of contents for business events System sequence diagrams (SSDs) Define and order sequence of inputs and outputs Information flows referred to as messages Class diagrams Identify real-world “things” Determine the structure of the programming classes Statechart diagram describes collection of object states
  • 5. 5 Object-Oriented Analysis and Design with the Unified Process (ii) System Processes—A Use Case/Scenario View Define use cases into two tiers: Overview level derived from: ◘Event table and use case diagrams Detailed level derived from combination of: ◘Use case description ◘Activity diagram ◘Sequence diagram
  • 6. 6 Object-Oriented Analysis and Design with the Unified Process Use Cases and Actors Source Person or thing initiating the business event Must be external to the system Actor Person or thing that touches the system Lies outside of automation boundary Identifying actors at the right level of detail Assume actors (even non-human types) have hands Use case is a goal that the actor wants to achieve
  • 7. 7 Object-Oriented Analysis and Design with the Unified Process The Use Case Diagram Notation for use case diagrams Simple stick figure represents an actor Actor’s hands indicate direct system access Use case itself symbolized by an oval Connecting lines match actors to use cases Actors may also be other system interfaces May be represented with stick figure or rectangle
  • 8. 8 Object-Oriented Analysis and Design with the Unified Process Figure 6-2 A Simple Use Case with an Actor
  • 9. 9 Object-Oriented Analysis and Design with the Unified Process Automation Boundary and Organization Expand use case diagrams with other actors and use cases Relationship line: allows each actor to interact with each use case Automation boundary Line drawn around the entire set of use cases Defines interface between actors and computer system
  • 10. 10 Object-Oriented Analysis and Design with the Unified Process Figure 6-3 A Use Case Diagram of the Order-Entry Subsystem for RMO, Showing a System Boundary
  • 11. 11 Object-Oriented Analysis and Design with the Unified Process Figure 6-4 A Use Case Diagram of the Customer Support System (by Subsystem)
  • 12. 12 Object-Oriented Analysis and Design with the Unified Process « Includes » Relationships «includes» or «uses» relationship Use case calling services of common subroutine Common subroutine itself becomes additional use case Examples: “Validate customer account” and “Look Up Item Availability” Notation Relationship denoted by connecting line with arrow Direction of the arrow indicates major/minor cases
  • 13. 13 Object-Oriented Analysis and Design with the Unified Process Figure 6-6 An Example of the Order-entry Subsystem With «Includes» Use Cases
  • 14. 14 Object-Oriented Analysis and Design with the Unified Process Developing a Use Case Diagram Two ways to identify additional use cases Divide one large use case into two Define another use case based on a common subroutine Distinguish between temporal and state events Iterative process translates business events to use cases [1] Identify the actors and roles for each use case [2] Extract system response to business events Data of system stabilizes after completion of the goal
  • 15. 15 Object-Oriented Analysis and Design with the Unified Process Use Case Detailed Descriptions Use cases have internal complexity Sequence of steps to execute business process Several variations may exist within single use case ◘Valid variation known as scenario Example: “Create new order” varies from phone to Internet order Work with variety of diagrams and descriptions for each use case
  • 16. 16 Object-Oriented Analysis and Design with the Unified Process Use Case Detailed Descriptions (continued) Use case descriptions written at (3) levels of detail Brief description ◘Summary statement conjoined to activity diagram Intermediate description ◘Expands brief description with internal flow of activities Fully Developed Description ◘Expands intermediate description for richer view
  • 17. 17 Object-Oriented Analysis and Design with the Unified Process Figure 6-7 Brief Description of Create New Order Use Case
  • 18. 18 Object-Oriented Analysis and Design with the Unified Process Figure 6-8 Intermediate Description of Telephone Order Scenario for Create New Order Use Case
  • 19. 19 Object-Oriented Analysis and Design with the Unified Process Use Case Detailed Descriptions (continued) Fully developed use case description Superset of intermediate and brief descriptions Consists of eleven compartments User, actor, stakeholder, EBP, and conditions identified Activity Diagram Description Document the workflows of business processes Document flow of activities for use case scenarios Form basis of system sequence diagrams (SSDs)
  • 20. 20 Object-Oriented Analysis and Design with the Unified Process Figure 6-10 Fully Developed Description of Telephone Order Scenario for Create New Order Use Case
  • 21. 21 Object-Oriented Analysis and Design with the Unified Process Figure 6-12 Activity Diagram of the Telephone Order Scenario
  • 22. 22 Object-Oriented Analysis and Design with the Unified Process (iii) Identifying Inputs and Outputs—the System Sequence Diagram System sequence diagram (SSD) Describes flow of information Identifies interaction between actors and system Message oriented
  • 23. 23 Object-Oriented Analysis and Design with the Unified Process SSD Notation Actor “interacts” with the system via input/output SSDs use object notation Box (rectangle) refers to individual object Name of the object underlined Messages sent/received by objects, not classes Lifeline Extension of object or actor for duration of the SSD Indicates sequence of the messages sent/received
  • 24. 24 Object-Oriented Analysis and Design with the Unified Process Figure 6-14 Sample System Sequence Diagram
  • 25. 25 Object-Oriented Analysis and Design with the Unified Process SSD Notation (continued) Message syntax can take several forms Depends on send/return direction Message semantics: actions (like commands) invoked on destination object Complete message notation:*[true/false condition] return-value := message-name (parameter-list)
  • 26. 26 Object-Oriented Analysis and Design with the Unified Process Figure 6-15 Repeating Message (A) Detailed Notation (B) Alternate Notation
  • 27. 27 Object-Oriented Analysis and Design with the Unified Process Developing a System Sequence Diagram Begin with detailed description of use case Fully developed form Activity diagrams (4) step process for turning activity diagram into SSD [1] Identify the input messages [2] Describe messages from external actor to system [3] Identify/apply special conditions to input messages [4] Identify and add the output return messages
  • 28. 28 Object-Oriented Analysis and Design with the Unified Process Figure 6-16 A Simplified Diagram of the Telephone Order Scenario
  • 29. 29 Object-Oriented Analysis and Design with the Unified Process Developing a System Sequence Diagram (continued) Names of messages reflect services performed Important principle for identifying data parameters Base the list on the class diagram Attributes from the classes listed as parameters Iteratively define input/output parameters around workflows Objective: discovery and understanding
  • 30. 30 Object-Oriented Analysis and Design with the Unified Process Figure 6-17 An SSD of the Simplified Telephone Order Scenario for the Create New Order Use Case
  • 31. 31 Object-Oriented Analysis and Design with the Unified Process (iv) Identifying the Object BehaviorStatechart Diagram A state is an abstraction of the values and links of an object. UML notation for state- a rounded box Containing an optional state name, list the state name in boldface, center the name near the top of the box, capitalize the fist letter. A state in a statechart similar to status condition Spans many business events Developed for complex problem domain classes
  • 32. 32 Object-Oriented Analysis and Design with the Unified Process Figure 6-19 Simple Statechart for a Printer Statechart diagram Composed of ovals representing status of object and Arrows represent transitions
  • 33. 33 Object-Oriented Analysis and Design with the Unified Process Identifying the Object Behaviorthe Statechart Diagram (continued) Guidelines to help identify states Check naming convention for status conditions Simple states reflect simple conditions such as “On” Complex states labeled with verb phrases ◘Example: “Being shipped” Active states usually not labeled with nouns Describe only states of being of the object itself Status conditions reported to management/customers ◘Example: “Shipped”
  • 34. 34 Object-Oriented Analysis and Design with the Unified Process Nested States And Concurrency Concurrency: condition of being in more than one state at a time Two modes of representation Use synchronization bars and concurrent paths Nest low-level states inside higher-level states Higher-level states also called composite states Complex structure of sets of states and transitions Represent a higher level of abstraction
  • 35. 35 Object-Oriented Analysis and Design with the Unified Process Figure 6-20 Sample Composite States for the Printer Object
  • 36. 36 Object-Oriented Analysis and Design with the Unified Process Figure 6-21 Concurrent Paths for the Printer in the On State
  • 37. 37 Object-Oriented Analysis and Design with the Unified Process Rules for Developing Statecharts [1] Select the classes that will require statecharts [2] List all the status conditions for each group [3] Specify transitions that cause object to leave the identified state [4] Sequence state-transition combinations in correct order
  • 38. 38 Object-Oriented Analysis and Design with the Unified Process Rules for Developing Statecharts (continued) [5] Identify concurrent paths. [6] Look for additional transitions [7] Expand each transition as appropriate [8] Review and test each statechart
  • 39. 39 Object-Oriented Analysis and Design with the Unified Process Developing RMO Statecharts Review the domain class diagram Select classes with status conditions that need to be tracked Candidates: Order, OrderItem, InventoryItem, Shipment, Customer Choose Order and OrderItem Simplicity Location in the class hierarchy
  • 40. 40 Object-Oriented Analysis and Design with the Unified Process Developing The Order Item State Chart Identify possible status conditions of interest “Ready to be shipped” “On back order” “Shipped” Continue developing statechart according to eight rules
  • 41. 41 Object-Oriented Analysis and Design with the Unified Process Figure 6-22 States and Exit Transitions for Orderitem
  • 42. 42 Object-Oriented Analysis and Design with the Unified Process Figure 6-24 Final Statechart for Orderitem
  • 43. 43 Object-Oriented Analysis and Design with the Unified Process Developing the Order State Chart States mirror the life cycle of an order Application of rules leads to greater complexity Concurrent states New transitions Benefits of developing a statechart for an object Captures and clarifies business rules Gain true understanding of system requirements
  • 44. 44 Object-Oriented Analysis and Design with the Unified Process Figure 6-25 States and Exit Transitions for Order
  • 45. 45 Object-Oriented Analysis and Design with the Unified Process Figure 6-27 Second-cut Statechart for Order
  • 46. 46 Object-Oriented Analysis and Design with the Unified Process (v) Integrating Object-Oriented Models Primary (or source) models Use case diagram Problem domain class diagram CRUD(Create, Read, Update, Delete) analysis validates model completeness Construction of one model depends on another Models capturing processes of new system Use case diagram and models to lower left Models capturing information about classes Class diagrams and dependencies
  • 47. 47 Object-Oriented Analysis and Design with the Unified Process Figure 6-28 Relationships among OO Requirements Models
  • 48. 48 Object-Oriented Analysis and Design with the Unified Process Summary OOA family of models documents users’ needs and defines system requirements Use case detailed models (descriptive or activity) Sequence diagrams (SSDs) Domain model class diagrams Statechart diagrams
  • 49. 49 Object-Oriented Analysis and Design with the Unified Process Summary (continued) Use case: single system function responding to an event Actors: human users or system interfaces that initiate system response System function decomposed into workflows SSDs, domain models, statecharts emulate routines and object interaction Software engineering terms signal transition into design phase