SlideShare a Scribd company logo
7
Systems Analysis and Design in a
Changing World, Fifth Edition
7
Learning Objectives
 Understand the models and processes of defining
object-oriented requirements
 Develop use case diagrams and activity diagrams
 Develop system sequence diagrams
 Develop state machine diagrams to model object
behavior
 Explain how UML diagrams work together to define
functional requirements for the object-oriented
approach
Systems Analysis and Design in a Changing World, 5th Edition 2
7
Overview
 The objective of requirements definition is
understanding – understanding the users’ needs, the
business processes, and the systems to support
business processes
 Understand and define requirements for a new
system using object-oriented analysis models and
techniques
 Line between object-oriented analysis and object-
oriented design is somewhat fuzzy ‫غامض‬
 Iterative approach to development
 Models built in analysis are refined during design
Systems Analysis and Design in a Changing World, 5th Edition 3
7
Object-Oriented Requirements
 Object-oriented modeling notation is Unified Modeling
Language (UML 2.0)
 UML was accepted by Object Management Group
(OMG) as standard modeling technique
 Purpose of Object Management Group
 Promote theory and practice of object-oriented
technology for development of distributed systems
 Provide common architectural framework for OO
Systems Analysis and Design in a Changing World, 5th Edition 4
7
Object-Oriented Requirements
(continued)
 Object-oriented system requirements are specified
and documented through process of building models
 Modeling process starts with identification of use
cases and problem domain classes (things in users’
work environment)
 Business events trigger elementary business
processes (EBP) that new system must address as
use cases
 Use cases define functional requirements
Systems Analysis and Design in a Changing World, 5th Edition 5
7
Object-Oriented Requirements Models
 Use case model – a collection of models to capture
system requirements
 Use case diagram – identify actors and their roles and
how the actor roles utilize the system
 Systems sequence diagrams (SSDs) – define inputs and
outputs and sequence of interactions between user and
system for a use case
 Activity Diagram – Used to document workflow of
business processes within a use case
 Domain model – describes the classes of objects and
their states
 State machine diagrams – describe states of each object
Systems Analysis and Design in a Changing World, 5th Edition 6
7
Requirements Models—Traditional vs
OO
Systems Analysis and Design in a Changing World, 5th Edition 7
Figure 7-1
7
The System Activities—
A Use Case/Scenario View
 Use case analysis used to identify and define all
business processes that system must support
 Use case – an activity a system carried out, usually in
response to a user request
 Actor
 Role played by user
 Outside automation boundary
Systems Analysis and Design in a Changing World, 5th Edition 8
7
Techniques for Identifying Use Cases
(Review from Chapter 5)
 Identify user goals
 Each goal at the elementary business process (EBP)
level is a use case
 EBP – task performed by one user in one place and in
response to business event that adds measurable
business value, and leaves system and data in
consistent state
 Event decomposition technique (event table)
 CRUD analysis technique (create, read/report,
update, delete) to ensure coverage
Systems Analysis and Design in a Changing World, 5th Edition 9
7
Use Case Diagram
 Graphical UML diagram that summarizes information
about actors and use cases
 Simple diagram shows overview of functional
requirements
 Can have multiple use case diagrams
 By subsystem
 By actor
Systems Analysis and Design in a Changing World, 5th Edition 10
7
Simple Use Case with an Actor
Systems Analysis and Design in a Changing World, 5th Edition 11
Figure 7-2
7
Use Case Diagram with Automation
Boundary and Alternate Actor Notation
Systems Analysis and Design in a Changing World, 5th Edition 12
Figure 7-3
7
All Use Cases Involving Customer as
Actor
Systems Analysis and Design in a Changing World, 5th Edition 13
Figure 7-4
7
Use Cases of RMO Order Entry
Subsystem
Systems Analysis and Design in a Changing World, 5th Edition 14
Figure 7-5 (partial figure)
7
15
Use Case of Customer Support System
7
Use Case of Customer Support System
Order Entry
Subsystem
Order
Fulfillment
Subsystem
Customer
Maintenance
Subsystem
Catalog
Maintenance
Subsystem
Customer
Clerk
Merchandising
Order Clerk
Shipping
Clerk
Management
7
<<Includes>> Relationship
 Documents situation in which one use case requires
the services of a common subroutine
 Another use case is developed for this common
subroutine
 A common use case can be reused by multiple use
