UML教材0Hotel Case文档文档格式.docx
《UML教材0Hotel Case文档文档格式.docx》由会员分享,可在线阅读,更多相关《UML教材0Hotel Case文档文档格式.docx(12页珍藏版)》请在冰豆网上搜索。
∙Guestchecksout–externalevent
B.EventTable:
EventTablefortheGiantForestInnGuestSystem
Event
Number
EventDescription
SystemInput
ActorProvidingInput
SystemOutput
Actor
Receiving
Output
1.
Guestreservesroom
Reservation
Request
Guest
Confirmation
Authorization
CreditAuthorization
System
2.
Guestregisters
Registration
Room
Assignment
3.
Guestincurschargeforservice
Service
Request
Employee
Charge
Receipt
4.
Guestaddstiptobillforservicecharge
Tip
5.
Timetoproducefinalbill
Bill
6.
Guestpaysbill
Payment
Authorization
7.
Guestchecksout
CheckOut
2.Identifytheusecasesandproduceausecasediagramforthehotelsystem
(Chapter4)
A.Listofusecases:
∙ReserveRoom
∙RegisterGuest
∙ChargeService
∙AddTiptoServiceCharge
∙ProduceFinalBill
∙PaysBill
∙CheckOutGuest
B.ListofActors:
(i)Guest–initiatingandparticipating
(ii)Employee–initiating
(iii)CreditAuthorizationSystem–participating
C.UseCaseDiagram:
3.Writeausecasenarrativedescribingthehotelsystem'
sresponsetoeachbusinessevent(Chapter4)
Usecase:
ReserveRoom
Actors:
Purpose:
Tomakearoomreservation.
Overview:
Guestsubmitsareservationrequest.Astheguestmayselectaspecificroom,thisisincludedintherequest.Iftheguesthasnopreference,thesystemselectsaroombasedonthetypeandpriceofaccommodationrequired.Ifaroomisavailable,guestisthenaskedforacreditcardtoreservetheroom.Thesystemthensendsanauthorizationrequesttothecreditcardauthorizationsystem.Whenapproved,aconfirmationissenttotheguestandtheroomisreserved.
Type:
Essential
Preconditions:
Roomavailabilitymustbeknowntothesystem.
Guestmusthaveavalidcreditcard.
Postconditions:
Reservationwasrecordedinthesystem.
SpecialRequirements:
Guestmustgetasystemresponsewithinfiveseconds.
FlowofEvents
ActorAction
SystemResponse
1.Thisusecasebeginswhenaguestsubmitsareservation.
2.Guestentersaphonenumber.
3.Looksuptheguestrecord.
4.[newguest]Guestentersnameandaddress.
5.Savestheguest.
6.[roompreferenceknown]Guestentersroomidentifierfollowedbyarrivaldate,numberofnights,andnumberofoccupants.
7.Informstheguesttheroomisavailable.
8.[roompreferencenotknown]Guestenterstypeofroomandviewdesiredfollowedbyarrivaldate,numberofnights,andnumberofoccupants.
9.Informstheguestaroomisavailable.
10.Guestenterscreditcardnumber,expirationmonth,andexpirationyear.
11.Sendsthecreditcardnumber,informationandmerchantnumbertothecreditauthorizationsystem.Whenanauthorizationnumberisreceived,itproducesaconfirmationandreservestheroom.
12.Guestreceivestheirconfirmation.
AlternativeFlowofEvents
Line3:
Ifguestalreadyinthesystem,gotostep6.
Line7.Ifroomnotavailable,systeminformsguestandgoestostep8.
Line9.Ifroomnotavailable,systeminformsguestandreturnstostep8.
Line11:
Ifcreditcardisnotauthorized,systeminformsguestandterminates.
RegisterGuest
Tocheckintoinn.
Guestsubmitsaconfirmationnumber.Iftheguesthasnoconfirmationnumber,theguestreservesaroomfirst.Theguestisthengivenaroomassignment.
Reservationconfirmationmustbeknowntothesystem.
Registrationwasrecordedinthesystem.
Guestmustgetasystemresponsewithin15seconds.
1.Thisusecasebeginswhenguestarrivesatfrontdesk.
2.Guestentersconfirmationnumber.
3.Looksuptheguestreservationandrecordsthearrivaltime.Theguestisgivenaroomassignment.
4.Guestreceivesaroomassignment.
Line2:
Ifguestdoesnothaveareservation,executetheReserveRoomusecasefirst.
ChargeService
Torecordchargesincurredbyguests.
Whenaguesthasreceivedaservicefromtheinn,theemployeesubmitsarecordoftheserviceforlaterbilling.
Guestmustbecheckedintoinn.
Servicechargewasrecordedinthesystem.
None
1.Thisusecasebeginswhenaguestincursaservicecharge.
2.Employeeentersroomidentifier,servicetime,servicedescription,andserviceprice.
3.Recordstheservicechargeandproducesaservicechargereceipt.
4.Theguestreceivesaservicechargereceipt.
AddTiptoServiceCharge
Toallowguesttotipemployeesforgoodservice.
Aftertheguestincursaservicecharge,theyarepresentedwithaservicechargereceipt.Whenconvenienttheguestwritesinatipamount.Thistipamountisaddedtotheservicecharge.
Guestmusthaveaservicechargereceipt.
Updatedservicechargewasrecordedinthesystem.
1.Thisusecasebeginswhenaguestwishestoaddatiptoaservicecharge.
2.Guestentersroomidentifier,servicetime,servicenumber,andtipamount.
3.Addsthetiptotheservicecharge.
None.
PayBill
Toacceptthreedifferentkindsofpayment.
Guestmaypaybycash,check,orcreditcard.Ifpaymentiscashorcheck,areceiptissenttotheguest.Ifpaymentisacreditcard,thesystemthensendsanauthorizationrequesttothecreditcardauthorizationsystem.Whenapproved,areceiptissenttotheguest.
Finalbillmusthavedeliveredtotheguest.
Paymentwasrecordedinthesystem.
1.Thisusecasebeginswhenaguestisreadytopaybill.
Chooseone:
2.[cashpayment]Roomidentifierandamountisentered.
3.Recordsthepaymentandproducesareceipt.
4.[checkpayment]Roomidentifier,amount,andchecknumberisentered.
5.Recordsthepaymentandproducesareceipt.
6.[creditcardpayment]Roomidentifier,amount,creditcardnumber,expirationmonth,andexpirationyearisentered.
7.Sendsthecreditcardnumber,expirationmonth,expirationyear,amount,andmerchantnumbertothecreditcardauthorizationsystem.Whenanauthorizationnumberisreceived,recordsthepaymentandproducesareceipt.
8.Guestreceivestheirreceipt.
Line7:
Ifcreditcardisnotauthorized,systeminformsguestandanothermethodofpaymentisused.
CheckOutGuest
Tocheckoutfrominn.
Afterguesthaspaidtheirbill,theyinformtheinnwhentheyactuallycheckout.Thealsoreturntheirroomkeyatthistime.
Billmusthavebeenpaid.
Timeofcheckoutwassavedinthesystem.
1.Thisusecasebeginswhenguestarrivesatfrontdesktocheckout.
2.Guestentersroomidentifier.
3.Looksuptheguestrecordsandrecordsthedeparturetime.
6.Guestdeparts.
Ifguesthasnotpaidtheirbill,executethePayBillusecasefirst.
4.Drawasystemsequencediagramforeachoftheusecasesinthehotelsystem.(Chapter4)