华东交大软件体系结构.docx
- 文档编号:3200110
- 上传时间:2022-11-20
- 格式:DOCX
- 页数:7
- 大小:174.57KB
华东交大软件体系结构.docx
《华东交大软件体系结构.docx》由会员分享,可在线阅读,更多相关《华东交大软件体系结构.docx(7页珍藏版)》请在冰豆网上搜索。
华东交大软件体系结构
CasesforExampleATMSystem
SystemStartupUseCase
Thesystemisstartedupwhentheoperatorturnstheoperatorswitchtothe"on"position.Theoperatorwillbeaskedtoentertheamountofmoneycurrentlyinthecashdispenser,andaconnectiontothebankwillbeestablished.Thentheservicingofcustomerscanbegin.
[InteractionDiagram]
SystemShutdownUseCase
Thesystemisshutdownwhentheoperatormakessurethatnocustomerisusingthemachine,andthenturnstheoperatorswitchtothe"off"position.Theconnectiontothebankwillbeshutdown.Thentheoperatorisfreetoremovedepositedenvelopes,replenishcashandpaper,etc.
[InteractionDiagram]
SessionUseCase
AsessionisstartedwhenacustomerinsertsanATMcardintothecardreaderslotofthemachine.TheATMpullsthecardintothemachineandreadsit.(Ifthereadercannotreadthecardduetoimproperinsertionoradamagedstripe,thecardisejected,anerrorscreenisdisplayed,andthesessionisaborted.)Thecustomerisaskedtoenterhis/herPIN,andisthenallowedtoperformoneormoretransactions,choosingfromamenuofpossibletypesoftransactionineachcase.Aftereachtransaction,thecustomerisaskedwhetherhe/shewouldliketoperformanother.Whenthecustomeristhroughperformingtransactions,thecardisejectedfromthemachineandthesessionends.IfatransactionisabortedduetotoomanyinvalidPINentries,thesessionisalsoaborted,withthecardbeingretainedinthemachine.
ThecustomermayabortthesessionbypressingtheCancelkeywhenenteringaPINorchoosingatransactiontype.
[InteractionDiagram]
TransactionUseCase
Note:
Transactionisanabstractgeneralization.Eachspecificconcretetypeoftransactionimplementscertainoperationsintheappropriateway.Theflowofeventsgivenheredescribesthebehaviorcommontoalltypesoftransaction.Theflowsofeventsfortheindividualtypesoftransaction(withdrawal,deposit,transfer,inquiry)givethefeaturesthatarespecifictothattypeoftransaction.
Atransactionusecaseisstartedwithinasessionwhenthecustomerchoosesatransactiontypefromamenuofoptions.Thecustomerwillbeaskedtofurnishappropriatedetails(e.g.account(s)involved,amount).Thetransactionwillthenbesenttothebank,alongwithinformationfromthecustomer'scardandthePINthecustomerentered.
Ifthebankapprovesthetransaction,anystepsneededtocompletethetransaction(e.g.dispensingcashoracceptinganenvelope)willbeperformed,andthenareceiptwillbeprinted.Thenthecustomerwillbeaskedwhetherhe/shewishestodoanothertransaction.
Ifthebankreportsthatthecustomer'sPINisinvalid,theInvalidPINextensionwillbeperformedandthenanattemptwillbemadetocontinuethetransaction.Ifthecustomer'scardisretainedduetotoomanyinvalidPINs,thetransactionwillbeaborted,andthecustomerwillnotbeofferedtheoptionofdoinganother.
Ifatransactioniscancelledbythecustomer,orfailsforanyreasonotherthanrepeatedentriesofaninvalidPIN,ascreenwillbedisplayedinformingthecustomerofthereasonforthefailureofthetransaction,andthenthecustomerwillbeofferedtheopportunitytodoanother.
ThecustomermaycancelatransactionbypressingtheCancelkeyasdescribedforeachindividualtypeoftransactionbelow.
AllmessagestothebankandresponsesbackarerecordedintheATM'slog.
[InteractionDiagram]
WithdrawalTransactionUseCase
Awithdrawaltransactionasksthecustomertochooseatypeofaccounttowithdrawfrom(e.g.checking)fromamenuofpossibleaccounts,andtochooseadollaramountfromamenuofpossibleamounts.Thesystemverifiesthatithassufficientmoneyonhandtosatisfytherequestbeforesendingthetransactiontothebank.(Ifnot,thecustomerisinformedandaskedtoenteradifferentamount.)Ifthetransactionisapprovedbythebank,theappropriateamountofcashisdispensedbythemachinebeforeitissuesareceipt.(ThedispensingofcashisalsorecordedintheATM'slog.)
AwithdrawaltransactioncanbecancelledbythecustomerpressingtheCancelkeyanytimepriortochoosingthedollaramount.
[InteractionDiagram]
DepositTransactionUseCase
Adeposittransactionasksthecustomertochooseatypeofaccounttodepositto(e.g.checking)fromamenuofpossibleaccounts,andtotypeinadollaramountonthekeyboard.ThetransactionisinitiallysenttothebanktoverifythattheATMcanacceptadepositfromthiscustomertothisaccount.Ifthetransactionisapproved,themachineacceptsanenvelopefromthecustomercontainingcashand/orchecksbeforeitissuesareceipt.Oncetheenvelopehasbeenreceived,asecondmessageissenttothebank,toconfirmthatthebankcancreditthecustomer'saccount-contingentonmanualv
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 华东 交大 软件 体系结构