cases
Systems Analysis and Design in a Changing World, 5th Edition 17
7
Example of Order-Entry Subsystem
with <<Includes>> Use Cases
Systems Analysis and Design in a Changing World, 5th Edition 18
Figure 7-6
7
Developing a Use Case Diagram
 Underlying conditions for describing use cases
 Based on automated system, e.g. users “touch” the
system
 Assume perfect technology condition
 Iterate through these two steps
 Identify actors as roles
 List goals, e.g. use cases, for each actor. A goal is a unit
of work.
 Finalize with a CRUD analysis to ensure completeness
Systems Analysis and Design in a Changing World, 5th Edition 19
7
7
Use Case Descriptions
 Use case description – a description of the processing
steps for a use case
 Actor – a person or thing that uses the system.
 Actors have contact with the system
 Scenario or Instance – a particular set of internal steps
that represent a unique path of the use case
 Three types of descriptions
 Brief description
 Intermediate description
 Fully developed description
Systems Analysis and Design in a Changing World, 5th Edition 21
7
Brief Description
Systems Analysis and Design in a Changing World, 5th Edition 22
Figure 5-13
7
Intermediate Description
Systems Analysis and Design in a Changing World, 5th Edition 23
Figure 5-14
7
Fully Developed Description
Systems Analysis and Design in a Changing World, 5th Edition 24
Figure 5-16
7
“Things” in the Problem Domain
 Define system requirements by understanding
system information that needs to be stored
 Store information about things in the problem domain
that people deal with when they do their work
Systems Analysis and Design in a Changing World, 5th Edition 25
7
Types of Things
Systems Analysis and Design in a Changing World, 5th Edition 26
Figure 5-18
7
The Domain Model Class Diagram
 Unified Modeling Language (UML) diagram
 Domain model class diagram
 Models things in the users’ work domain
 Used to define requirements for OO (very similar to
entities in ERD)
Systems Analysis and Design in a Changing World, 5th Edition 27
7
UML Class Symbol
Systems Analysis and Design in a Changing World, 5th Edition 28
Figure 5-30
7
Simple Domain Model Class Diagram
Systems Analysis and Design in a Changing World, 5th Edition 29
Figure 5-31
7
Simple Domain Model Class Diagram
(continued)
 No methods shown in domain model
 Domain classes are not software classes
 Very similar to ERD
 UML and domain model can be used in place of ERD
in traditional approach
Systems Analysis and Design in a Changing World, 5th Edition 30
7
Multiplicity of Associations
Systems Analysis and Design in a Changing World, 5th Edition 31
Figure 5-32
7
University Course Enrollment Domain
Model Class Diagram
Systems Analysis and Design in a Changing World, 5th Edition 32
Figure 5-33
7
Refined Model with Association Class
and Grade Attribute
Systems Analysis and Design in a Changing World, 5th Edition 33
Figure 5-34
7
More Complex Class Concepts
 Generalization/specialization hierarchies
 General superclasses to specialized subclasses
 Inheritance allows subclasses to share characteristics
of their superclasses
Systems Analysis and Design in a Changing World, 5th Edition 34
7
A Generalization/Specialization
Class Hierarchy for Motor Vehicles
Systems Analysis and Design in a Changing World, 5th Edition 35
Figure 5-35
7
A Generalization/Specialization
Class Hierarchy for RMO Orders
Systems Analysis and Design in a Changing World, 5th Edition 36
Figure 5-36
7
Systems
Analysis and
37
Example of Domain Model Class Diagram
7
Whole-Part Hierarchies
 Whole-part hierarchies – hierarchies that structure
classes by components
 Aggregation – whole-part relationships between and
object and its removable parts
 Parts can exist separately
 Like car and its tires
 Composition – whole-part relationships between and
object and its non-removable parts.
 Parts cannot exist separately
 Like Hand is composed of fingers and thumb
Systems Analysis and Design in a Changing World, 5th Edition 38
7
Whole-Part Aggregation
Relationships
Systems Analysis and Design in a Changing World, 5th Edition 39
Figure 5-37
7
RMO
Domain
Model
Class
Diagram
Systems Analysis and Design in a Changing World, 5th Edition 40
Figure 5-38
7
Activity Diagrams
 Used to document workflow of business process
activities for each use case or scenario
 Standard UML 2.0 diagram as seen in Chapter 4
 Can support any level of use case description; a
