尊敬的 微信汇率:1円 ≈ 0.046166 元 支付宝汇率:1円 ≈ 0.046257元 [退出登录]
SlideShare a Scribd company logo
Hotel Management System 
Object oriented approach to UML design 
By, 
Nijith Jacob (2007A7PS076G) 
Karandikar Rajas Hemant (2007A7PS046G) 
Submitted in partial fulfilment of 
Object Oriented Analysis And Design course (SS G514) 
Under the guidance of 
J.V RAO 
11/23/2010
1 
Acknowledgements 
In the outset, we want to thank Prof. J.V. Rao for giving us this opportunity to familiarize practically with Object oriented system analysis and design through this project. His ample guidance and suggestions were invaluable in the successful completion of this project. Also, we thank BITS Pilani Goa Campus for giving us all the necessary resources and also including this course as an elective. Also we extend our gratitude to anyone who has directly or indirectly helped in this project.
2 
Contents 
Acknowledgements 1 
Contents 2 
Overview 3 
Use Case Diagram 4 
Class Diagrams 5 
Class Descriptions 7 
Object Diagram 11 
Sequence Diagrams 12 
Remarks 16 
References 17
3 
Overview 
This project is concerned with developing a flexible, open-ended design for hotel management information system that incorporates well-known design patterns and a lucid design style using UML diagrams. Our Hotel Management System consists of two users: 
1. Customer 
a. Individual Customer 
b. Company Customer 
2. Staff 
a. Manager 
b. Other Employees 
Customers can avail various services provided by the hotel like room reservation, restaurant, sauna, pool, casino etc. The system keeps a record of the customer details and previous visits of current and past customers so that privileges and points can be awarded based on their history. To keep the system history database to acceptable levels of data, excessive records are automatically purged at regular intervals. A Customer’s history consists of his/her previous visits, only one of which can be active (not completed) at any point in time. If no visits are active, then a new visit instance need to be created that can contain the various services that the customer need to avail during a new visit. If a visit instance is active, then any services availed are considered as part of that visit. Each visit is a composition of services that the customer uses. Any particular service usage consists of a single resource (e.g. Room No 110) that belongs to a particular service (e.g. Room Service). When a customer requests a resource, the system checks for that availability of the resource and adds that resource to the list of availed services during that visit. At the end of the visit, when all the service usages are finished, system automatically calculates the cost of the visit and also any points that need to be awarded based on this visit is computed as well. The customer has provision to redeem any in-house points that the customer has been awarded. 
Manager(s) is (are) concerned with the overall functioning of the system. He/she has the provision to add new services or resources for any particular service. The system keeps track of the expenditure incurred by the various services which can be viewed by the manager. The manager’s decision making can be assisted based on the various service’s usage, total expenditure, total income etc., all of which the system automatically keep track of.
4 
Use Case Diagram
5 
Class Diagrams
6 
Class Diagrams
7 
Class Descriptions Class Name Attribute/Method Description Customer name Customer/Company Name addr Customer/Company Address cust_class Bit Vector to determine whether a particular resource can be assigned to this customer calc_history_pts() Abstract method for calculating in-house points awarded based on history. Part of interface Awardable. notify() Notifies the point object contained in the customer to update the history points. Part of Observer interface Individual_cust dob Date Of Birth of the customer Company_cust manager Manager’s name of the company Point redeemed_pts Total points that the customer has used so far history_pts Total points that the customer has been awarded based on history awardee Awardable (Customer) object that implements the calc_history_pts() method part of Awardable interface redeem_pts(pts) Avail Points. Call with negative argument to award points. update_pts() Update the history points by calling the calc_history_pts() method implemented by the awardee History history_count Static attribute that determines the number of persistent records to be stored. prune_interval Interval in which excessive records are removed (greater than history_count) visits_no Total number of visits so far prev_expenditure Total expenditure by the customer for records that has been removed so far total_expenditure Total expenditure so far latest_visit The latest visit object part of the history pruner Timer class object that removes
8 
excessive record every prune_interval interval update_expenditure() Updates the total_expenditure based on all the visits so far attach(visit) Append the visit to the visit list detach(visit) Remove the visit object from the list notify() Notifies the customer object to update the points. Part of Observer interface action_performed() The method implemented as part of Action_Listener interface. This method is executed every prune_interval interval and removes excessive records Payable start_date Start Date for the billing period end_date End Date for the billing period cost Total cost for the period addition_cost Any additional cost charged irrespective of the billing period completion_status Indicate whether the visit/service is finished calc_cost() Abstract method that calculates the cost incurred notify() Abstract method that notifies any dependent object when status is set to completed. Part of Observer interface update_status() Abstract method that checks whether the status can be updated and updates the status if necessary add_cost(cost) Sums up the argument to additional_costs Visit no_services Total number of services availed during this visit calc_date_interval(service) Calculate the start and end dates for the visit based on the new service that was most recently added (passed as argument). update_date_interval() Calculate the start and end date based on start and end dates for all the services availed during the visit calc_cost() Total cost incurred in the visit notify() Notifies the history object to update its expenditure and notify the customer object if all the services have been
9 
completed update_status() Sets the completion_status if all the services have been completed attach_usage(usage) Attaches a new service usage to the list detach_usage(usage,penalty) Removes a service usage if it has not been yet completed and adds the penalty for cancellation Service_Usage usage_resource The resource been used update_status() Sets the completion status, updates the cost and call the notify() method notify() Notifies the visit object to update its expenditure and carry on the notification to upper levels. The resource been used is then freed. calc_cost() Calculate the total cost incurred for using the resource find_resource(subtype,value = NONE) Find a free resource for the customer. Subtype argement represent a particular type of resource that customer want. Value argument is used when a specific resource is required by the customer resource_cleanup() Free the reource Service name Name of the service. It matches the service name of all the resources contained in the service run_cost_calc_interval The interval in which the run cost is calculated by calling the action_performed() method part of Action_Listener interface total_run_cost Total run cost for the service so far expense_keeper Timer class for keeping the expense find_resource(class,subtype, value,start date,end date) Finds a free resource that can be assigned to the customer belonging to a particular class matching the subtype and value (if any) that does not interfere with the required start and end dates for usage. free_resource(resource) Removes the resource from usage_list
10 
add_resource(resource) Adds a new resource. remove_resource(id) Remove a resouce Resource id Unique ID service_name Name of the service that this resource Is part of value Specific value/name subtype The general category to which this reource belong cust_class The Class of customer to which this resource can be assigned calc_cost(duration) Abstract method to calculate the cost for the resource based on duration clean_up() Resets any resource specific attributes. Called when a resource is freed after usage resource_idle_cost(duration) Expense incurred by the hotel when resource Is idle for a duration of time resource_run_cost(duration) Expense incurred by the hotel when resource Is used for a duration of time Service_Manager add_service(service) Adds a new service rem_service(service) Remove an existing service find_service(name) Finds a service based on name calc_service_cur_usage(name) Calculate the percentage current usage for a particular service calc_total_run_cost() Total run cost incurred by all the services in the system
11 
Object Diagram
12 
Sequence Diagrams
13 
Sequence Diagrams
14 
Sequence Diagrams
15 
Sequence Diagrams
16 
Remarks 
1. The project design can be considered more than a hotel management system design. The design can be extended as a design pattern for a general scenario where customers interact with a system for resources and the system keep track of customer history in the form of persistent storage and award points/privileges based on that history. 
For e.g. A Muti-user operating system environment where resources can be in the form of shared resources like printer, storage, CPU time etc. and users are awarded points for their greater use of the system. 
2. The system is flexible in the sense that resources or services can be added / removed easily. The system can easily adapt to any future advancements easily. 
3. Observer Pattern and Composite Pattern are two design patterns that were incorporated into the design
17 
References 
[1] Kim Hamilton and Russell Miles, Learning UML 2.0, O’Reilly, April 2006 
[2] Dan Pilone and Neil Pitman, UML 2.0 In a Nutshell, O’Reilly, June 2005

