Object Oriented Design Peter McClone. Goals To be able to:  Identify how an object contributes to a problem solution  Identify what classes are needed.

Slides:



Advertisements
Similar presentations
How can you stay safe? At the bus stop At the bus stop Travelling on the bus Travelling on the bus How can you help the driver? How can you help the.
Advertisements

Try and arrive at the bus stop 5 minutes before your bus is due to arrive. Wait sensibly at the bus stop. Have your bus pass ready to show the driver.
Petr Novotny Wei Luo Li Yuan Michael Afolabi Xin Zhang.
Tour Guides Expertise. Chapter 4 Service Regulations for Tour Guides Part A Tour Guide Local Guide National guide Tour Leader.
At the Airport made by Zorya I.V..
Airport Procedures 101. #1 Arrive to the airport Many people take a taxi or get a friend to drop them off to avoid having to pay to park at the airport.
Airport Collaborative Decision Making (A-CDM) Saulo Da Silva
OS airlines Lähde
Click here to enter. Click a menu option to view more details Starters Main Courses Desserts Click on the coffee cup to return when Navigating For Vocabulary.
SSD Examples. Example 1 Actor ActionSystem Response 1.The Sales Person enters customer Details (name, address, phoneNo, customerId) 2. System saves customer.
BLUEPRINT OF RYANAIR.
The Psychology of Managing Queues
Air travel. Complete the words or phrases using words below. off control free card baggage in lounge luggage reclaim locker Boarding
Traveling around the world Zhejiang University of Finance & Economics Dong Fang College Toriano Cook.
 Before you go to the airport to pick up your student: ◦ check the airline website and/or call the airline and confirm that the flight is on time. ◦
Travelling by plane.
Intermediate English Conversation 3Ca Group Arrivals 黃雯暄 Nemo 林亭樺 Tina 林孟穎 August 楊婷薇 Angel 何棋達 Max.
ProModel Solutions Conference 2006 Delta Air Lines - ACS Planning & Performance Jennifer Meucci.
Airline Reservation System  Sabahat Luqman  Sitara Afzal.
Location Models For Airline Hubs Behaving as M/D/C Queues By: Shuxing Cheng Yi-Chieh Han Emile White.
Kinematic Equations made easy
Representing the results of user research: tasks and personas CS 5115 Fall 2013 September 16.
How do you travel from one country to another ?. We travel by plane.
Presented to: Orlando Florida Flying Community By: The FAASTeam - Dennis H. Whitley Date: December 9, 2010 Federal Aviation Administration FAASTeam Orlando.
Robert Tairas, Marjan Mernik, Jeff Gray Using Ontologies in the Domain Analysis of Domain-Specific Languages Workshop on Transformation and Weaving Ontologies.
Units of Chapter 2 Reference Frames and Displacement (2-1) Average Velocity (2-2) Instantaneous Velocity (2-3) Acceleration (2-4) Motion at Constant Acceleration.
Will you be calculating an instantaneous speed or an average speed of a car that passed through the lines? Justify. Using the formula, If you see a police.
 The tourism industry would cease to function without an efficient and effective transportation system  Transportaion is often “intermodal” with travelers.
Future Flight Design. Engineering design process: Step 1: Define The Problem Step 1: Define The Problem Step 2: Generate Ideas Step 2: Generate Ideas.
Jenifer Miller Simulation Modeling and Analysis Term Project December 2000 Simulation of Airplane Traffic at Bradley International Airport.
System Design Zhen Jiang West Chester University
Business Travel By Radik Darmawan. Getting to the airport John Cheng, a Hong Kong businessman, is on a business trip to meet customers in different cities.
Airline Vocabulary. Terminal Building Where passengers purchase tickets, check baggage, board and disembark planes.
Travel business on-line Learning Objectives To know the trend of E-business in the travel and tour industry. To know how travelers.
Stuck Flying Standby. Have you ever flown standby? What are some of the reasons that people would fly standby?
2.2 Acceleration. Biblical Reference But flee there quickly, because I cannot do anything until you reach it. Genesis 19:22 Flight of Lot.
Useful tips for a first-time air passenger
A girl rolls a dice in a board game. What is the probability of her landing on a number less than four? 3 out of 6 Half Even chance 50/50.
An Introduction to Programming Using Alice 2.2, Second Edition Chapter 7 Recursive Algorithms.
PROBLEM REQUIREMENT Students are required to gather and consolidate information about flight system. For example you may include the information on flight.
Problem #1 An airplane accelerates down a run- way at 3.20 m/s2 for 32.8 s until is finally lifts off the ground. Determine the distance traveled before.
UML DESIGN By: J Kamala Ramya Y Devika
IE102 A Process Outlook for Industrial Engineering
Airport Collaborative Decision Making (A-CDM) Saulo Da Silva
Dulles Airport Operations
Part1: Vocabulary preparation
Unit 8 Dialogues Detailed Study of Dialogues (对话) Exercises(练习)
Air New Zealand limited is a flight carrier airline or group of New Zealand airline, based in Auckland. The air new Zealand operates scheduled passenger.
Asiana Airlines reservations phone number
Air malta reservations phone number. Air Malta Contact on this number
Mesa Airlines Mesa Airlines are the regional airlines of the America And in Pheonix or Arizona Mesa Airlines serves more than 180 markets in the Western.
 Virgin Airlines is a kind of British Airways  Virgin Atlantic Airlines basically runs from United Kingdom  And the hub of the virgin atlantics is.
