Site Map  Search

OOA Home OOD content UML Corrections book Code object Exercise Solutions oriented Resources tutorial Miscellany textbook

Alice's Restaurant

Analysis

Entities and attributes

Bill
amount requested: money, amount tendered: money, when paid: time and date

Booking
date: date, start time: time, requested duration: duration, booker name: text, covers: integer

Chef
name: text, contact number: phone number

Customer
name: text, address: text

Dish
number: text, name: text, description: text, price: money

Ingredient
name: text, quantity used: real, units: enum {gram, ml, cup, each}

Inventory

Meal Order
time taken: time

Menu
date of use: date

Menu Section
course: enum {none, starter, main, desert}

Party
covers: integer

Recipe
name: text, extra preparation time: integer, instructions: text

Repertoire

Restaurant
numbered dishes: boolean, normal opening time: time, normal closing time: time, maximum people: integer

Serving
quantity: integer, preference: text

Shift
start time: time, end time: time

Sitting
name: text, typical meal duration: integer, normal opening time: time, normal closing time: time

Sommelier
name: text, contact number: phone number

Stock Item
total quantity: real, units: enum {gram, ml, cup, each}

Table
ID: text, nominal covers: integer, ¿smoking: boolean?

Waiter
name: text, contact number: phone number

Relationships

 

 

 

State machines