supplement to use case descriptions
 Helpful in developing system sequence diagrams
Systems Analysis and Design in a Changing World, 5th Edition 41
7
Activity Diagram— Telephone Order Scenario
Systems Analysis and Design in a Changing World, 5th Edition 42
Figure 7-8
7
Activity Diagram— Web Order Scenario
Systems Analysis and Design in a Changing World, 5th Edition 43
Figure 7-9
7
The System Sequence Diagram
 Interaction diagram – a communication diagram or a
sequence diagram
 System sequence diagram (SSD) is type of UML 2.0
interaction diagram
 Used to model input and output messaging
requirements for a use case or scenario
 Shows sequence of interactions as messages during
flow of activities
 System is shown as one object: a “black box”
Systems Analysis and Design in a Changing World, 5th Edition 44
7
SSD Notation
 Lifeline or object lifeline is a vertical line under object
or actor to show passage of time for object
 Message is labelled on arrows to show messages
sent to or received by actor or system
 Actor is role interacting with the system with
messages
 Object is the component that interacts with actors
and other objects
Systems Analysis and Design in a Changing World, 5th Edition 45
7
System Sequence Diagram (SSD)
Notation
Systems Analysis and Design in a Changing World, 5th Edition 46
Figure 7-10
7
SSD Lifelines
 Vertical line under object or actor
 Shows passage of time
 If vertical line dashed
 Creation and destruction of thing is not important for
scenario
 Long narrow rectangles
 Activation lifelines emphasize that object is active only
during part of scenario
Systems Analysis and Design in a Changing World, 5th Edition 47
7
SSD Messages
 Internal events identified by the flow of objects in a
scenario
 Requests from one actor or object to another to do
some action
 Invoke a particular method
Systems Analysis and Design in a Changing World, 5th Edition 48
7
Repeating Message
Systems Analysis and Design in a Changing World, 5th Edition 49
Figure 7-11
7
Developing a System Sequence
Diagram
 Begin with detailed description of use case from fully
developed form or activity diagram
 Identify input messages
 Describe message from external actor to system
using message notation
 Identify and add any special conditions on input
message, including iteration and true/false conditions
 Identify and add output return messages
Systems Analysis and Design in a Changing World, 5th Edition 50
7
Activity Diagram of the Telephone Order Scenario
Systems Analysis and Design in a Changing World, 5th Edition 51
Figure 7-12
7
Resulting SSD for the Telephone
Order Scenario
Systems Analysis and Design in a Changing World, 5th Edition 52
Figure 7-13
7
SSD of the Web Order Scenario for the Create New Order Use case
Systems Analysis and Design in a Changing World, 5th Edition 53
Figure 7-14
7
Identifying Object Behaviour—
The State Machine Diagram
 State machine diagram is UML 2.0 diagram that
models object states and transitions
 Complex problem domain classes can be modelled
 State of an object
 A condition that occurs during its life when it satisfies some
criterion, performs some action, or waits for an event
 Each state has unique name and is a semi permanent
condition or status
 Transition
 The movement of an object from one state to another state
Systems Analysis and Design in a Changing World, 5th Edition 54
7
Simple State Machine Diagram for a
Printer
Systems Analysis and Design in a Changing World, 5th Edition 55
Figure 7-15
7
State Machine Terminology
 Pseudo state – the starting point of a state machine,
indicated by a black dot
 Origin state – the original state of an object from which
the transition occurs
 Destination state – the state to which an object moves
after the completion of a transition
 Message event – the trigger for a transition, which causes
the object to leave the origin state
 Guard condition – a true/false test to see whether a
transition can fire
 Action expression – a description of the activities
performed as part of a transition
Systems Analysis and Design in a Changing World, 5th Edition 56
7
Composite States and Concurrency—
States within a State
Systems Analysis and Design in a Changing World, 5th Edition 57
Figure 7-16
7
Concurrent Paths for Printer in the On State
Systems Analysis and Design in a Changing World, 5th Edition 58
Figure 7-17
7
Rules for Developing State Machine Diagram
 Review domain class diagram, select important ones,
and list all state and exit conditions
 Begin building state machine diagram fragments for
each class
 Sequence fragments in correct order and review for
independent and concurrent paths
 Expand each transition with message event, guard-
condition, and action-expression
 Review and test each state machine diagram
