Design v1 for Gilded Rose Inn
- Install Python 2.7+, I am using Python3
- Terminal
Different classes have been created:
- class Room in room.py
- derived class InUseRoom in room.py
- class Squad in squad.py
- class Gnome in gnome.py
- class Customer in customer.py
- class Reservation in reservation.py
- class Solution in *main.py All classes barring the Solution class, are important individial components of the system. All rooms have a current situation, either Available, Occupied, Not Clean or Cleaning Up. Only the rooms that are available can be booked. If other types of rooms need to be booked at a later date, cleaning information needs to be obtained.
Simply download the files in a directory. From Terminal go to the directory and run python main.py
- Would have Designed mysql database
- Would have Create database gildedRose
- Create tables for the classes (Basic design)
- Table Room
- Table InUseRoom (special type of room which is not vacant, will have more columns)
- Table Customer
- Table Gnome
- Table Squad
- Table Reservation
- Table Bookings
- Table Accounts
- All the tables would have current data stored and updated, each time there is a successful reservation.
- Would have written more methods in all classes and tested each one of them.
- Would have written unit tests in Python and tested individual components thoroughly.
- Would have taken user input from terminal or command-line
- While booking or reserving, in case a room that is occupied is required at a future date, the cleaning squad's next availability and the time they will finish cleaning is obtained. If it is before te requested check in date, that room would be bookable.
- Would have designed a front page for interfacing