More Related Content

What's hot

Hotel management system
Hotel management systemHotel management system
Hotel management system
Vipul Kumar
 
Hotel Reservation System Project
Hotel Reservation System ProjectHotel Reservation System Project
Hotel Reservation System Project
raj_qn3
 
Online Hotel Management System
Online Hotel Management SystemOnline Hotel Management System
Online Hotel Management System
Abdullah Almasud
 
Software Requirement Specification Of Hotel Management System
Software Requirement Specification Of Hotel Management SystemSoftware Requirement Specification Of Hotel Management System
Software Requirement Specification Of Hotel Management System
Uttam Singh Chaudhary
 
Hotel management system
Hotel management systemHotel management system
Hotel management system
Roni Roy
 
Hotel reservation system
Hotel reservation systemHotel reservation system
Hotel reservation system
Manoj Malshan
 
Stock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured Chart
Stock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured ChartStock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured Chart
Stock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured Chart
grandhiprasuna
 
Harsh Mathur Restaurant Billing System project ppt
Harsh Mathur Restaurant Billing System project pptHarsh Mathur Restaurant Billing System project ppt
Harsh Mathur Restaurant Billing System project ppt
Harsh Mathur
 
Online School Management System ,School ERP , School Managemnt system , Admin...
Online School Management System ,School ERP , School Managemnt system , Admin...Online School Management System ,School ERP , School Managemnt system , Admin...
Online School Management System ,School ERP , School Managemnt system , Admin...
rajatullas
 
Documentation Hotel Management System
Documentation Hotel Management SystemDocumentation Hotel Management System
Documentation Hotel Management System
Salman Dayal
 
tour management system
tour management systemtour management system
tour management system
Khwaja Yunus Ali Medical University
 
Hostel management system ppt
Hostel management system pptHostel management system ppt
Hostel management system ppt
12345tusharverma
 
Hotel Management System SRS
Hotel Management System SRS Hotel Management System SRS
Hotel Management System SRS
Paras
 
Synopsis for Online Railway Railway Reservation System
Synopsis for Online Railway Railway Reservation SystemSynopsis for Online Railway Railway Reservation System
Synopsis for Online Railway Railway Reservation System
ZainabNoorGul
 
ONLINE HOTEL MANAGEMENT SYSTEM
ONLINE HOTEL MANAGEMENT SYSTEMONLINE HOTEL MANAGEMENT SYSTEM
ONLINE HOTEL MANAGEMENT SYSTEM
Abid Shaikh
 
Restaurant Project by Amit Mangukiya
Restaurant Project by Amit MangukiyaRestaurant Project by Amit Mangukiya
Restaurant Project by Amit Mangukiya
Amit Mangukiya
 
Course registration system dfd
Course registration system dfdCourse registration system dfd
Course registration system dfd
Utsav mistry
 
