0% completed
Let's design a hotel management system.
A Hotel Management System is a software built to handle all online hotel activities easily and safely. This System will give the hotel management power and flexibility to manage the entire system from a single online portal. The system allows the manager to keep track of all the available rooms in the system as well as to book rooms and generate bills.

System Requirements
We'll focus on the following set of requirements while designing the Hotel Management System:
-
The system should support the booking of different room types like standard, deluxe, family suite, etc.
-
Guests should be able to search the room inventory and book any available room.
-
The system should be able to retrieve information, such as who booked a particular room, or what rooms were booked by a specific customer.
-
The system should allow customers to cancel their booking - and provide them with a full refund if the cancelation occurs before 24 hours of the check-in date.
-
The system should be able to send notifications whenever the booking is nearing the check-in or check-out date.
-
The system should maintain a room housekeeping log to keep track of all housekeeping tasks.
-
Any customer should be able to add room services and food items.
-
Customers can ask for different amenities.
-
The customers should be able to pay their bills through credit card, check or cash.
Use case diagram
Here are the main Actors in our system:
- Guest: All guests can search the available rooms, as well as make a booking.
- Receptionist: Mainly responsible for adding and modifying rooms, creating room bookings, check-in, and check-out customers.
- System: Mainly responsible for sending notifications for room booking, cancellation, etc.
- Manager: Mainly responsible for adding new workers.
- Housekeeper: To add/modify housekeeping record of rooms.
- Server: To add/modify room service record of rooms.
Here are the top use cases of the Hotel Management System:
- Add/Remove/Edit room: To add, remove, or modify a room in the system.
- Search room: To search for rooms by type and availability.
- Register or cancel an account: To add a new member or cancel the membership of an existing member.
- Book room: To book a room.
- Check-in: To let the guest check-in for their booking.
- Check-out: To track the end of the booking and the return of the room keys.
- Add room charge: To add a room service charge to the customer's bill.
- Update housekeeping log: To add or update the housekeeping entry of a room.
Class diagram
Here are the main classes of our Hotel Management System:
-
Hotel and HotelLocation: Our system will support multiple locations of a hotel.
-
Room: The basic building block of the system. Every room will be uniquely identified by the room number. Each Room will have attributes like Room Style, Booking Price, etc.
-
Account: We will have different types of accounts in the system: one will be a guest to search and book rooms, another will be a receptionist. Housekeeping will keep track of the housekeeping records of a room, and a Server will handle room service.
-
RoomBooking: This class will be responsible for managing bookings for a room.
-
Notification: Will take care of sending notifications to guests.
-
RoomHouseKeeping: To keep track of all housekeeping records for rooms.
-
RoomCharge: Encapsulates the details about different types of room services that guests have requested.
-
Invoice: Contains different invoice-items for every charge against the room.
-
RoomKey: Each room can be assigned an electronic key card. Keys will have a barcode and will be uniquely identified by a key-ID.

Activity diagrams
Make a room booking: Any guest or receptionist can perform this activity. Here are the set of steps to book a room:
Check in: Guest will check in for their booking. The Receptionist can also perform this activity. Here are the steps:
Cancel a booking: Guest can cancel their booking. Receptionist can perform this activity. Here are the different steps of this activity:
Code
Here is the high-level definition for the classes described above.
Enums, data types, and constants: Here are the required enums, data types, and constants:
Account, Person, Guest, Receptionist, and Server: These classes represent the different people that interact with our system:
Hotel and HotelLocation: These classes represent the top-level classes of the system:
Room, RoomKey, and RoomHouseKeeping: To encapsulate a room, room key, and housekeeping:
RoomBooking and RoomCharge: To encapsulate a booking and different charges against a booking:
.....
.....
.....
Table of Contents
Contents are not accessible
Contents are not accessible
Contents are not accessible
Contents are not accessible
Contents are not accessible