SlideShare une entreprise Scribd logo
1  sur  20
1
Hotel Management System
ANALYSIS AND DESIGN MODELS
prepared by Team 1
Sandra Busik
Susan Le
Peter Lockwood
Pradeep Miglani
Reita Sikka
Kai Zhang
2
TABLE OF CONTENTS
1 ANALYSIS MODEL .................................................................................................................................................................................................................................................... 3
1.1 STATIC MODEL ................................................................................................................................................................................................................................................... 3
1.2 ATTRIBUTES OF THE CLASSES ON THE STATIC MODEL ........................................................................................................................................................................... 4
1.3 STATE CHARTS ................................................................................................................................................................................................................................................... 5
1.4 COLLABORATION DIAGRAMS (ONE FOR EACH USE CASE) & MESSAGE SEQUENCE DESCRIPTIONS..................................................................................................... 8
2 DESIGN MODEL......................................................................................................................................................................................................................................................... 8
2.1 CONSOLIDATED COLLABORATION DIAGRAMS & MESSAGE SEQUENCE DESCRIPTIONS................................................................................................................ 8
2.1.1 CONSOLIDATED COLLABORATION DIAGRAMS.......................................................................................................................................................................................... 9
2.1.2 MESSAGE SEQUENCE DESCRIPTIONS FOR CONSOLIDATED COLABORATION DIAGRAMS ............................................................................................................. 11
2.2 DISTRIBUTED SOFTWARE ARCHITECTURE DOCUMENT........................................................................................................................................................................ 13
2.2.1 DESCRIPTION OF HOW THE SYSTEM IS DECOMPOSED INTO COMPONENT-BASED SUBSYSTEMS & CONCURRENT COLLABORATION DIAGRAM .............. 13
2.2.2 DESIGN OF RELATIONAL DESIGN DATABASE .......................................................................................................................................................................................... 15
2.3 SUBSYSTEM SOFTWARE ARCHITECTURE.................................................................................................................................................................................................. 16
2.3.1 OVERVIEW DESCRIPTION OF SUBSYSTEM SOFTWARE ARCHITECTURE ............................................................................................................................................. 16
2.3.2 TASK ARCHITECTURE ................................................................................................................................................................................................................................... 17
2.4 INFORMATION HIDING CLASSES.................................................................................................................................................................................................................. 19
3
1 ANALYSIS MODEL
1.1 STATIC MODEL
Customer
HMS
Interface
Administration
Employee
Discount
Bill/Payment
Report
Scheduler
HMS
Reservation
Room
processes
updates
creates/modifies/deletes
processes
has
processes
processes
generates
processes
completes
bills cancels
4
1.2 ATTRIBUTES OF THE CLASSES ON THE STATIC MODEL
5
1.3 STATE CHARTS
Bill/Payment Statechart
Recieve & add item
Generate Bill
Adjust Bill
Record Payment
Open
Generated
6
Room State Chart
Vacant
Reserved
Occupied
Room number entered when customer check in
Rm No entered when customer checks in
Five hrs. past check in
Customer check out
Rm. no. entered
RROOMoom
Statechart
7
Scheduler Running
Retrieve Time
Billing Additional Day
Time is 1:00 p.m.
Billing Guaranteed Reservations
Time is 6:30 p.m.
Cancelling Non-guaranteed Reservations
Time is 6:00 p.m.
Billing Complete
Billing Complete
Reservations Canceled
System Started
System Stopped
Scheduler Statechart
8
1.4 COLLABORATION DIAGRAMS (one for each use case) & MESSAGE SEQUENCE DESCRIPTIONS
We have done individual collaboration diagrams (one for each use case). Per Dr. Wu, they are not required to be turned in. Please see
Consolidated Collaboration Diagrams and Message Descriptions for Consolidated Collaboration Diagrams in section 2.1.1 and 2.1.2,
respectively.
2 DESIGN MODEL
2.1 CONSOLIDATED COLLABORATION DIAGRAMS & MESSAGE SEQUENCE DESCRIPTIONS
9
2.1.1 CONSOLIDATED COLLABORATION DIAGRAMS
: Reservation
: Bill/Payment
: Report
: Scheduler
: Customer
: Hotel
Database
: <<External Timer>>
Digital Clock
: Room
: Discount
: Customer
ServiceRep
: HMSInterface
<<user interface>>
CONSOLIDATED COLLABORATION DIAGRAM FOR RESERVATION & BOOKING SYSTEM
: Manager
: Room/Food Services System
<<subsystem>>
Data returned
Update/Retrieve data
Apply
Discount
Create/Update/Retriev e Customer Inf o
Customer Inf o
Av ailability
Status
CheckRoomAvailability (Ty pe, Dates)
Set RoomAvailability
Generate Bill
Charge Bill
Credit Bill
Update Bill/Pay ment Data
Get Room/FoodService Bill Data
Room/FoodService Bill
Get Pending CheckOut Data
Pending CheckOutData returned
Cancel Non-Guaranteed
reserv ation
Get Reserv ation Data
Reserv ation Data returned
Bill No-Show
Bill Additional Day
Bill Guaranteed Reserv ation
Update/Retrieve Customer Inf o
Customer Inf o
Scheduler Ev ents
Update / Retrieve Room Availability Info
Room Availability Info
Get Discount
Make Pay ment, Credit Pay ment
Pay ment made, Pay ment credited
Create/Retrieve/Update Reserv ation, CheckIn, CheckOut (Trans Data)
Reserv ation Inf o
GenerateReport
(PendingCheckOutRpt,
ReportParameters)
Report
Generated
CSR Input
Display Inf o
Manager Input
Display Info
10
: HMSInterface
<<user interface>>
: Manager
: Report
: Administration
: Hotel
Database
: Employee
: Room
CONSOLIDATED COLLABORATION DIAGRAM FOR MANAGEMENT SERVICES SYSTEM
GenerateReport (ReportType,
ReportParameters)
Report
Generated
Administer User Profile
Administer Info on Room & Rate
Manager Input Display Info
Get Report Data
Report Data
Add/Modify/Delete Info on Room & Rate
Add/Modify/Delete Employee Profile
Update/Get
Employee Info
Employee
Info
Update/Get Info on Room & Rate
Info on Room & Rate
11
2.1.2 MESSAGE SEQUENCE DESCRIPTIONS FOR CONSOLIDATED COLABORATION DIAGRAMS
Message Sequence Description for Consolidated Collaboration Diagram of Reservation and Booking System
The message sequence description below addresses the messages on the Consolidated Collaboration Diagram for Reservation and Booking System.
 CSR or Manager actor inputs screen selection and information to HMS Interface.
 HMS Interface sends the CSR's or Manager's reservation & booking transaction inputs to Reservation.
 Reservation sends a Retrieve Customer Info request along with customer's name to Customer to search for the customer record.
 If the customer record is already in the system, Customer sends Customer Info to Reservation. Reservation sends Update Customer Info