Restaurant management presentation
Restaurant management presentationRestaurant management presentation
Restaurant management presentation
joilrahat
 
Hotel management
Hotel managementHotel management
Hotel management
Shalahuddin Raj
 
Hotel management synopsis
Hotel management synopsisHotel management synopsis
Hotel management synopsis
Rahulraj Nirala
 

What's hot (20)

Hotel management system
Hotel management systemHotel management system
Hotel management system
 
Hotel Reservation System Project
Hotel Reservation System ProjectHotel Reservation System Project
Hotel Reservation System Project
 
Online Hotel Management System
Online Hotel Management SystemOnline Hotel Management System
Online Hotel Management System
 
Software Requirement Specification Of Hotel Management System
Software Requirement Specification Of Hotel Management SystemSoftware Requirement Specification Of Hotel Management System
Software Requirement Specification Of Hotel Management System
 
Hotel management system
Hotel management systemHotel management system
Hotel management system
 
Hotel reservation system
Hotel reservation systemHotel reservation system
Hotel reservation system
 
Stock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured Chart
Stock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured ChartStock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured Chart
Stock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured Chart
 
Harsh Mathur Restaurant Billing System project ppt
Harsh Mathur Restaurant Billing System project pptHarsh Mathur Restaurant Billing System project ppt
Harsh Mathur Restaurant Billing System project ppt
 
Online School Management System ,School ERP , School Managemnt system , Admin...
Online School Management System ,School ERP , School Managemnt system , Admin...Online School Management System ,School ERP , School Managemnt system , Admin...
Online School Management System ,School ERP , School Managemnt system , Admin...
 
Documentation Hotel Management System
Documentation Hotel Management SystemDocumentation Hotel Management System
Documentation Hotel Management System
 
tour management system
tour management systemtour management system
tour management system
 
Hostel management system ppt
Hostel management system pptHostel management system ppt
Hostel management system ppt
 
Hotel Management System SRS
Hotel Management System SRS Hotel Management System SRS
Hotel Management System SRS
 
Synopsis for Online Railway Railway Reservation System
Synopsis for Online Railway Railway Reservation SystemSynopsis for Online Railway Railway Reservation System
Synopsis for Online Railway Railway Reservation System
 
ONLINE HOTEL MANAGEMENT SYSTEM
ONLINE HOTEL MANAGEMENT SYSTEMONLINE HOTEL MANAGEMENT SYSTEM
ONLINE HOTEL MANAGEMENT SYSTEM
 
Restaurant Project by Amit Mangukiya
Restaurant Project by Amit MangukiyaRestaurant Project by Amit Mangukiya
Restaurant Project by Amit Mangukiya
 
Course registration system dfd
Course registration system dfdCourse registration system dfd
Course registration system dfd
 
Restaurant management presentation
Restaurant management presentationRestaurant management presentation
Restaurant management presentation
 
Hotel management
Hotel managementHotel management
Hotel management
 
Hotel management synopsis
Hotel management synopsisHotel management synopsis
Hotel management synopsis
 

Similar to Hotel Management System

Architectural Patterns - Interactive and Event Handling Patterns
Architectural Patterns  - Interactive and Event Handling PatternsArchitectural Patterns  - Interactive and Event Handling Patterns
Architectural Patterns - Interactive and Event Handling Patterns
assinha
 
Wcm overview
Wcm overviewWcm overview
Wcm overview
amit1858
 
Ip bus Akshay
Ip bus AkshayIp bus Akshay
Ip bus Akshay
AkshayKalapgar
 
217 scen overview_en_de
217 scen overview_en_de217 scen overview_en_de
217 scen overview_en_de
phogat1
 
Scaling Experimentation & Data Capture at Grab
Scaling Experimentation & Data Capture at GrabScaling Experimentation & Data Capture at Grab
Scaling Experimentation & Data Capture at Grab
Roman
 
Airline reservation system 1
Airline reservation system 1Airline reservation system 1
Airline reservation system 1
_faisalkhan
 
Webx 2010
Webx 2010Webx 2010
Webx 2010
steccami
 
Final
FinalFinal
Managing state in asp.net
Managing state in asp.netManaging state in asp.net
Managing state in asp.net
Sireesh K
 
Hybrid Cloud example for SlideShare
Hybrid Cloud example for SlideShareHybrid Cloud example for SlideShare
Hybrid Cloud example for SlideShare
Hewlett-Packard
 
Project Management Tools and Techniques
Project Management Tools and TechniquesProject Management Tools and Techniques
Project Management Tools and Techniques
Baker Khader Abdallah, PMP
 
Unit3_OOP-converted.pdf
Unit3_OOP-converted.pdfUnit3_OOP-converted.pdf
Unit3_OOP-converted.pdf
PowerfullBoy1
 
Use Case Modeling
Use Case ModelingUse Case Modeling
Use Case Modeling
Venkat Srinivasan
 
Day01 01 software requirement concepts
Day01 01 software requirement conceptsDay01 01 software requirement concepts
Day01 01 software requirement concepts
Namtướcbóngđêm Virut
 
05 a 01workflowarchitecture
05 a 01workflowarchitecture05 a 01workflowarchitecture
05 a 01workflowarchitecture
tflung
 
The Workforce Dimensions API (2).pdf
The Workforce Dimensions API (2).pdfThe Workforce Dimensions API (2).pdf
The Workforce Dimensions API (2).pdf
RaajRpb1
 
