air gourmet case study
DESCRIPTION
my lecturer powerpoint about air gourmet studyTRANSCRIPT
8 April 2023 rpl ganjil 2005/rd5 2
Use-Case Diagram
Use-case model for making a reservation
8 April 2023 rpl ganjil 2005/rd5 3
Scenario: Making a Reservation
8 April 2023 rpl ganjil 2005/rd5 4
Use-Case Diagram
Use-case for returning and scanning a postcard
8 April 2023 rpl ganjil 2005/rd5 5
Scenario: Postcards
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.
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.
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
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
8 April 2023 rpl ganjil 2005/rd5 10
Second Iteration of Class DiagramCause of our problemsFlight
should have been a candidate class
8 April 2023 rpl ganjil 2005/rd5 11
Dynamic Model (state
diagram)
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
8 April 2023 rpl ganjil 2005/rd5 13
Step 1. Interaction DiagramsExtended scenario for making a reservation
8 April 2023 rpl ganjil 2005/rd5 14
Step 1. Sequence
Diagram for making a
reservation
8 April 2023 rpl ganjil 2005/rd5 15
Step 1. Collaboration diagram for sending and returning a postcard
8 April 2023 rpl ganjil 2005/rd5 16
Step 2. Detailed
Class Diagram
(C++ version)
8 April 2023 rpl ganjil 2005/rd5 17
Step 2. Detailed
Class Diagram
(C++ version)
8 April 2023 rpl ganjil 2005/rd5 18
Step 2. Detailed
Class Diagram
(Java version)
8 April 2023 rpl ganjil 2005/rd5 19
Step 2. Detailed
Class Diagram
(Java version)
8 April 2023 rpl ganjil 2005/rd5 20
Step 3. Client–Object
Relations (C++)
8 April 2023 rpl ganjil 2005/rd5 21
Step 3. Client–Object
Relations (Java)
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)