request along with updated info to Customer.
 If the customer record is not yet in the system, Reservation sends Create Customer Info request along with customer info to Customer to
create a customer record.
 Customer sends Add/Update/Retrieve Customer Info message to HotelDatabase.
 Reservation sends a Check Room Availability request along with information on room type, check-in date, check-out date to Room to search for a
vacant room.
 Room sends a Retrieve Room Availability request to HotelDatabase to get room availability information.
 HotelDatabase sends a Room Availability Info response to Room.
 Room sends Availability Status to Reservation.
 Reservation sends an Apply Discount request to Discount.
 Discount sends Get Discount message to HotelDatabase to obtain discount data.
 Reservation sends an Update/Retrieve Data request to HotelDatabase to update/retrieve reservation&booking data, and HotelDatabase sends
reservation&booking data to Reservation.
 Reservation sends a Generate Bill, Charge Bill (or Credit Bill) request along with balance due information to Bill/Payment.
 Bill/Payment sends Get Room/FoodService Bill Data message to Room/Food Services System, and Room/Food Services System sends
Room/FoodService Bill Data to Bill/Payment.
 Timer sends Scheduler Events to Scheduler.
 Scheduler sends a Get Reservation Data request to HotelDatabase. HotelDatabase returns Reservation Data to Scheduler.
 Scheduler sends a Cancel Non-Guaranteed Reservation request to Reservation.
 Scheduler sends Bill No-Show, Bill Additional Day, Bill GuaranteedReservation request to Bill/Payment.
 HMS Interface sends Make Payment (or Credit Payment) message along with customer's payment information to Bill/Payment.
 Bill/Payment sends a Payment Made (or Payment Credited) acknowledgment message to HMSInterface.
12
 Bill/Payment sends an Update Bill/Payment request to HotelDatabase.
 HMS Interface sends GenerateReport request along with ReportType, ReportParameters to Report.
 Report sends Get Pending Checkout Data message to HotelDatabase.
 HotelDatabase sends Pending Checkout Data to Report.
 Report sends Report generated to HMSInterface.
 HMSInterface sends DisplayInfo message to display information to CSR or Manager actor.