Design patterns - ICIN 2010
Design patterns - ICIN 2010Design patterns - ICIN 2010
Design patterns - ICIN 2010
steccami
 
Power point operations management i (1)
Power point operations management i (1)Power point operations management i (1)
Power point operations management i (1)
ocagnen
 
Intention Oriented Model Interaction
Intention Oriented Model InteractionIntention Oriented Model Interaction
Intention Oriented Model Interaction
Yasir Karam
 
Defining The System
Defining The SystemDefining The System
Defining The System
Sandeep Ganji
 

Similar to Hotel Management System (20)

Architectural Patterns - Interactive and Event Handling Patterns
Architectural Patterns  - Interactive and Event Handling PatternsArchitectural Patterns  - Interactive and Event Handling Patterns
Architectural Patterns - Interactive and Event Handling Patterns
 
Wcm overview
Wcm overviewWcm overview
Wcm overview
 
Ip bus Akshay
Ip bus AkshayIp bus Akshay
Ip bus Akshay
 
217 scen overview_en_de
217 scen overview_en_de217 scen overview_en_de
217 scen overview_en_de
 
Scaling Experimentation & Data Capture at Grab
Scaling Experimentation & Data Capture at GrabScaling Experimentation & Data Capture at Grab
Scaling Experimentation & Data Capture at Grab
 
Airline reservation system 1
Airline reservation system 1Airline reservation system 1
Airline reservation system 1
 
Webx 2010
Webx 2010Webx 2010
Webx 2010
 
Final
FinalFinal
Final
 
Managing state in asp.net
Managing state in asp.netManaging state in asp.net
Managing state in asp.net
 
Hybrid Cloud example for SlideShare
Hybrid Cloud example for SlideShareHybrid Cloud example for SlideShare
Hybrid Cloud example for SlideShare
 
Project Management Tools and Techniques
Project Management Tools and TechniquesProject Management Tools and Techniques
Project Management Tools and Techniques
 
Unit3_OOP-converted.pdf
Unit3_OOP-converted.pdfUnit3_OOP-converted.pdf
Unit3_OOP-converted.pdf
 
Use Case Modeling
Use Case ModelingUse Case Modeling
Use Case Modeling
 
Day01 01 software requirement concepts
Day01 01 software requirement conceptsDay01 01 software requirement concepts
Day01 01 software requirement concepts
 
05 a 01workflowarchitecture
05 a 01workflowarchitecture05 a 01workflowarchitecture
05 a 01workflowarchitecture
 
The Workforce Dimensions API (2).pdf
The Workforce Dimensions API (2).pdfThe Workforce Dimensions API (2).pdf
The Workforce Dimensions API (2).pdf
 
Design patterns - ICIN 2010
Design patterns - ICIN 2010Design patterns - ICIN 2010
Design patterns - ICIN 2010
 
Power point operations management i (1)
Power point operations management i (1)Power point operations management i (1)
Power point operations management i (1)
 
Intention Oriented Model Interaction
Intention Oriented Model InteractionIntention Oriented Model Interaction
Intention Oriented Model Interaction
 
Defining The System
Defining The SystemDefining The System
Defining The System
 

Recently uploaded

Independent Call Girls In Churchgate ( Mumbai ) 💯Call Us 🔝 9910780858 🔝💃Top C...
Independent Call Girls In Churchgate ( Mumbai ) 💯Call Us 🔝 9910780858 🔝💃Top C...Independent Call Girls In Churchgate ( Mumbai ) 💯Call Us 🔝 9910780858 🔝💃Top C...
Independent Call Girls In Churchgate ( Mumbai ) 💯Call Us 🔝 9910780858 🔝💃Top C...
pr971917
 
Call Girls Jaipur Aaradhya 8445551418 Independent Escort Service Jaipur
Call Girls Jaipur Aaradhya 8445551418 Independent Escort Service JaipurCall Girls Jaipur Aaradhya 8445551418 Independent Escort Service Jaipur
Call Girls Jaipur Aaradhya 8445551418 Independent Escort Service Jaipur
TanyaAhuja34 $S2
 
(Introduction to canva and canva strategies) CANVA PPT.pptx
(Introduction to canva and canva strategies) CANVA PPT.pptx(Introduction to canva and canva strategies) CANVA PPT.pptx
(Introduction to canva and canva strategies) CANVA PPT.pptx
KristeleJoyRaralio1
 
Pune Call Girls ♠ 9352988975 ♠ Beautiful Call Girls In Pune
Pune Call Girls  ♠ 9352988975 ♠ Beautiful Call Girls In PunePune Call Girls  ♠ 9352988975 ♠ Beautiful Call Girls In Pune
Pune Call Girls ♠ 9352988975 ♠ Beautiful Call Girls In Pune
meenusingh4354543
 
🔥Mumbai Call Girls Contact Number 🔝👉 9833363713 👈🔝High Calass Call Girl Mumbai
🔥Mumbai Call Girls Contact Number 🔝👉 9833363713 👈🔝High Calass Call Girl Mumbai🔥Mumbai Call Girls Contact Number 🔝👉 9833363713 👈🔝High Calass Call Girl Mumbai
🔥Mumbai Call Girls Contact Number 🔝👉 9833363713 👈🔝High Calass Call Girl Mumbai
Sifa Khan#i11
 