Air Algerie Air Algerie are the national airlines of the Algeria Head office of Air Algerie is in Immeuble El-Djazair. Air Algerie operates international.
 Air Algerie are the regional airlines of the Toronto, Canada  Head office of Porter Airlines is in Billy Bishop Toronto City Airport  Porter Airlines.
 Porter Airlines are the regional airlines of the Toronto, Canada  Head office of Porter Airlines is in Billy Bishop Toronto City Airport  Porter Airlines.
Airport Collaborative Decision Making (A-CDM) Saulo Da Silva
Air France Reservations Phone Number
Virgin Atlantics Manage My Booking
When I travel, my mother always drop me off at the airport
Swiss Air Reservations Phone Number for More Flight Services
Air Algerie Reservations Phone Number
Tap Air Portugal Reservation Phone Number
Unit 1 1D Motion.
Unit 1 Tips.
EMPIEZA TERMINA customs one-way ticket luggage airplane airline agent
ENGLISH IN USE 10 ON THE PLANE.
Tap Air Portugal Group Booking
Airline and Airport Procedures Baggage Handling and Control
Annual Traffic Growth Places SEA as the 13th Busiest U.S. Airport.
Presentation transcript:

Object Oriented Design Peter McClone

Goals To be able to:  Identify how an object contributes to a problem solution  Identify what classes are needed to solve a problem  Describe how objects work together to solve a problem  Group objects with similar attributes into one class  Distinguish between instances and classes  Draw the object diagram for a description given

Location: Mootown Airport Mootown is a small city in rural Wisconsin. The Mootown City Council has started discussions about building an airport. The Mootown City Council contracted with C. Thomas Wu Consulting Inc. to design a computer model of the airport. The City Council has a general description of the initial airport design from which we will base our design.

General Design The airport is small. It has one runway and two ticket counters. Each ticket counter controls two gates where passengers can board their flights. Each gate can only support one airplane at a time. Passengers enter the airport, go to a ticket counter to check-in, surrendering a ticket to a ticket counter employee and receiving back a boarding pass. After receiving a boarding pass, they go to a gate where they wait. When the airplane is ready, the passengers board their flight. When all of the passengers have boarded, the airplane taxis away from the gate to the runway, where it will take off to travel to Corntown airport in Iowa, Wheattown airport in Kansas, and/or Beettown airport in Minnesota. Ticket Counter #1 serves Gurnsey Express and Ticket Counter #2 serves Holstein Airways. Ticket Counter #1 has two Gates, Gate A and Gate B. Ticket Counter #2 controls Gate C and Gate D. The two Ticket Counters also have various employees working at them. Jennifer and Jim both work at Ticket Counter #1; Tom and Theresa work at Ticket Counter #2.

Pulling out the nouns: The airport is small. It has one runway and two ticket counters. Each ticket counter controls two gates where passengers can board their flights. Each gate can only support one airplane at a time. Passengers enter the airport, go to a ticket counter to check-in, surrendering a ticket to a ticket counter employee and receiving back a boarding pass. After receiving a boarding pass, they go to a gate where they wait. When the airplane is ready, the passengers board their flight. When all of the passengers have boarded, the airplane taxis away from the gate to the runway, where it will take off to travel to Corntown airport in Iowa, Wheattown airport in Kansas, and/or Beettown airport in Minnesota. Ticket Counter #1 serves Gurnsey Express and Ticket Counter #2 serves Holstein Airways. Ticket Counter #1 has two Gates, Gate A and Gate B. Ticket Counter #2 controls Gate C and Gate D. The two Ticket Counters also have various employees working at them. Jennifer and Jim both work at Ticket Counter #1; Tom and Theresa work at Ticket Counter #2.

Creating the model Our Nouns:  Runway, Ticket Counter, Gate, Passenger, Flight, Airplane, Employee, Ticket, Boarding Pass Each noun in this list will be a class in our model of the Mootown Airport. Each of these classes will have one or more instances (also called objects) in our model. Example:  Class: Employee  Instance: Tom, Theresa, Jim, Jennifer  Class: Ticket Counter  Ticket Counter #1, Ticket Counter #2

Leaving things out What are we missing?  Plants, carpet, air … etc. Only include what is necessary for our model. Careful consideration must be given to what is needed to obtain a solution to the given problem AND what may be needed to solve future, similar problems. There are situations where a lot of detail is needed

Data Members What sort of information is it important to associate with each class? Let’s go through each class