Message Sequence Description for Consolidated Collaboration Diagram of Management Services System
The message sequence description below addresses the messages on the Consolidated Collaboration Diagram for Management Services System.
 Manager actor inputs screen selection and information to HMS Interface.
 HMS Interface sends Administer User Profile (or Administer Info on Room & Rate) message along with the information inputs to Administration.
 Administration sends a Add/Modify/Delete Employee Profile request along with employee information inputted to Employee.
 Employee sends an Update/Get Employee Info request to HotelDatabase.
 HotelDatabase sends an Employee Info response to Employee.
 Administration sends a Add/Modify/Delete Info on Room & Rate request along with room information inputted to Room.
 Room sends an Update/Get info on Room & Rate request to HotelDatabase.
 HotelDatabase sends an Info on Room & Rate response to Room.
 HMS Interface sends GenerateReport request along with ReportType, ReportParameters to Report.
 Report sends Get Report Data message to HotelDatabase.
 HotelDatabase sends Report Data to Report.
 Report sends Report generated to HMSInterface.
 HMSInterface sends DisplayInfo message to display information to Manager actor.
13
2.2 DISTRIBUTED SOFTWARE ARCHITECTURE DOCUMENT
2.2.1 DESCRIPTION OF HOW THE SYSTEM IS DECOMPOSED INTO COMPONENT-BASED SUBSYSTEMS &
CONCURRENT COLLABORATION DIAGRAM
As shown on the Concurrent Collaboration Diagram below, the subsystems consist of a Reservation and Booking subsystem, a Room and Food
Services subsystem, and a Management Services subsystem. These subsystems were determined through the use-case-based collaboration diagrams.
The objects in the use-case-based collaboration diagrams that communicate frequently with each other, are related to each other, and have high coupling
were placed in the same subsystem. Each of these subsystems also performs a major function, which is relatively independent of the functionality
provided by the other subsystems. These subsystems can be allocated to a separate node in the distributed environment or can be executed on the same
node as other subsystems. These three subsystems are composite subsystems because they all reside at the same location. They all have localized
autonomy. Each subsystem controls a given aspect of the system. They encapsulate the objects they contain. The communication between the three
subsystems is loosely coupled asynchronous message communication. The Hotel Management System component encompasses the three subsystems.
The Hotel Management System is also a composite system. It also encapsulates the objects it contains. All of these components are logical and
physical containers.
Concurrent Collaboration Diagram Documentation
The Hotel Management System contains three subsystems. These are Reservation and Booking, Room and Food Services, and Management
Services. The Reservation and Booking subsystem encompasses customer check in, check out, room reservation, billing for the customers' stay, and
room availability. The Room and Food Services subsystem allows the customer service representative to create the customers' food order and will
generate a bill for the order. The Management Services subsystem deals with the maintenance of the hotel services. This subsystem allows
management to add, modify, and delete information on rooms and rates and food menu items and prices. Management Services also may administer
new employee user profiles for the HMS. The managers may delete, modify, and add employee profiles. This subsystem will also generate reports on
these uses.
The Hotel Management System Interface will allow the users; Managers and customer service representatives to interact with the system. The
users will be able to administer Reservation & Booking services, Room & Food services, and Management services (for management only).
The external output device, the printer, is not part of the software to be created. The computers in the hotel will have printers available. The
report on pending checkouts and the bill data generated from the Reservation & Booking subsystem will be able to be printed. The reports of all
subsystem data from the Management Services subsystem will be able to be printed. The bill generated from the Room & Food Services subsystem will
be able to be printed.
Concurrent Collaboration Diagram below
14
:Room & Food
Services
<<subsystem>>
:Reservation &
Booking
<<subsystem>>
:Management
Services
<<subsystem>>
:Hotel Management System
<<system>>
:Printer
<<external output device>>
:Hotel Management
System Interface
<<user interface>>
Concurrent Collaboration Diagram
menu item, price
bill generated
room & customer info
items added to cost
report pending checkout
bill data generated
reports of all subsystems' data
HMS data requested
HMS request
CONCURRENT COLLABORATION DIAGRAM
15
2.2.2 DESIGN OF RELATIONAL DESIGN DATABASE
16
2.3 SUBSYSTEM SOFTWARE ARCHITECTURE
2.3.1 OVERVIEW DESCRIPTION OF SUBSYSTEM SOFTWARE ARCHITECTURE
The Hotel Management System is functionally decomposed into the Reservations and Management subsystems. This section describes the
criteria used to determine which objects are active and which are information-hiding classes. Active objects execute concurrently and run in their
own thread. The active objects are modeled as tasks and the other objects are modeled as information hiding classes. A collaboration diagram is
given for each subsystem. The objects having the thicker, bolded borders are tasks. In the Information Hiding Classes Diagram, each class has
been given a <<stereotype>> to reflect the type of class being shown. Here are the criteria used to determine which objects in each subsystem are
active.
 Keep design simple by not having too many tasks
 Objects that execute concurrently can be made into tasks
 Identify user interface objects