一比一原版美国加州大学戴维斯分校毕业证(ucdavis学位证)如何办理
一比一原版美国加州大学戴维斯分校毕业证(ucdavis学位证)如何办理一比一原版美国加州大学戴维斯分校毕业证(ucdavis学位证)如何办理
一比一原版美国加州大学戴维斯分校毕业证(ucdavis学位证)如何办理
twqryq79
 
Value based approach to heritae conservation -.docx
Value based approach to heritae conservation -.docxValue based approach to heritae conservation -.docx
Value based approach to heritae conservation -.docx
JIT KUMAR GUPTA
 
Call Girls sonal ☎️ 8445551418 ☎️ ( jaipur ) ...
Call Girls sonal ☎️ 8445551418 ☎️ ( jaipur ) ...Call Girls sonal ☎️ 8445551418 ☎️ ( jaipur ) ...
Call Girls sonal ☎️ 8445551418 ☎️ ( jaipur ) ...
shardda patel
 
AI Explanations as Two-Way Experiences, Led by Users
AI Explanations as Two-Way Experiences, Led by UsersAI Explanations as Two-Way Experiences, Led by Users
AI Explanations as Two-Way Experiences, Led by Users
Design for Context
 
Upcycling for Everyone project exhibition posters
Upcycling for Everyone project exhibition postersUpcycling for Everyone project exhibition posters
Upcycling for Everyone project exhibition posters
Kyungeun Sung
 
VIP Call Girls Jaipur Riddhi 8445551418 Independent Escort Service Jaipur
VIP Call Girls Jaipur Riddhi 8445551418 Independent Escort Service JaipurVIP Call Girls Jaipur Riddhi 8445551418 Independent Escort Service Jaipur
VIP Call Girls Jaipur Riddhi 8445551418 Independent Escort Service Jaipur
vipgirlschennai
 
一比一原版(brunel毕业证书)布鲁内尔大学毕业证如何办理
一比一原版(brunel毕业证书)布鲁内尔大学毕业证如何办理一比一原版(brunel毕业证书)布鲁内尔大学毕业证如何办理
一比一原版(brunel毕业证书)布鲁内尔大学毕业证如何办理
aprhf21y
 
World trade center in kerala proposal- AR. DEEKSHITH MAROLI 724519251008 REPORT
World trade center in kerala proposal- AR. DEEKSHITH MAROLI 724519251008 REPORTWorld trade center in kerala proposal- AR. DEEKSHITH MAROLI 724519251008 REPORT
World trade center in kerala proposal- AR. DEEKSHITH MAROLI 724519251008 REPORT
deekshithmaroli666
 
Call Girls In Jaipur {8445551418} ❤️VVIP JIYA Call Girl in Jaipur Rajasthan
Call Girls In Jaipur {8445551418} ❤️VVIP JIYA Call Girl in Jaipur RajasthanCall Girls In Jaipur {8445551418} ❤️VVIP JIYA Call Girl in Jaipur Rajasthan
Call Girls In Jaipur {8445551418} ❤️VVIP JIYA Call Girl in Jaipur Rajasthan
ishu38418
 
💕VASUDHA BAJAJ💕Premium Call Girls Jaipur ↘️8445551418↙️One Night Stand With L...
💕VASUDHA BAJAJ💕Premium Call Girls Jaipur ↘️8445551418↙️One Night Stand With L...💕VASUDHA BAJAJ💕Premium Call Girls Jaipur ↘️8445551418↙️One Night Stand With L...
💕VASUDHA BAJAJ💕Premium Call Girls Jaipur ↘️8445551418↙️One Night Stand With L...
radika pandey
 
Mallu Aunts Call Girls Jaipur { 8445551418 } ✔ PRIYA VERMA ✔ Get High Profile...
Mallu Aunts Call Girls Jaipur { 8445551418 } ✔ PRIYA VERMA ✔ Get High Profile...Mallu Aunts Call Girls Jaipur { 8445551418 } ✔ PRIYA VERMA ✔ Get High Profile...
Mallu Aunts Call Girls Jaipur { 8445551418 } ✔ PRIYA VERMA ✔ Get High Profile...
vs1343588
 
Call Girls jaipur ☎️ +91-8445551418 😍 jaipur Call Girl Beauty Girls @ Afforda...
Call Girls jaipur ☎️ +91-8445551418 😍 jaipur Call Girl Beauty Girls @ Afforda...Call Girls jaipur ☎️ +91-8445551418 😍 jaipur Call Girl Beauty Girls @ Afforda...
Call Girls jaipur ☎️ +91-8445551418 😍 jaipur Call Girl Beauty Girls @ Afforda...
VipTaniya Dubay
 
Call Girls in Kolkata (7426014248) call me [🔝Kolkata🔝] Escort In Kolkata serv...
Call Girls in Kolkata (7426014248) call me [🔝Kolkata🔝] Escort In Kolkata serv...Call Girls in Kolkata (7426014248) call me [🔝Kolkata🔝] Escort In Kolkata serv...
Call Girls in Kolkata (7426014248) call me [🔝Kolkata🔝] Escort In Kolkata serv...
zoyat9250
 
Premium Call Girls In Mahipalpur ( Delhi ) 🔥 9711199012 ❄- Pick Your Dream Ca...
Premium Call Girls In Mahipalpur ( Delhi ) 🔥 9711199012 ❄- Pick Your Dream Ca...Premium Call Girls In Mahipalpur ( Delhi ) 🔥 9711199012 ❄- Pick Your Dream Ca...
Premium Call Girls In Mahipalpur ( Delhi ) 🔥 9711199012 ❄- Pick Your Dream Ca...
deepakvermat423724
 