Systems Analysis and Design in a Changing World, 5th Edition 59
7
State machine for Ticket Object
7
State machine for Lift
7
States and Exit Transitions for
OrderItem
Systems Analysis and Design in a Changing World, 5th Edition 62
Figure 7-18
7
Partial State Machine for OrderItem
Systems Analysis and Design in a Changing World, 5th Edition 63
Figure 7-19
7
Final State Machine for OrderItem
Systems Analysis and Design in a Changing World, 5th Edition 64
Figure 7-20
7
Order Domain Class for RMO—
States and Exit Transitions
Systems Analysis and Design in a Changing World, 5th Edition 65
Figure 7-21
7
First-Cut State Machine Diagram for Order
Systems Analysis and Design in a Changing World, 5th Edition 66
Figure 7-22
7
Second-Cut State Machine Diagram for Order
Systems Analysis and Design in a Changing World, 5th Edition 67
Figure 7-23
7
Integrating Object-Oriented Models
 Complete use case diagram is needed to understand
total scope of new system
 Domain model class diagrams should also be as
complete as possible for entire system
 With iterative approach, only construct use case
descriptions, activity diagrams, and system sequence
diagrams for use cases in iteration
 Development of a new diagram often helps refine and
correct previous diagrams
Systems Analysis and Design in a Changing World, 5th Edition 68
7
Relationships Between OO
Requirements Models
Systems Analysis and Design in a Changing World, 5th Edition 69
Figure 7-24
7
Summary
 Object-oriented approach has complete set of
diagrams that define system requirements
 Requirements specified using following models
 Domain model class diagram (Chapter 5)
 Use case diagrams (Chapters 7)
 Use case detailed models, either descriptive formats or
activity diagrams (Chapter 5 & 7)
 System sequence diagrams (Chapter 7)
 State machine diagrams (Chapter 7)
Systems Analysis and Design in a Changing World, 5th Edition 70

More Related Content

PPT
07 si(systems analysis and design )
PPT
05 si(systems analysis and design )
PPT
Chapter1
PPT
The Object-Oriented Approach to Requirements
PPT
PPT
06 si(systems analysis and design )
PPT
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
PPT
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
07 si(systems analysis and design )
05 si(systems analysis and design )
Chapter1
The Object-Oriented Approach to Requirements
06 si(systems analysis and design )
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt

Similar to Systems Analysis and Design in a Changing World, Fifth Edition_Chapter 7.ppt (20)

PPT
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
PPT
10 si(systems analysis and design )
PPT
Object Oriented Analysis and Design with UML2 part1
PPT
fdocuments.in_unit-2-ooad.ppt
PPT
itec315_lecture 9 about object oriented analysis and design
PDF
Workshop on Basics of Software Engineering (DFD, UML and Project Culture)
PDF
Systems Analysis and Design in a Changing World, Fourth Edition
PDF
Software Engineering - Ch8
PDF
System Modelling
PDF
Software Engineering Tools and Practices.pdf
PPTX
Object oriented methodologies
PDF
Requirements engineering process: Feasibility studies, requirements elicitati...
PPTX
PPT
SE chapters 6-7
PPT
Slides chapters 6-7
PPTX
OOSAD-Object Oriented Systems Analysis and Design - Chapter05.pptx
PDF
Object-Oriented Analysis and Design report
PPT
Lecture 12 requirements modeling - (system analysis)
PPT
11 si(systems analysis and design )
PPTX
Object oriented modeling and design
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.ppt
10 si(systems analysis and design )
Object Oriented Analysis and Design with UML2 part1
fdocuments.in_unit-2-ooad.ppt
itec315_lecture 9 about object oriented analysis and design
Workshop on Basics of Software Engineering (DFD, UML and Project Culture)
Systems Analysis and Design in a Changing World, Fourth Edition
Software Engineering - Ch8
System Modelling
Software Engineering Tools and Practices.pdf
Object oriented methodologies
Requirements engineering process: Feasibility studies, requirements elicitati...
SE chapters 6-7
Slides chapters 6-7
OOSAD-Object Oriented Systems Analysis and Design - Chapter05.pptx
Object-Oriented Analysis and Design report
Lecture 12 requirements modeling - (system analysis)
11 si(systems analysis and design )
Object oriented modeling and design
Ad

More from mnassar75g (7)