o HMS Interface
 Identify device interfaces
o None, other than standard i/o (keyboard, mouse, monitor, and printer)
 Identify system interfaces
o Room and Food Service System
o Reservation and Management subsystems
 Identify entity objects
o See Information Hiding Classes Diagram
 Identify timer objects
o Scheduler
 Identify state dependent control objects
o No state dependent control objects that need to run in their own thread
 Identify coordinator objects
o HotelDatabase object coordinates access to the database
 Identify business logic objects
o The only business logic object in this stand-alone system is the Reservation object. This object will not be accessed concurrently, so it
does not need to run in its own thread. Each client will have its own instance of the Reservation object.
 Identify algorithm objects
o No substantial algorithms used in the problem domain
17
2.3.2 TASK ARCHITECTURE
: Reservation
: Bill/Payment
: Report
<<Periodic>>
: Scheduler
: Customer
: Room
: Discount
: Customer
ServiceRep
<<User Interface>>
: HMSInterface
TASK ARCHITECTURE DIAGRAM FOR RESERVATION & BOOKING SYSTEM
: Manager
Generate Bill
Charge Bill
CreditBill
Data returned
Update/Retrieve data
Apply
Discount
Create/Update/Retrieve Customer Info
Customer Info
CheckRoomAvailability (Type, Dates)
Set Room Availability
Availability
Status
Update Bill/Payment
Get Pending CheckOut Data
Pending CheckOutData
Bill No-Show
Bill Additional Day
Bill GuaranteedReservation
Cancel Non-Guaranteed
Reservation
Get Reservation Data
Reservation Data returned
Update/Retrieve Customer Info
Customer Info
Timer Events
Update / Retrieve Room Availability
Room Availability Info
Get Discount
Make Payment, Credit Payment
Payment made, Payment credited
Create/Retrieve/Update Reservation, CheckIn, CheckOut (Trans Data)
Reservation Info
GenerateReport (PendingCheckOutRpt,
ReportParameters)
Report
Generated
CSR Input
Display Info Manager Input
Display Info
<<External Timer>>
: DigitalClock
<<Subsystem>>
: FoodService
Generate Bill
Bill Data returned
<<Access DB>>
: HotelDatabase
ODBC
ODBC
<<Coordinator>>
: HotelDatabase
18
: Manager
: Report
: Administration
: Room
TASK ARCHITECTURE DIAGRAM FOR MANAGEMENT SERVICES SYSTEM
Administer User Profile
Administer Menu Item & Price
Administer Info on Room & Rate
GenerateReport (ReportType,
ReportParameters)
Report
Generated
Manager Input Display Info
Get Report Data
Report Data
Add/Modify/Delete Info on Room & Rate
Add/Modify/Delete Employee Profile
Update/Get Info on Room & Rate
Info on Room & Rate
: Employee
Update/Get
Employee Info
Employee
Info
<<Coordinator>>
: HotelDatabase
<<User Interface>>
: HMSInterface
<<Access DB>>
: HotelDatabase
ODBC
ODBC
19
2.4 INFORMATION HIDING CLASSES
20

Contenu connexe

Similaire à Hotel_Management_System_ANALYSIS_AND_DES.doc

Billing Process
Billing ProcessBilling Process
Billing Process
onearbaein
 
Software Design Specification Document (SDD) By Da.docx
Software Design Specification Document (SDD) By Da.docxSoftware Design Specification Document (SDD) By Da.docx
Software Design Specification Document (SDD) By Da.docx
jensgosney
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
ashu6
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
ashu6
 
ppt_project_group_2.ppt amnd project report
ppt_project_group_2.ppt amnd project reportppt_project_group_2.ppt amnd project report
ppt_project_group_2.ppt amnd project report
sobanmoriwala1
 