Call Girls Jaipur 📞 8445551418 🌟Door Step Delivery We Offering You 100% Genuine
Call Girls Jaipur 📞 8445551418 🌟Door Step Delivery We Offering You 100% GenuineCall Girls Jaipur 📞 8445551418 🌟Door Step Delivery We Offering You 100% Genuine
Call Girls Jaipur 📞 8445551418 🌟Door Step Delivery We Offering You 100% Genuine
parulsinha
 

Recently uploaded (20)

Independent Call Girls In Churchgate ( Mumbai ) 💯Call Us 🔝 9910780858 🔝💃Top C...
Independent Call Girls In Churchgate ( Mumbai ) 💯Call Us 🔝 9910780858 🔝💃Top C...Independent Call Girls In Churchgate ( Mumbai ) 💯Call Us 🔝 9910780858 🔝💃Top C...
Independent Call Girls In Churchgate ( Mumbai ) 💯Call Us 🔝 9910780858 🔝💃Top C...
 
Call Girls Jaipur Aaradhya 8445551418 Independent Escort Service Jaipur
Call Girls Jaipur Aaradhya 8445551418 Independent Escort Service JaipurCall Girls Jaipur Aaradhya 8445551418 Independent Escort Service Jaipur
Call Girls Jaipur Aaradhya 8445551418 Independent Escort Service Jaipur
 
(Introduction to canva and canva strategies) CANVA PPT.pptx
(Introduction to canva and canva strategies) CANVA PPT.pptx(Introduction to canva and canva strategies) CANVA PPT.pptx
(Introduction to canva and canva strategies) CANVA PPT.pptx
 
Pune Call Girls ♠ 9352988975 ♠ Beautiful Call Girls In Pune
Pune Call Girls  ♠ 9352988975 ♠ Beautiful Call Girls In PunePune Call Girls  ♠ 9352988975 ♠ Beautiful Call Girls In Pune
Pune Call Girls ♠ 9352988975 ♠ Beautiful Call Girls In Pune
 
🔥Mumbai Call Girls Contact Number 🔝👉 9833363713 👈🔝High Calass Call Girl Mumbai
🔥Mumbai Call Girls Contact Number 🔝👉 9833363713 👈🔝High Calass Call Girl Mumbai🔥Mumbai Call Girls Contact Number 🔝👉 9833363713 👈🔝High Calass Call Girl Mumbai
🔥Mumbai Call Girls Contact Number 🔝👉 9833363713 👈🔝High Calass Call Girl Mumbai
 
一比一原版美国加州大学戴维斯分校毕业证(ucdavis学位证)如何办理
一比一原版美国加州大学戴维斯分校毕业证(ucdavis学位证)如何办理一比一原版美国加州大学戴维斯分校毕业证(ucdavis学位证)如何办理
一比一原版美国加州大学戴维斯分校毕业证(ucdavis学位证)如何办理
 
Value based approach to heritae conservation -.docx
Value based approach to heritae conservation -.docxValue based approach to heritae conservation -.docx
Value based approach to heritae conservation -.docx
 
Call Girls sonal ☎️ 8445551418 ☎️ ( jaipur ) ...
Call Girls sonal ☎️ 8445551418 ☎️ ( jaipur ) ...Call Girls sonal ☎️ 8445551418 ☎️ ( jaipur ) ...
Call Girls sonal ☎️ 8445551418 ☎️ ( jaipur ) ...
 
AI Explanations as Two-Way Experiences, Led by Users
AI Explanations as Two-Way Experiences, Led by UsersAI Explanations as Two-Way Experiences, Led by Users
AI Explanations as Two-Way Experiences, Led by Users
 
Upcycling for Everyone project exhibition posters
Upcycling for Everyone project exhibition postersUpcycling for Everyone project exhibition posters
Upcycling for Everyone project exhibition posters
 
VIP Call Girls Jaipur Riddhi 8445551418 Independent Escort Service Jaipur
VIP Call Girls Jaipur Riddhi 8445551418 Independent Escort Service JaipurVIP Call Girls Jaipur Riddhi 8445551418 Independent Escort Service Jaipur
VIP Call Girls Jaipur Riddhi 8445551418 Independent Escort Service Jaipur
 
一比一原版(brunel毕业证书)布鲁内尔大学毕业证如何办理
一比一原版(brunel毕业证书)布鲁内尔大学毕业证如何办理一比一原版(brunel毕业证书)布鲁内尔大学毕业证如何办理
一比一原版(brunel毕业证书)布鲁内尔大学毕业证如何办理
 
World trade center in kerala proposal- AR. DEEKSHITH MAROLI 724519251008 REPORT
World trade center in kerala proposal- AR. DEEKSHITH MAROLI 724519251008 REPORTWorld trade center in kerala proposal- AR. DEEKSHITH MAROLI 724519251008 REPORT
World trade center in kerala proposal- AR. DEEKSHITH MAROLI 724519251008 REPORT
 
Call Girls In Jaipur {8445551418} ❤️VVIP JIYA Call Girl in Jaipur Rajasthan
Call Girls In Jaipur {8445551418} ❤️VVIP JIYA Call Girl in Jaipur RajasthanCall Girls In Jaipur {8445551418} ❤️VVIP JIYA Call Girl in Jaipur Rajasthan
Call Girls In Jaipur {8445551418} ❤️VVIP JIYA Call Girl in Jaipur Rajasthan
 
