23
6

6. 2Object-Oriented Analysis and Design with the Unified Process Objectives Explain how events can be used to identify use cases that define requirements

Embed Size (px)

Citation preview

Page 1: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

6

Page 2: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

2Object-Oriented Analysis and Design with the Unified Process

Objectives Explain how events can be used to identify use cases

that define requirements

Identify and analyze events and resulting use cases

Read, interpret, and create a Unified Modeling Language (UML) domain model class diagram and design class diagram

Page 3: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

3Object-Oriented Analysis and Design with the Unified Process

Events and Use Cases Event

occurrence at a specific time and place

Event decomposition: help identify use cases, first focusing on the events a system must respond to and then looking at how s system responds

Figure 1: Identifying use cases by focusing on users and their goals

Page 4: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

4Object-Oriented Analysis and Design with the Unified Process

Types of Events External Events

Occur outside the system

Usually caused by external agent

Page 5: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

5Object-Oriented Analysis and Design with the Unified Process

• Temporal Events

- Occurs when system reaches a point (deadline) in time

Types of Events (con’t)

Page 6: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

6Object-Oriented Analysis and Design with the Unified Process

• State Events

- When something happens inside the system that triggers the need for processing

Types of Events (con’t)

Page 7: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

7Object-Oriented Analysis and Design with the Unified Process

External events in the Rocky Mountain Outfitters: Customer support system

Page 8: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

8Object-Oriented Analysis and Design with the Unified Process

Temporal events in the Rocky Mountain Outfitters: Customer support system

Page 9: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

9Object-Oriented Analysis and Design with the Unified Process

Event Table

Page 10: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

10Object-Oriented Analysis and Design with the Unified Process

The Complete Event Table for the RMO Customer Support System

Page 11: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

11Object-Oriented Analysis and Design with the Unified Process

Types of Things

Page 12: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

12Object-Oriented Analysis and Design with the Unified Process

 Associations among Things

Analyst document entity associations ( relationships) Example: “Is placed by” and “works in”

Associations apply in two directions Customer places an order An order is placed by a customer

Multiplicity: the number of associations One to one or one to many 

Page 13: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

13Object-Oriented Analysis and Design with the Unified Process

Associations Naturally Occur between Things

Page 14: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

14Object-Oriented Analysis and Design with the Unified Process

Multiplicity of Relationships

Page 15: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

15Object-Oriented Analysis and Design with the Unified Process

Attributes of Things

Page 16: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

16Object-Oriented Analysis and Design with the Unified Process

The UML Class Diagram

The UML class symbol with three sections for name, attributes and methods

Page 17: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

17Object-Oriented Analysis and Design with the Unified Process

The UML Class Diagram (con’t)

Multiplicity of associations

Page 18: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

18Object-Oriented Analysis and Design with the Unified Process

A Generalization/Specialization Hierarchy Notation for Motor Vehicles

The UML Class Diagram (con’t)

Page 19: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

19Object-Oriented Analysis and Design with the Unified Process

The UML Class Diagram (con’t)

Whole-part (Aggregation) Associations Between a Computer and Its Parts

Page 20: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

20Object-Oriented Analysis and Design with the Unified Process

University Course Enrollment Design Class Diagram (With Methods)

The UML Class Diagram (con’t)

Page 21: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

21Object-Oriented Analysis and Design with the Unified Process

The UML Class Diagram (con’t)

Expanded course enrollment design class diagram (with methods)

Page 22: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

22Object-Oriented Analysis and Design with the Unified Process

Summary Requirements discipline defines business functions

Key concepts: use cases and problem domain classes

Use cases derive from elementary business processes (EBPs)

Three event types: external, temporal, and state

Attributes: specific information about a thing

Actual software classes include behaviors (methods) and attributes

UML class diagrams show classes, attributes, methods, and associations

Page 23: 6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements

23Object-Oriented Analysis and Design with the Unified Process

Summary (continued) Design class diagram models software classes  

Generalization/specialization hierarchies allow inheritance from a superclass to a subclass

Whole-part hierarchies allow a collection of objects to be associated as a whole and its parts