ABC Online Direct store software architecture using SOA (Service Oriented Arc...
ABC Online Direct store software architecture using SOA (Service Oriented Arc...ABC Online Direct store software architecture using SOA (Service Oriented Arc...
ABC Online Direct store software architecture using SOA (Service Oriented Arc...
Akash Mhankale
 
S3 dfd1 context diagram pdf
S3 dfd1 context diagram pdfS3 dfd1 context diagram pdf
S3 dfd1 context diagram pdf
aviy1966
 
Shaw man corporate_presentations
Shaw man corporate_presentationsShaw man corporate_presentations
Shaw man corporate_presentations
niteshsharmabe
 

Similaire à Hotel_Management_System_ANALYSIS_AND_DES.doc (20)

Billing Process
Billing ProcessBilling Process
Billing Process
 
Software Design Specification Document (SDD) By Da.docx
Software Design Specification Document (SDD) By Da.docxSoftware Design Specification Document (SDD) By Da.docx
Software Design Specification Document (SDD) By Da.docx
 
Jim richardson oom cs377 phase 5 ip (2)
Jim richardson oom cs377 phase 5 ip (2)Jim richardson oom cs377 phase 5 ip (2)
Jim richardson oom cs377 phase 5 ip (2)
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
TITTO SUNNY
TITTO SUNNYTITTO SUNNY
TITTO SUNNY
 
hotel management dbms.docx
 hotel management dbms.docx hotel management dbms.docx
hotel management dbms.docx
 
DHANUSH.pdf
DHANUSH.pdfDHANUSH.pdf
DHANUSH.pdf
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Banking Database
Banking DatabaseBanking Database
Banking Database
 
eZee FrontDesk
eZee FrontDeskeZee FrontDesk
eZee FrontDesk
 
Shaw Man Software
Shaw Man SoftwareShaw Man Software
Shaw Man Software
 
Burger King Simulation
Burger King SimulationBurger King Simulation
Burger King Simulation
 
Online Hotel Management System
Online Hotel Management SystemOnline Hotel Management System
Online Hotel Management System
 
Travel Agency Automation
Travel Agency Automation Travel Agency Automation
Travel Agency Automation
 
ppt_project_group_2.ppt amnd project report
ppt_project_group_2.ppt amnd project reportppt_project_group_2.ppt amnd project report
ppt_project_group_2.ppt amnd project report
 
R12 MOAC AND PAYABLES
R12 MOAC AND PAYABLESR12 MOAC AND PAYABLES
R12 MOAC AND PAYABLES
 
ABC Online Direct store software architecture using SOA (Service Oriented Arc...
ABC Online Direct store software architecture using SOA (Service Oriented Arc...ABC Online Direct store software architecture using SOA (Service Oriented Arc...
ABC Online Direct store software architecture using SOA (Service Oriented Arc...
 
S3 dfd1 context diagram pdf
S3 dfd1 context diagram pdfS3 dfd1 context diagram pdf
S3 dfd1 context diagram pdf
 
billing_systemp.pt..pptx
billing_systemp.pt..pptxbilling_systemp.pt..pptx
billing_systemp.pt..pptx
 
Shaw man corporate_presentations
Shaw man corporate_presentationsShaw man corporate_presentations
Shaw man corporate_presentations
 

Dernier

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Dernier (20)

Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 

Hotel_Management_System_ANALYSIS_AND_DES.doc

  • 1. 1 Hotel Management System ANALYSIS AND DESIGN MODELS prepared by Team 1 Sandra Busik Susan Le Peter Lockwood Pradeep Miglani Reita Sikka Kai Zhang
  • 2. 2 TABLE OF CONTENTS 1 ANALYSIS MODEL .................................................................................................................................................................................................................................................... 3 1.1 STATIC MODEL ................................................................................................................................................................................................................................................... 3 1.2 ATTRIBUTES OF THE CLASSES ON THE STATIC MODEL ........................................................................................................................................................................... 4 1.3 STATE CHARTS ................................................................................................................................................................................................................................................... 5 1.4 COLLABORATION DIAGRAMS (ONE FOR EACH USE CASE) & MESSAGE SEQUENCE DESCRIPTIONS..................................................................................................... 8 2 DESIGN MODEL......................................................................................................................................................................................................................................................... 8 2.1 CONSOLIDATED COLLABORATION DIAGRAMS & MESSAGE SEQUENCE DESCRIPTIONS................................................................................................................ 8 2.1.1 CONSOLIDATED COLLABORATION DIAGRAMS.......................................................................................................................................................................................... 9 2.1.2 MESSAGE SEQUENCE DESCRIPTIONS FOR CONSOLIDATED COLABORATION DIAGRAMS ............................................................................................................. 11 2.2 DISTRIBUTED SOFTWARE ARCHITECTURE DOCUMENT........................................................................................................................................................................ 13 2.2.1 DESCRIPTION OF HOW THE SYSTEM IS DECOMPOSED INTO COMPONENT-BASED SUBSYSTEMS & CONCURRENT COLLABORATION DIAGRAM .............. 13 2.2.2 DESIGN OF RELATIONAL DESIGN DATABASE .......................................................................................................................................................................................... 15 2.3 SUBSYSTEM SOFTWARE ARCHITECTURE.................................................................................................................................................................................................. 16 2.3.1 OVERVIEW DESCRIPTION OF SUBSYSTEM SOFTWARE ARCHITECTURE ............................................................................................................................................. 16 2.3.2 TASK ARCHITECTURE ................................................................................................................................................................................................................................... 17 2.4 INFORMATION HIDING CLASSES.................................................................................................................................................................................................................. 19
  • 3. 3 1 ANALYSIS MODEL 1.1 STATIC MODEL Customer HMS Interface Administration Employee Discount Bill/Payment Report Scheduler HMS Reservation Room processes updates creates/modifies/deletes processes has processes processes generates processes completes bills cancels
  • 4. 4 1.2 ATTRIBUTES OF THE CLASSES ON THE STATIC MODEL
  • 5. 5 1.3 STATE CHARTS Bill/Payment Statechart Recieve & add item Generate Bill Adjust Bill Record Payment Open Generated
  • 6. 6 Room State Chart Vacant Reserved Occupied Room number entered when customer check in Rm No entered when customer checks in Five hrs. past check in Customer check out Rm. no. entered RROOMoom Statechart
  • 7. 7 Scheduler Running Retrieve Time Billing Additional Day Time is 1:00 p.m. Billing Guaranteed Reservations Time is 6:30 p.m. Cancelling Non-guaranteed Reservations Time is 6:00 p.m. Billing Complete Billing Complete Reservations Canceled System Started System Stopped Scheduler Statechart
  • 8. 8 1.4 COLLABORATION DIAGRAMS (one for each use case) & MESSAGE SEQUENCE DESCRIPTIONS We have done individual collaboration diagrams (one for each use case). Per Dr. Wu, they are not required to be turned in. Please see Consolidated Collaboration Diagrams and Message Descriptions for Consolidated Collaboration Diagrams in section 2.1.1 and 2.1.2, respectively. 2 DESIGN MODEL 2.1 CONSOLIDATED COLLABORATION DIAGRAMS & MESSAGE SEQUENCE DESCRIPTIONS
  • 9. 9 2.1.1 CONSOLIDATED COLLABORATION DIAGRAMS : Reservation : Bill/Payment : Report : Scheduler : Customer : Hotel Database : <<External Timer>> Digital Clock : Room : Discount : Customer ServiceRep : HMSInterface <<user interface>> CONSOLIDATED COLLABORATION DIAGRAM FOR RESERVATION & BOOKING SYSTEM : Manager : Room/Food Services System <<subsystem>> Data returned Update/Retrieve data Apply Discount Create/Update/Retriev e Customer Inf o Customer Inf o Av ailability Status CheckRoomAvailability (Ty pe, Dates) Set RoomAvailability Generate Bill Charge Bill Credit Bill Update Bill/Pay ment Data Get Room/FoodService Bill Data Room/FoodService Bill Get Pending CheckOut Data Pending CheckOutData returned Cancel Non-Guaranteed reserv ation Get Reserv ation Data Reserv ation Data returned Bill No-Show Bill Additional Day Bill Guaranteed Reserv ation Update/Retrieve Customer Inf o Customer Inf o Scheduler Ev ents Update / Retrieve Room Availability Info Room Availability Info Get Discount Make Pay ment, Credit Pay ment Pay ment made, Pay ment credited Create/Retrieve/Update Reserv ation, CheckIn, CheckOut (Trans Data) Reserv ation Inf o GenerateReport (PendingCheckOutRpt, ReportParameters) Report Generated CSR Input Display Inf o Manager Input Display Info
  • 10. 10 : HMSInterface <<user interface>> : Manager : Report : Administration : Hotel Database : Employee : Room CONSOLIDATED COLLABORATION DIAGRAM FOR MANAGEMENT SERVICES SYSTEM GenerateReport (ReportType, ReportParameters) Report Generated Administer User Profile Administer Info on Room & Rate Manager Input Display Info Get Report Data Report Data Add/Modify/Delete Info on Room & Rate Add/Modify/Delete Employee Profile Update/Get Employee Info Employee Info Update/Get Info on Room & Rate Info on Room & Rate
  • 11. 11 2.1.2 MESSAGE SEQUENCE DESCRIPTIONS FOR CONSOLIDATED COLABORATION DIAGRAMS Message Sequence Description for Consolidated Collaboration Diagram of Reservation and Booking System The message sequence description below addresses the messages on the Consolidated Collaboration Diagram for Reservation and Booking System.  CSR or Manager actor inputs screen selection and information to HMS Interface.  HMS Interface sends the CSR's or Manager's reservation & booking transaction inputs to Reservation.  Reservation sends a Retrieve Customer Info request along with customer's name to Customer to search for the customer record.  If the customer record is already in the system, Customer sends Customer Info to Reservation. Reservation sends Update Customer Info request along with updated info to Customer.  If the customer record is not yet in the system, Reservation sends Create Customer Info request along with customer info to Customer to create a customer record.  Customer sends Add/Update/Retrieve Customer Info message to HotelDatabase.  Reservation sends a Check Room Availability request along with information on room type, check-in date, check-out date to Room to search for a vacant room.  Room sends a Retrieve Room Availability request to HotelDatabase to get room availability information.  HotelDatabase sends a Room Availability Info response to Room.  Room sends Availability Status to Reservation.  Reservation sends an Apply Discount request to Discount.  Discount sends Get Discount message to HotelDatabase to obtain discount data.  Reservation sends an Update/Retrieve Data request to HotelDatabase to update/retrieve reservation&booking data, and HotelDatabase sends reservation&booking data to Reservation.  Reservation sends a Generate Bill, Charge Bill (or Credit Bill) request along with balance due information to Bill/Payment.  Bill/Payment sends Get Room/FoodService Bill Data message to Room/Food Services System, and Room/Food Services System sends Room/FoodService Bill Data to Bill/Payment.  Timer sends Scheduler Events to Scheduler.  Scheduler sends a Get Reservation Data request to HotelDatabase. HotelDatabase returns Reservation Data to Scheduler.  Scheduler sends a Cancel Non-Guaranteed Reservation request to Reservation.  Scheduler sends Bill No-Show, Bill Additional Day, Bill GuaranteedReservation request to Bill/Payment.  HMS Interface sends Make Payment (or Credit Payment) message along with customer's payment information to Bill/Payment.  Bill/Payment sends a Payment Made (or Payment Credited) acknowledgment message to HMSInterface.
  • 12. 12  Bill/Payment sends an Update Bill/Payment request to HotelDatabase.  HMS Interface sends GenerateReport request along with ReportType, ReportParameters to Report.  Report sends Get Pending Checkout Data message to HotelDatabase.  HotelDatabase sends Pending Checkout Data to Report.  Report sends Report generated to HMSInterface.  HMSInterface sends DisplayInfo message to display information to CSR or Manager actor. Message Sequence Description for Consolidated Collaboration Diagram of Management Services System The message sequence description below addresses the messages on the Consolidated Collaboration Diagram for Management Services System.  Manager actor inputs screen selection and information to HMS Interface.  HMS Interface sends Administer User Profile (or Administer Info on Room & Rate) message along with the information inputs to Administration.  Administration sends a Add/Modify/Delete Employee Profile request along with employee information inputted to Employee.  Employee sends an Update/Get Employee Info request to HotelDatabase.  HotelDatabase sends an Employee Info response to Employee.  Administration sends a Add/Modify/Delete Info on Room & Rate request along with room information inputted to Room.  Room sends an Update/Get info on Room & Rate request to HotelDatabase.  HotelDatabase sends an Info on Room & Rate response to Room.  HMS Interface sends GenerateReport request along with ReportType, ReportParameters to Report.  Report sends Get Report Data message to HotelDatabase.  HotelDatabase sends Report Data to Report.  Report sends Report generated to HMSInterface.  HMSInterface sends DisplayInfo message to display information to Manager actor.
  • 13. 13 2.2 DISTRIBUTED SOFTWARE ARCHITECTURE DOCUMENT 2.2.1 DESCRIPTION OF HOW THE SYSTEM IS DECOMPOSED INTO COMPONENT-BASED SUBSYSTEMS & CONCURRENT COLLABORATION DIAGRAM As shown on the Concurrent Collaboration Diagram below, the subsystems consist of a Reservation and Booking subsystem, a Room and Food Services subsystem, and a Management Services subsystem. These subsystems were determined through the use-case-based collaboration diagrams. The objects in the use-case-based collaboration diagrams that communicate frequently with each other, are related to each other, and have high coupling were placed in the same subsystem. Each of these subsystems also performs a major function, which is relatively independent of the functionality provided by the other subsystems. These subsystems can be allocated to a separate node in the distributed environment or can be executed on the same node as other subsystems. These three subsystems are composite subsystems because they all reside at the same location. They all have localized autonomy. Each subsystem controls a given aspect of the system. They encapsulate the objects they contain. The communication between the three subsystems is loosely coupled asynchronous message communication. The Hotel Management System component encompasses the three subsystems. The Hotel Management System is also a composite system. It also encapsulates the objects it contains. All of these components are logical and physical containers. Concurrent Collaboration Diagram Documentation The Hotel Management System contains three subsystems. These are Reservation and Booking, Room and Food Services, and Management Services. The Reservation and Booking subsystem encompasses customer check in, check out, room reservation, billing for the customers' stay, and room availability. The Room and Food Services subsystem allows the customer service representative to create the customers' food order and will generate a bill for the order. The Management Services subsystem deals with the maintenance of the hotel services. This subsystem allows management to add, modify, and delete information on rooms and rates and food menu items and prices. Management Services also may administer new employee user profiles for the HMS. The managers may delete, modify, and add employee profiles. This subsystem will also generate reports on these uses. The Hotel Management System Interface will allow the users; Managers and customer service representatives to interact with the system. The users will be able to administer Reservation & Booking services, Room & Food services, and Management services (for management only). The external output device, the printer, is not part of the software to be created. The computers in the hotel will have printers available. The report on pending checkouts and the bill data generated from the Reservation & Booking subsystem will be able to be printed. The reports of all subsystem data from the Management Services subsystem will be able to be printed. The bill generated from the Room & Food Services subsystem will be able to be printed. Concurrent Collaboration Diagram below
  • 14. 14 :Room & Food Services <<subsystem>> :Reservation & Booking <<subsystem>> :Management Services <<subsystem>> :Hotel Management System <<system>> :Printer <<external output device>> :Hotel Management System Interface <<user interface>> Concurrent Collaboration Diagram menu item, price bill generated room & customer info items added to cost report pending checkout bill data generated reports of all subsystems' data HMS data requested HMS request CONCURRENT COLLABORATION DIAGRAM
  • 15. 15 2.2.2 DESIGN OF RELATIONAL DESIGN DATABASE
  • 16. 16 2.3 SUBSYSTEM SOFTWARE ARCHITECTURE 2.3.1 OVERVIEW DESCRIPTION OF SUBSYSTEM SOFTWARE ARCHITECTURE The Hotel Management System is functionally decomposed into the Reservations and Management subsystems. This section describes the criteria used to determine which objects are active and which are information-hiding classes. Active objects execute concurrently and run in their own thread. The active objects are modeled as tasks and the other objects are modeled as information hiding classes. A collaboration diagram is given for each subsystem. The objects having the thicker, bolded borders are tasks. In the Information Hiding Classes Diagram, each class has been given a <<stereotype>> to reflect the type of class being shown. Here are the criteria used to determine which objects in each subsystem are active.  Keep design simple by not having too many tasks  Objects that execute concurrently can be made into tasks  Identify user interface objects o HMS Interface  Identify device interfaces o None, other than standard i/o (keyboard, mouse, monitor, and printer)  Identify system interfaces o Room and Food Service System o Reservation and Management subsystems  Identify entity objects o See Information Hiding Classes Diagram  Identify timer objects o Scheduler  Identify state dependent control objects o No state dependent control objects that need to run in their own thread  Identify coordinator objects o HotelDatabase object coordinates access to the database  Identify business logic objects o The only business logic object in this stand-alone system is the Reservation object. This object will not be accessed concurrently, so it does not need to run in its own thread. Each client will have its own instance of the Reservation object.  Identify algorithm objects o No substantial algorithms used in the problem domain
  • 17. 17 2.3.2 TASK ARCHITECTURE : Reservation : Bill/Payment : Report <<Periodic>> : Scheduler : Customer : Room : Discount : Customer ServiceRep <<User Interface>> : HMSInterface TASK ARCHITECTURE DIAGRAM FOR RESERVATION & BOOKING SYSTEM : Manager Generate Bill Charge Bill CreditBill Data returned Update/Retrieve data Apply Discount Create/Update/Retrieve Customer Info Customer Info CheckRoomAvailability (Type, Dates) Set Room Availability Availability Status Update Bill/Payment Get Pending CheckOut Data Pending CheckOutData Bill No-Show Bill Additional Day Bill GuaranteedReservation Cancel Non-Guaranteed Reservation Get Reservation Data Reservation Data returned Update/Retrieve Customer Info Customer Info Timer Events Update / Retrieve Room Availability Room Availability Info Get Discount Make Payment, Credit Payment Payment made, Payment credited Create/Retrieve/Update Reservation, CheckIn, CheckOut (Trans Data) Reservation Info GenerateReport (PendingCheckOutRpt, ReportParameters) Report Generated CSR Input Display Info Manager Input Display Info <<External Timer>> : DigitalClock <<Subsystem>> : FoodService Generate Bill Bill Data returned <<Access DB>> : HotelDatabase ODBC ODBC <<Coordinator>> : HotelDatabase
  • 18. 18 : Manager : Report : Administration : Room TASK ARCHITECTURE DIAGRAM FOR MANAGEMENT SERVICES SYSTEM Administer User Profile Administer Menu Item & Price Administer Info on Room & Rate GenerateReport (ReportType, ReportParameters) Report Generated Manager Input Display Info Get Report Data Report Data Add/Modify/Delete Info on Room & Rate Add/Modify/Delete Employee Profile Update/Get Info on Room & Rate Info on Room & Rate : Employee Update/Get Employee Info Employee Info <<Coordinator>> : HotelDatabase <<User Interface>> : HMSInterface <<Access DB>> : HotelDatabase ODBC ODBC
  • 20. 20