💕VASUDHA BAJAJ💕Premium Call Girls Jaipur ↘️8445551418↙️One Night Stand With L...
💕VASUDHA BAJAJ💕Premium Call Girls Jaipur ↘️8445551418↙️One Night Stand With L...💕VASUDHA BAJAJ💕Premium Call Girls Jaipur ↘️8445551418↙️One Night Stand With L...
💕VASUDHA BAJAJ💕Premium Call Girls Jaipur ↘️8445551418↙️One Night Stand With L...
 
Mallu Aunts Call Girls Jaipur { 8445551418 } ✔ PRIYA VERMA ✔ Get High Profile...
Mallu Aunts Call Girls Jaipur { 8445551418 } ✔ PRIYA VERMA ✔ Get High Profile...Mallu Aunts Call Girls Jaipur { 8445551418 } ✔ PRIYA VERMA ✔ Get High Profile...
Mallu Aunts Call Girls Jaipur { 8445551418 } ✔ PRIYA VERMA ✔ Get High Profile...
 
Call Girls jaipur ☎️ +91-8445551418 😍 jaipur Call Girl Beauty Girls @ Afforda...
Call Girls jaipur ☎️ +91-8445551418 😍 jaipur Call Girl Beauty Girls @ Afforda...Call Girls jaipur ☎️ +91-8445551418 😍 jaipur Call Girl Beauty Girls @ Afforda...
Call Girls jaipur ☎️ +91-8445551418 😍 jaipur Call Girl Beauty Girls @ Afforda...
 
Call Girls in Kolkata (7426014248) call me [🔝Kolkata🔝] Escort In Kolkata serv...
Call Girls in Kolkata (7426014248) call me [🔝Kolkata🔝] Escort In Kolkata serv...Call Girls in Kolkata (7426014248) call me [🔝Kolkata🔝] Escort In Kolkata serv...
Call Girls in Kolkata (7426014248) call me [🔝Kolkata🔝] Escort In Kolkata serv...
 
Premium Call Girls In Mahipalpur ( Delhi ) 🔥 9711199012 ❄- Pick Your Dream Ca...
Premium Call Girls In Mahipalpur ( Delhi ) 🔥 9711199012 ❄- Pick Your Dream Ca...Premium Call Girls In Mahipalpur ( Delhi ) 🔥 9711199012 ❄- Pick Your Dream Ca...
Premium Call Girls In Mahipalpur ( Delhi ) 🔥 9711199012 ❄- Pick Your Dream Ca...
 
Call Girls Jaipur 📞 8445551418 🌟Door Step Delivery We Offering You 100% Genuine
Call Girls Jaipur 📞 8445551418 🌟Door Step Delivery We Offering You 100% GenuineCall Girls Jaipur 📞 8445551418 🌟Door Step Delivery We Offering You 100% Genuine
Call Girls Jaipur 📞 8445551418 🌟Door Step Delivery We Offering You 100% Genuine
 

