UML教材0Hotel Case文档文档格式.docx

上传人:b****7 文档编号:21825025 上传时间:2023-02-01 格式:DOCX 页数:12 大小:77.35KB
下载 相关 举报
UML教材0Hotel Case文档文档格式.docx_第1页
第1页 / 共12页
UML教材0Hotel Case文档文档格式.docx_第2页
第2页 / 共12页
UML教材0Hotel Case文档文档格式.docx_第3页
第3页 / 共12页
UML教材0Hotel Case文档文档格式.docx_第4页
第4页 / 共12页
UML教材0Hotel Case文档文档格式.docx_第5页
第5页 / 共12页
点击查看更多>>
下载资源
资源描述

UML教材0Hotel Case文档文档格式.docx

《UML教材0Hotel Case文档文档格式.docx》由会员分享,可在线阅读,更多相关《UML教材0Hotel Case文档文档格式.docx(12页珍藏版)》请在冰豆网上搜索。

UML教材0Hotel Case文档文档格式.docx

∙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)

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 法律文书 > 起诉状

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1