Runway length - number of meters direction - the compass heading the runway faces (north, south, etc.)

Ticket Couner airline - name of the airline the ticket counter serves employees - number of employees working at the counter gates - number of gates the ticket counter controls

Gate plane - the flight number of the plane currently outside, if there is one name – the name of the gate

Passenger name - the passenger's first and last name ticket – a ticket for his/her flight boardingPass - a boarding pass for his/her flight

Flight airline - name of the airline the flight belongs to number - flight number that identifies what flight it is destination - the flight's next stop departure - time the flight is scheduled to leave arrival - time the flight is scheduled to land at its destination

Airplane type - what kind of plane it is (Example: 747) airline - what airline it belongs to capacity - the number of people that the plane can hold

Employee name - first and last name IDNumber - identification number

Ticket planeNumber - what plane the ticket is for rowNumber - what on the plane the ticket is for seatNumber - what seat the ticket is for

Boarding Pass name - name of the passenger who holds it gate - gate the pass is for

General Design (2 nd ) The airport is small. It has one runway and two ticket counters. Each ticket counter controls two gates where passengers can board their flights. Each gate can only support one airplane at a time. Passengers enter the airport, go to a ticket counter to check-in, surrendering a ticket to a ticket counter employee and receiving back a boarding pass. After receiving a boarding pass, they go to a gate where they wait. When the airplane is ready, the passengers board their flight. When all of the passengers have boarded, the airplane taxis away from the gate to the runway, where it will take off to travel to Corntown airport in Iowa, Wheattown airport in Kansas, and/or Beettown airport in Minnesota. Ticket Counter #1 serves Gurnsey Express and Ticket Counter #2 serves Holstein Airways. Ticket Counter #1 has two Gates, Gate A and Gate B. Ticket Counter #2 controls Gate C and Gate D. The two Ticket Counters also have various employees working at them. Jennifer and Jim both work at Ticket Counter #1; Tom and Theresa work at Ticket Counter #2.

General Design (2 nd ) The airport is small. It has one runway and two ticket counters. Each ticket counter controls two gates where passengers can board their flights. Each gate can only support one airplane at a time. Passengers enter the airport, go to a ticket counter to check-in, surrendering a ticket to a ticket counter employee and receiving back a boarding pass. After receiving a boarding pass, they go to a gate where they wait. When the airplane is ready, the passengers board their flight. When all of the passengers have boarded, the airplane taxis away from the gate to the runway, where it will take off to travel to Corntown airport in Iowa, Wheattown airport in Kansas, and/or Beettown airport in Minnesota. Ticket Counter #1 serves Gurnsey Express and Ticket Counter #2 serves Holstein Airways. Ticket Counter #1 has two Gates, Gate A and Gate B. Ticket Counter #2 controls Gate C and Gate D. The two Ticket Counters also have various employees working at them. Jennifer and Jim both work at Ticket Counter #1; Tom and Theresa work at Ticket Counter #2.

What isn’t mentioned? Land - Airplane makes contact with the runway, slows down, and eventually stops Others? What action belongs to what class?

Runway Data members:  Length – number of meters  direction - the compass heading the runway faces (north, south, etc.) Methods:  None

Ticket Couner Data members:  airline - name of the airline the ticket counter serves  employees - number of employees working at the counter  gates - number of gates the ticket counter controls Methods:  None

Gate Data Members:  plane - the flight number of the plane currently outside, if there is one  name – the name of the gate Methods:  None

Passenger Data Members:  name - the passenger's first and last name  ticket – a ticket for his/her flight  boardingPass - a boarding pass for his/her flight Methods:  enterAirport - proceed through the door to the airport facility  wait - sit, stand, or pace until the correct boarding call is announced  surrenderTicket - give a ticket to an airport employee  goToGate - proceed to the gate indicated on a boarding pass  boardPlane - get on the plane

Flight Data Members:  airline - name of the airline the flight belongs to  number - flight number that identifies what flight it is  destination - the flight's next stop  departure - time the flight is scheduled to leave  arrival - time the flight is scheduled to land at its destination Methods:  None

Airplane Data Members:  type - what kind of plane it is (Example: 747)  airline - what airline it belongs to  capacity - the number of people that the plane can hold Methods:  taxi - plane moves from the gate to the start of the runway  takeOff - plane accelerates down the runway and lifts off the ground  land - plane makes contact with the runway and decelerates until it reaches the end of the runway

Employee Data Members:  name - first and last name  IDNumber - identification number Methods:  receiveTicket - obtain a ticket from a passenger and give a boarding pass

Ticket Data Members:  planeNumber - what plane the ticket is for  rowNumber - what on the plane the ticket is for  seatNumber - what seat the ticket is for Methods:  None

Boarding Pass Data Members:  name - name of the passenger who holds it  gate - gate the pass is for Methods:  None

Diagrams

Diagrams (cont.)

Summary Understanding the problem and designing a solution can save you much time during the implementation Modular and language independent design are part of the principles of OOP Questions?