Hotel Management System

  • 1. Hotel Management System Object oriented approach to UML design By, Nijith Jacob (2007A7PS076G) Karandikar Rajas Hemant (2007A7PS046G) Submitted in partial fulfilment of Object Oriented Analysis And Design course (SS G514) Under the guidance of J.V RAO 11/23/2010
  • 2. 1 Acknowledgements In the outset, we want to thank Prof. J.V. Rao for giving us this opportunity to familiarize practically with Object oriented system analysis and design through this project. His ample guidance and suggestions were invaluable in the successful completion of this project. Also, we thank BITS Pilani Goa Campus for giving us all the necessary resources and also including this course as an elective. Also we extend our gratitude to anyone who has directly or indirectly helped in this project.
  • 3. 2 Contents Acknowledgements 1 Contents 2 Overview 3 Use Case Diagram 4 Class Diagrams 5 Class Descriptions 7 Object Diagram 11 Sequence Diagrams 12 Remarks 16 References 17
  • 4. 3 Overview This project is concerned with developing a flexible, open-ended design for hotel management information system that incorporates well-known design patterns and a lucid design style using UML diagrams. Our Hotel Management System consists of two users: 1. Customer a. Individual Customer b. Company Customer 2. Staff a. Manager b. Other Employees Customers can avail various services provided by the hotel like room reservation, restaurant, sauna, pool, casino etc. The system keeps a record of the customer details and previous visits of current and past customers so that privileges and points can be awarded based on their history. To keep the system history database to acceptable levels of data, excessive records are automatically purged at regular intervals. A Customer’s history consists of his/her previous visits, only one of which can be active (not completed) at any point in time. If no visits are active, then a new visit instance need to be created that can contain the various services that the customer need to avail during a new visit. If a visit instance is active, then any services availed are considered as part of that visit. Each visit is a composition of services that the customer uses. Any particular service usage consists of a single resource (e.g. Room No 110) that belongs to a particular service (e.g. Room Service). When a customer requests a resource, the system checks for that availability of the resource and adds that resource to the list of availed services during that visit. At the end of the visit, when all the service usages are finished, system automatically calculates the cost of the visit and also any points that need to be awarded based on this visit is computed as well. The customer has provision to redeem any in-house points that the customer has been awarded. Manager(s) is (are) concerned with the overall functioning of the system. He/she has the provision to add new services or resources for any particular service. The system keeps track of the expenditure incurred by the various services which can be viewed by the manager. The manager’s decision making can be assisted based on the various service’s usage, total expenditure, total income etc., all of which the system automatically keep track of.
  • 5. 4 Use Case Diagram
  • 8. 7 Class Descriptions Class Name Attribute/Method Description Customer name Customer/Company Name addr Customer/Company Address cust_class Bit Vector to determine whether a particular resource can be assigned to this customer calc_history_pts() Abstract method for calculating in-house points awarded based on history. Part of interface Awardable. notify() Notifies the point object contained in the customer to update the history points. Part of Observer interface Individual_cust dob Date Of Birth of the customer Company_cust manager Manager’s name of the company Point redeemed_pts Total points that the customer has used so far history_pts Total points that the customer has been awarded based on history awardee Awardable (Customer) object that implements the calc_history_pts() method part of Awardable interface redeem_pts(pts) Avail Points. Call with negative argument to award points. update_pts() Update the history points by calling the calc_history_pts() method implemented by the awardee History history_count Static attribute that determines the number of persistent records to be stored. prune_interval Interval in which excessive records are removed (greater than history_count) visits_no Total number of visits so far prev_expenditure Total expenditure by the customer for records that has been removed so far total_expenditure Total expenditure so far latest_visit The latest visit object part of the history pruner Timer class object that removes
  • 9. 8 excessive record every prune_interval interval update_expenditure() Updates the total_expenditure based on all the visits so far attach(visit) Append the visit to the visit list detach(visit) Remove the visit object from the list notify() Notifies the customer object to update the points. Part of Observer interface action_performed() The method implemented as part of Action_Listener interface. This method is executed every prune_interval interval and removes excessive records Payable start_date Start Date for the billing period end_date End Date for the billing period cost Total cost for the period addition_cost Any additional cost charged irrespective of the billing period completion_status Indicate whether the visit/service is finished calc_cost() Abstract method that calculates the cost incurred notify() Abstract method that notifies any dependent object when status is set to completed. Part of Observer interface update_status() Abstract method that checks whether the status can be updated and updates the status if necessary add_cost(cost) Sums up the argument to additional_costs Visit no_services Total number of services availed during this visit calc_date_interval(service) Calculate the start and end dates for the visit based on the new service that was most recently added (passed as argument). update_date_interval() Calculate the start and end date based on start and end dates for all the services availed during the visit calc_cost() Total cost incurred in the visit notify() Notifies the history object to update its expenditure and notify the customer object if all the services have been
  • 10. 9 completed update_status() Sets the completion_status if all the services have been completed attach_usage(usage) Attaches a new service usage to the list detach_usage(usage,penalty) Removes a service usage if it has not been yet completed and adds the penalty for cancellation Service_Usage usage_resource The resource been used update_status() Sets the completion status, updates the cost and call the notify() method notify() Notifies the visit object to update its expenditure and carry on the notification to upper levels. The resource been used is then freed. calc_cost() Calculate the total cost incurred for using the resource find_resource(subtype,value = NONE) Find a free resource for the customer. Subtype argement represent a particular type of resource that customer want. Value argument is used when a specific resource is required by the customer resource_cleanup() Free the reource Service name Name of the service. It matches the service name of all the resources contained in the service run_cost_calc_interval The interval in which the run cost is calculated by calling the action_performed() method part of Action_Listener interface total_run_cost Total run cost for the service so far expense_keeper Timer class for keeping the expense find_resource(class,subtype, value,start date,end date) Finds a free resource that can be assigned to the customer belonging to a particular class matching the subtype and value (if any) that does not interfere with the required start and end dates for usage. free_resource(resource) Removes the resource from usage_list
  • 11. 10 add_resource(resource) Adds a new resource. remove_resource(id) Remove a resouce Resource id Unique ID service_name Name of the service that this resource Is part of value Specific value/name subtype The general category to which this reource belong cust_class The Class of customer to which this resource can be assigned calc_cost(duration) Abstract method to calculate the cost for the resource based on duration clean_up() Resets any resource specific attributes. Called when a resource is freed after usage resource_idle_cost(duration) Expense incurred by the hotel when resource Is idle for a duration of time resource_run_cost(duration) Expense incurred by the hotel when resource Is used for a duration of time Service_Manager add_service(service) Adds a new service rem_service(service) Remove an existing service find_service(name) Finds a service based on name calc_service_cur_usage(name) Calculate the percentage current usage for a particular service calc_total_run_cost() Total run cost incurred by all the services in the system
  • 17. 16 Remarks 1. The project design can be considered more than a hotel management system design. The design can be extended as a design pattern for a general scenario where customers interact with a system for resources and the system keep track of customer history in the form of persistent storage and award points/privileges based on that history. For e.g. A Muti-user operating system environment where resources can be in the form of shared resources like printer, storage, CPU time etc. and users are awarded points for their greater use of the system. 2. The system is flexible in the sense that resources or services can be added / removed easily. The system can easily adapt to any future advancements easily. 3. Observer Pattern and Composite Pattern are two design patterns that were incorporated into the design
  • 18. 17 References [1] Kim Hamilton and Russell Miles, Learning UML 2.0, O’Reilly, April 2006 [2] Dan Pilone and Neil Pitman, UML 2.0 In a Nutshell, O’Reilly, June 2005
  翻译: