Page 64 - DCAP308_OBJECT_ORIENTED_ANALYSIS_AND_DESIGN
P. 64

Object Oriented Analysis and Design




                    Notes          Although the structure of the model does not show it, the owner of the frequent flyer account
                                   must be the same as the passenger. We directly associate TripReservation with
                                   FrequentFlyerAccount and Customer, because a customer can make a reservation and specify a
                                   frequent flyer account before a ticket is even issued. Multiple payments may be made for a trip,
                                   such as two credit-card charges. Payment may also be made by cash or check.
                                   Figure 5.8 describes the FlightOperations package. An airport serves many cities, and a city may
                                   have multiple airports. Airlines operate flights between airports. A flight description refers to
                                   the published description of air travel between two airports. In contrast, a flight refers to the
                                   actual travel made by an airplane on a particular date. The frequency indicates the days of the
                                   week for which the flight description applies. The start and stop effectivity dates bracket the
                                   time period for which the published flight description is in effect. The actual origin, destination,
                                   departure time, and duration of a flight can vary because of weather and equipment problems.
                                                Figure 5.8: An Object  Model for the FlightOperations  Package





























                                   Source:  http://www.pearsonhighered.com/assets/hip/us/hip_us_pearsonhighered/samplechapter/
                                   0131238299.pdf
                                   Figure 5.9 presents a simple model of the AircraftInformation package. Each aircraft model has
                                   a manufacturer, model number, and specific numbering for seats. The seat type may be first
                                   class, business, or coach. Each individual aircraft has a registration number and refers to an
                                   aircraft model.
                                               Figure 5.9: An  Object  Model for the AircraftInformation  Package














                                   Source: http://www.pearsonhighered.com/assets/hip/us/hip_us_pearsonhighered/samplechapter/
                                   0131238299.pdf



          58                                LOVELY PROFESSIONAL UNIVERSITY
   59   60   61   62   63   64   65   66   67   68   69