PPTX
Project management fundamentals PM_Auc_2015.pptx
PPT
Systems Analysis Use Case Modeling OOD_ch06.ppt
PPT
ACCIDENT & INJURY PREVENTION fy07_sh-16637-07_acc-injury-prev2.ppt
PPT
Systems Analysis and requirements gathering OOD_ch05.ppt
PPT
Systems Analysis phases and essentials OOD_ch04.ppt
PPTX
Systems analysis and design in a changing world 5E.pptx
PPT
System Analysis and Design in a changing world 5th edition
Project management fundamentals PM_Auc_2015.pptx
Systems Analysis Use Case Modeling OOD_ch06.ppt
ACCIDENT & INJURY PREVENTION fy07_sh-16637-07_acc-injury-prev2.ppt
Systems Analysis and requirements gathering OOD_ch05.ppt
Systems Analysis phases and essentials OOD_ch04.ppt
Systems analysis and design in a changing world 5E.pptx
System Analysis and Design in a changing world 5th edition
Ad

Recently uploaded (20)

PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Classroom Observation Tools for Teachers
PDF
RMMM.pdf make it easy to upload and study
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
GDM (1) (1).pptx small presentation for students
PDF
01-Introduction-to-Information-Management.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Lesson notes of climatology university.
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Institutional Correction lecture only . . .
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Pre independence Education in Inndia.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
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
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Classroom Observation Tools for Teachers
RMMM.pdf make it easy to upload and study
Pharmacology of Heart Failure /Pharmacotherapy of CHF
GDM (1) (1).pptx small presentation for students
01-Introduction-to-Information-Management.pdf
Microbial disease of the cardiovascular and lymphatic systems
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Lesson notes of climatology university.
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Institutional Correction lecture only . . .
O7-L3 Supply Chain Operations - ICLT Program
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Sports Quiz easy sports quiz sports quiz
Abdominal Access Techniques with Prof. Dr. R K Mishra
Renaissance Architecture: A Journey from Faith to Humanism
Pre independence Education in Inndia.pdf
Microbial diseases, their pathogenesis and prophylaxis
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Chapter 2 Heredity, Prenatal Development, and Birth.pdf

