Presentation is loading. Please wait.

Presentation is loading. Please wait.

Examples. A Hotel Management System Superb Hotels Group plc. There are many hotels in the Superb Hotels group. Each hotel has a distinct name eg Superb.

Similar presentations


Presentation on theme: "Examples. A Hotel Management System Superb Hotels Group plc. There are many hotels in the Superb Hotels group. Each hotel has a distinct name eg Superb."— Presentation transcript:

1 Examples

2 A Hotel Management System Superb Hotels Group plc. There are many hotels in the Superb Hotels group. Each hotel has a distinct name eg Superb Kensington, Superb Harrogate, Superb Cleckheaton. Each hotel handles its own room reservations, arrivals, departures and cancellations. Each hotel is built to a standard design and has 40 bedrooms and 5 function rooms. Every room (whether it be a bedroom or a function room) has a room number and may be currently occupied or unoccupied. All rooms can be booked by customers. A booking may involve a number of guests and more than one room but will be associated with exactly one customer's name. A function room may be occupied by a large number of guests. Each bedroom can accommodate 1 or 2 people. The tariff (charge) per night for a bedroom depends on its type - there is a single bedroom rate and a double bedroom rate. The hotel reception staff will sometimes need to check on : the number of beds in a specified bed whether a bedroom or function room is currently occupied The hotel keeps a number of Overhead Projectors (OHPs) for use in function rooms. It is sometimes necessary to place an OHP in a function room or to remove it. The hotel will wish to keep track of whether a function room currently has an OHP in it or not.

3 Use Case Diagram Actors & Use Cases A Customer –Make a booking (check the booking details to work out the invoice total) –Cancel a booking (but must still pay if it’s a late cancellation) A Guest –Arrive and check in (check the booking to make sure the guest is booked in) –Depart and check out ( and pay for any damages) A Manager –Check if a room is currently occupied –Check whether a function room has an OHP located in it –Install an OHP –Remove the OHP from a room

4 As check booking details is confirming different information, depending on whether the customer is paying (i.e how much) or whether a guest is checking in (i.e is this guest on the booking) this suggest that 2 separate use cases may be better.

5 >

6 Classes Hotel Hotel Name Operation1, Operation2, Handle Arrival, Handle Departure, Handle Reservation, Handle Cancellation, check No: of Beds, Check If Occupied Tariff Functional Room Capacity, Has OHP Check Fore OHP, Remove OHP, install OHP Room Room No:, is Occupied Check If Occupied Bedrooms No: of Beds Check No: of Beds, vacate, occupy Guest Guest Name OHP OHP No: Booking Start Date, No: of Days Customer Customer Name Party

7 All rooms can be booked by customers. A function room may be occupied by a large number of guests. 1..* 0..* 1 1..* 1 1 A booking may involve a number of guests and more than one room but will be associated with exactly one customer's name occupies 0..1 The tariff (charge) per night for a bedroom depends on its type - there is a single bedroom rate and a double bedroom rate. Each hotel is built to a standard design and has 40 bedrooms and 5 function rooms. Every room (whether it be a bedroom or a function room) has a room number and may be currently occupied or unoccupied There are many hotels in the Superb Hotels group. Each hotel has a distinct name eg Superb Kensington, Superb Harrogate, Superb Cleckheaton. Each hotel handles its own room reservations, arrivals, departures and cancellations The hotel keeps a number of Overhead Projectors (OHPs) for use in function rooms. It is sometimes necessary to place an OHP in a function room or to remove it. The hotel will wish to keep track of whether a function room currently has an OHP in it or not.

8 Happy Holiday Homes Happy Holiday Homes is an organization, which lets out holiday cottages to the general public. One of its general principles is to be as flexible as possible with its customers. An example of its flexibility is that it allows customers to book cottages for arbitrary durations, not simply multiples of one week. Some facts about the organization: 1.It owns no properties, but lets properties on behalf of their owners 2.Happy Holidays have a catalogue giving information about the properties. 3.It collects income from holiday lettings and passes on a 55% share to owners 4.Properties may be provisionally booked by phone until the arrival of a 10% deposit. 5.Deposits must arrive within 7 days of a provisional booking being made. 6.The balance must be paid 14 days before a let is taken up. 7.Some customers make block (multiple) bookings. 8.Completed booking information is stored (archived) for analysis purposes.

9

10

11

12

13

14

15 Library example

16

17

18

19

20

21 Student Record System

22 A student record system is used by an institution which offers a computer engineering (BCE), Electronics Engineering (EE) and Telecom Engineering (TE) program. Each program is offered over a period of four years and in each year of the program a number of subjects are offered. Each subject has a name, number and semester in which it offers. Each subject is assessed by examination (midterm & final term) and by some assignments/quizzes or a combination of the two. Each subject is led by a lecturer and may be supported by several other lecturers or TAs. Each lecturer/TA has name, employment number and department. We need to record the marks for each student and for any completed subjects whether they have been passed or not.

23 InstitutionStudentTeacherTA Offer coursesOffer SubjectsAssign subjectAssess assignment/QuizzesAssess ExaminationTeach SubjectRequest for CourseRequest for SubjectView ResultSupport Courses >

24 Classes Institution Course Year Module –Complete Module Lecturer Student Assessment –Assessment Component Exam Course Work –Marks

25 comprises 2..* Is offered on Structure 10..* Leads 1 0..*Supports * 1 result 0..* 1..* 1Is Award enrolled HasNowCompleted 1 0..* Is it perfect?

26 Roadway Transport Company

27 Roadway Transport Company rents the vehicle in three categories. Luxury Cars, Passenger Cars and Buses. Luxury cars and Buses can only be rented with drivers provided by the renting office but passenger cars can be taken without drivers. The rent of Luxury cars and Buses should be paid before taking them to the rent but it is optional for the passenger cars to pay the rent before taking them to for rent. Car and Bus owners can register their luxury, passenger cars and buses to the rent office. Each owner will be assigned a registration ID. Each customer will be assigned Renting ID. Only passenger cars can be taken for weekly and monthly rents. Customer can refresh the renting status through phone by telling his Renting ID.


Download ppt "Examples. A Hotel Management System Superb Hotels Group plc. There are many hotels in the Superb Hotels group. Each hotel has a distinct name eg Superb."

Similar presentations


Ads by Google