air gourmet case study

22
7 Februari 2022 rpl ganjil 2005/rd5 1 Case Study: Air Gourmet [email protected] © rplganjil2005

Upload: vincent-ong

Post on 01-Nov-2014

123 views

Category:

Documents


0 download

DESCRIPTION

my lecturer powerpoint about air gourmet study

TRANSCRIPT

Page 1: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 1

Case Study: Air Gourmet

[email protected]

© rplganjil2005

Page 2: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 2

Use-Case Diagram

Use-case model for making a reservation

Page 3: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 3

Scenario: Making a Reservation

Page 4: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 4

Use-Case Diagram

Use-case for returning and scanning a postcard

Page 5: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 5

Scenario: Postcards

Page 6: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 6

Class Modeling : Noun Extraction

Stage 1. Concise Problem DefinitionDefine product in single sentence

A computerized system is needed to provide information regarding the efficacy of a special meals program.

Page 7: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 7

Class Modeling: Noun Extraction

Stage 2. Informal Strategy Incorporate constraints, express result

in a single paragraph Reports are to be generated to document

the efficacy of the special meals program. The reports concern meals loaded on flights, flights boarded by passengers, names and addresses of passengers, meal quality, and low-sodium meals.

Page 8: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 8

Class Modeling: Noun Extraction

Stage 3. Formalize the Strategy Identify nouns in informal strategy. Use

nouns as candidate classes Nouns report, efficacy, program, percentage,

meal, flight, boarding, passenger, name, address, quality

efficacy, program, percentage, boarding, quality are abstract nouns — exclude (they may become attributes)

name, address are attributes of passenger Question: Should meal and flight be

classes?It is easier to add classes than to remove themCandidate classes: Report and Passenger

Page 9: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 9

First Iteration of Class Diagram)Problems with this

class diagram Data for reports

are needed on a per-flight basis

Each report has to access multiple flights

Each flight has multiple passengers

Six reports (not four) are needed

Page 10: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 10

Second Iteration of Class DiagramCause of our problemsFlight

should have been a candidate class

Page 11: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 11

Dynamic Model (state

diagram)

Page 12: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 12

Object-Oriented Design

OOD consists of four steps:1. Construct interaction diagrams for

each scenario2. Construct the detailed class diagram3. Design the product in terms of

clients of objects4. Proceed to the detailed design

Page 13: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 13

Step 1. Interaction DiagramsExtended scenario for making a reservation

Page 14: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 14

Step 1. Sequence

Diagram for making a

reservation

Page 15: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 15

Step 1. Collaboration diagram for sending and returning a postcard

Page 16: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 16

Step 2. Detailed

Class Diagram

(C++ version)

Page 17: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 17

Step 2. Detailed

Class Diagram

(C++ version)

Page 18: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 18

Step 2. Detailed

Class Diagram

(Java version)

Page 19: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 19

Step 2. Detailed

Class Diagram

(Java version)

Page 20: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 20

Step 3. Client–Object

Relations (C++)

Page 21: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 21

Step 3. Client–Object

Relations (Java)

Page 22: air gourmet case study

8 April 2023 rpl ganjil 2005/rd5 22

Step 4. Detailed Design

The detailed design can be found inAppendix H (for implementation in C++)Appendix I (for implementation in Java)