Systems Analysis and Design in a Changing World, Fifth Edition_Chapter 7.ppt

  • 1. 7 Systems Analysis and Design in a Changing World, Fifth Edition
  • 2. 7 Learning Objectives  Understand the models and processes of defining object-oriented requirements  Develop use case diagrams and activity diagrams  Develop system sequence diagrams  Develop state machine diagrams to model object behavior  Explain how UML diagrams work together to define functional requirements for the object-oriented approach Systems Analysis and Design in a Changing World, 5th Edition 2
  • 3. 7 Overview  The objective of requirements definition is understanding – understanding the users’ needs, the business processes, and the systems to support business processes  Understand and define requirements for a new system using object-oriented analysis models and techniques  Line between object-oriented analysis and object- oriented design is somewhat fuzzy ‫غامض‬  Iterative approach to development  Models built in analysis are refined during design Systems Analysis and Design in a Changing World, 5th Edition 3
  • 4. 7 Object-Oriented Requirements  Object-oriented modeling notation is Unified Modeling Language (UML 2.0)  UML was accepted by Object Management Group (OMG) as standard modeling technique  Purpose of Object Management Group  Promote theory and practice of object-oriented technology for development of distributed systems  Provide common architectural framework for OO Systems Analysis and Design in a Changing World, 5th Edition 4
  • 5. 7 Object-Oriented Requirements (continued)  Object-oriented system requirements are specified and documented through process of building models  Modeling process starts with identification of use cases and problem domain classes (things in users’ work environment)  Business events trigger elementary business processes (EBP) that new system must address as use cases  Use cases define functional requirements Systems Analysis and Design in a Changing World, 5th Edition 5
  • 6. 7 Object-Oriented Requirements Models  Use case model – a collection of models to capture system requirements  Use case diagram – identify actors and their roles and how the actor roles utilize the system  Systems sequence diagrams (SSDs) – define inputs and outputs and sequence of interactions between user and system for a use case  Activity Diagram – Used to document workflow of business processes within a use case  Domain model – describes the classes of objects and their states  State machine diagrams – describe states of each object Systems Analysis and Design in a Changing World, 5th Edition 6
  • 7. 7 Requirements Models—Traditional vs OO Systems Analysis and Design in a Changing World, 5th Edition 7 Figure 7-1
  • 8. 7 The System Activities— A Use Case/Scenario View  Use case analysis used to identify and define all business processes that system must support  Use case – an activity a system carried out, usually in response to a user request  Actor  Role played by user  Outside automation boundary Systems Analysis and Design in a Changing World, 5th Edition 8
  • 9. 7 Techniques for Identifying Use Cases (Review from Chapter 5)  Identify user goals  Each goal at the elementary business process (EBP) level is a use case  EBP – task performed by one user in one place and in response to business event that adds measurable business value, and leaves system and data in consistent state  Event decomposition technique (event table)  CRUD analysis technique (create, read/report, update, delete) to ensure coverage Systems Analysis and Design in a Changing World, 5th Edition 9
  • 10. 7 Use Case Diagram  Graphical UML diagram that summarizes information about actors and use cases  Simple diagram shows overview of functional requirements  Can have multiple use case diagrams  By subsystem  By actor Systems Analysis and Design in a Changing World, 5th Edition 10
  • 11. 7 Simple Use Case with an Actor Systems Analysis and Design in a Changing World, 5th Edition 11 Figure 7-2
  • 12. 7 Use Case Diagram with Automation Boundary and Alternate Actor Notation Systems Analysis and Design in a Changing World, 5th Edition 12 Figure 7-3
  • 13. 7 All Use Cases Involving Customer as Actor Systems Analysis and Design in a Changing World, 5th Edition 13 Figure 7-4
  • 14. 7 Use Cases of RMO Order Entry Subsystem Systems Analysis and Design in a Changing World, 5th Edition 14 Figure 7-5 (partial figure)
  • 15. 7 15 Use Case of Customer Support System
  • 16. 7 Use Case of Customer Support System Order Entry Subsystem Order Fulfillment Subsystem Customer Maintenance Subsystem Catalog Maintenance Subsystem Customer Clerk Merchandising Order Clerk Shipping Clerk Management
  • 17. 7 <<Includes>> Relationship  Documents situation in which one use case requires the services of a common subroutine  Another use case is developed for this common subroutine  A common use case can be reused by multiple use cases Systems Analysis and Design in a Changing World, 5th Edition 17
  • 18. 7 Example of Order-Entry Subsystem with <<Includes>> Use Cases Systems Analysis and Design in a Changing World, 5th Edition 18 Figure 7-6
  • 19. 7 Developing a Use Case Diagram  Underlying conditions for describing use cases  Based on automated system, e.g. users “touch” the system  Assume perfect technology condition  Iterate through these two steps  Identify actors as roles  List goals, e.g. use cases, for each actor. A goal is a unit of work.  Finalize with a CRUD analysis to ensure completeness Systems Analysis and Design in a Changing World, 5th Edition 19
  • 20. 7
  • 21. 7 Use Case Descriptions  Use case description – a description of the processing steps for a use case  Actor – a person or thing that uses the system.  Actors have contact with the system  Scenario or Instance – a particular set of internal steps that represent a unique path of the use case  Three types of descriptions  Brief description  Intermediate description  Fully developed description Systems Analysis and Design in a Changing World, 5th Edition 21
  • 22. 7 Brief Description Systems Analysis and Design in a Changing World, 5th Edition 22 Figure 5-13
  • 23. 7 Intermediate Description Systems Analysis and Design in a Changing World, 5th Edition 23 Figure 5-14
  • 24. 7 Fully Developed Description Systems Analysis and Design in a Changing World, 5th Edition 24 Figure 5-16
  • 25. 7 “Things” in the Problem Domain  Define system requirements by understanding system information that needs to be stored  Store information about things in the problem domain that people deal with when they do their work Systems Analysis and Design in a Changing World, 5th Edition 25
  • 26. 7 Types of Things Systems Analysis and Design in a Changing World, 5th Edition 26 Figure 5-18
  • 27. 7 The Domain Model Class Diagram  Unified Modeling Language (UML) diagram  Domain model class diagram  Models things in the users’ work domain  Used to define requirements for OO (very similar to entities in ERD) Systems Analysis and Design in a Changing World, 5th Edition 27
  • 28. 7 UML Class Symbol Systems Analysis and Design in a Changing World, 5th Edition 28 Figure 5-30
  • 29. 7 Simple Domain Model Class Diagram Systems Analysis and Design in a Changing World, 5th Edition 29 Figure 5-31
  • 30. 7 Simple Domain Model Class Diagram (continued)  No methods shown in domain model  Domain classes are not software classes  Very similar to ERD  UML and domain model can be used in place of ERD in traditional approach Systems Analysis and Design in a Changing World, 5th Edition 30
  • 31. 7 Multiplicity of Associations Systems Analysis and Design in a Changing World, 5th Edition 31 Figure 5-32
  • 32. 7 University Course Enrollment Domain Model Class Diagram Systems Analysis and Design in a Changing World, 5th Edition 32 Figure 5-33
  • 33. 7 Refined Model with Association Class and Grade Attribute Systems Analysis and Design in a Changing World, 5th Edition 33 Figure 5-34
  • 34. 7 More Complex Class Concepts  Generalization/specialization hierarchies  General superclasses to specialized subclasses  Inheritance allows subclasses to share characteristics of their superclasses Systems Analysis and Design in a Changing World, 5th Edition 34
  • 35. 7 A Generalization/Specialization Class Hierarchy for Motor Vehicles Systems Analysis and Design in a Changing World, 5th Edition 35 Figure 5-35
  • 36. 7 A Generalization/Specialization Class Hierarchy for RMO Orders Systems Analysis and Design in a Changing World, 5th Edition 36 Figure 5-36
  • 37. 7 Systems Analysis and 37 Example of Domain Model Class Diagram
  • 38. 7 Whole-Part Hierarchies  Whole-part hierarchies – hierarchies that structure classes by components  Aggregation – whole-part relationships between and object and its removable parts  Parts can exist separately  Like car and its tires  Composition – whole-part relationships between and object and its non-removable parts.  Parts cannot exist separately  Like Hand is composed of fingers and thumb Systems Analysis and Design in a Changing World, 5th Edition 38
  • 39. 7 Whole-Part Aggregation Relationships Systems Analysis and Design in a Changing World, 5th Edition 39 Figure 5-37
  • 40. 7 RMO Domain Model Class Diagram Systems Analysis and Design in a Changing World, 5th Edition 40 Figure 5-38
  • 41. 7 Activity Diagrams  Used to document workflow of business process activities for each use case or scenario  Standard UML 2.0 diagram as seen in Chapter 4  Can support any level of use case description; a supplement to use case descriptions  Helpful in developing system sequence diagrams Systems Analysis and Design in a Changing World, 5th Edition 41
  • 42. 7 Activity Diagram— Telephone Order Scenario Systems Analysis and Design in a Changing World, 5th Edition 42 Figure 7-8
  • 43. 7 Activity Diagram— Web Order Scenario Systems Analysis and Design in a Changing World, 5th Edition 43 Figure 7-9
  • 44. 7 The System Sequence Diagram  Interaction diagram – a communication diagram or a sequence diagram  System sequence diagram (SSD) is type of UML 2.0 interaction diagram  Used to model input and output messaging requirements for a use case or scenario  Shows sequence of interactions as messages during flow of activities  System is shown as one object: a “black box” Systems Analysis and Design in a Changing World, 5th Edition 44
  • 45. 7 SSD Notation  Lifeline or object lifeline is a vertical line under object or actor to show passage of time for object  Message is labelled on arrows to show messages sent to or received by actor or system  Actor is role interacting with the system with messages  Object is the component that interacts with actors and other objects Systems Analysis and Design in a Changing World, 5th Edition 45
  • 46. 7 System Sequence Diagram (SSD) Notation Systems Analysis and Design in a Changing World, 5th Edition 46 Figure 7-10
  • 47. 7 SSD Lifelines  Vertical line under object or actor  Shows passage of time  If vertical line dashed  Creation and destruction of thing is not important for scenario  Long narrow rectangles  Activation lifelines emphasize that object is active only during part of scenario Systems Analysis and Design in a Changing World, 5th Edition 47
  • 48. 7 SSD Messages  Internal events identified by the flow of objects in a scenario  Requests from one actor or object to another to do some action  Invoke a particular method Systems Analysis and Design in a Changing World, 5th Edition 48
  • 49. 7 Repeating Message Systems Analysis and Design in a Changing World, 5th Edition 49 Figure 7-11
  • 50. 7 Developing a System Sequence Diagram  Begin with detailed description of use case from fully developed form or activity diagram  Identify input messages  Describe message from external actor to system using message notation  Identify and add any special conditions on input message, including iteration and true/false conditions  Identify and add output return messages Systems Analysis and Design in a Changing World, 5th Edition 50
  • 51. 7 Activity Diagram of the Telephone Order Scenario Systems Analysis and Design in a Changing World, 5th Edition 51 Figure 7-12
  • 52. 7 Resulting SSD for the Telephone Order Scenario Systems Analysis and Design in a Changing World, 5th Edition 52 Figure 7-13
  • 53. 7 SSD of the Web Order Scenario for the Create New Order Use case Systems Analysis and Design in a Changing World, 5th Edition 53 Figure 7-14
  • 54. 7 Identifying Object Behaviour— The State Machine Diagram  State machine diagram is UML 2.0 diagram that models object states and transitions  Complex problem domain classes can be modelled  State of an object  A condition that occurs during its life when it satisfies some criterion, performs some action, or waits for an event  Each state has unique name and is a semi permanent condition or status  Transition  The movement of an object from one state to another state Systems Analysis and Design in a Changing World, 5th Edition 54
  • 55. 7 Simple State Machine Diagram for a Printer Systems Analysis and Design in a Changing World, 5th Edition 55 Figure 7-15
  • 56. 7 State Machine Terminology  Pseudo state – the starting point of a state machine, indicated by a black dot  Origin state – the original state of an object from which the transition occurs  Destination state – the state to which an object moves after the completion of a transition  Message event – the trigger for a transition, which causes the object to leave the origin state  Guard condition – a true/false test to see whether a transition can fire  Action expression – a description of the activities performed as part of a transition Systems Analysis and Design in a Changing World, 5th Edition 56
  • 57. 7 Composite States and Concurrency— States within a State Systems Analysis and Design in a Changing World, 5th Edition 57 Figure 7-16
  • 58. 7 Concurrent Paths for Printer in the On State Systems Analysis and Design in a Changing World, 5th Edition 58 Figure 7-17
  • 59. 7 Rules for Developing State Machine Diagram  Review domain class diagram, select important ones, and list all state and exit conditions  Begin building state machine diagram fragments for each class  Sequence fragments in correct order and review for independent and concurrent paths  Expand each transition with message event, guard- condition, and action-expression  Review and test each state machine diagram Systems Analysis and Design in a Changing World, 5th Edition 59
  • 60. 7 State machine for Ticket Object
  • 62. 7 States and Exit Transitions for OrderItem Systems Analysis and Design in a Changing World, 5th Edition 62 Figure 7-18
  • 63. 7 Partial State Machine for OrderItem Systems Analysis and Design in a Changing World, 5th Edition 63 Figure 7-19
  • 64. 7 Final State Machine for OrderItem Systems Analysis and Design in a Changing World, 5th Edition 64 Figure 7-20
  • 65. 7 Order Domain Class for RMO— States and Exit Transitions Systems Analysis and Design in a Changing World, 5th Edition 65 Figure 7-21
  • 66. 7 First-Cut State Machine Diagram for Order Systems Analysis and Design in a Changing World, 5th Edition 66 Figure 7-22
  • 67. 7 Second-Cut State Machine Diagram for Order Systems Analysis and Design in a Changing World, 5th Edition 67 Figure 7-23
  • 68. 7 Integrating Object-Oriented Models  Complete use case diagram is needed to understand total scope of new system  Domain model class diagrams should also be as complete as possible for entire system  With iterative approach, only construct use case descriptions, activity diagrams, and system sequence diagrams for use cases in iteration  Development of a new diagram often helps refine and correct previous diagrams Systems Analysis and Design in a Changing World, 5th Edition 68
  • 69. 7 Relationships Between OO Requirements Models Systems Analysis and Design in a Changing World, 5th Edition 69 Figure 7-24
  • 70. 7 Summary  Object-oriented approach has complete set of diagrams that define system requirements  Requirements specified using following models  Domain model class diagram (Chapter 5)  Use case diagrams (Chapters 7)  Use case detailed models, either descriptive formats or activity diagrams (Chapter 5 & 7)  System sequence diagrams (Chapter 7)  State machine diagrams (Chapter 7) Systems Analysis and Design in a Changing World, 5th Edition 70