软件工程实验二

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

SoftwareEngineeringLesson3Exercise2RequirementsATMsystemWithdrawalValidatecardHandlerequestCompletetransactionExercise2.1Identifythefunctionandnon-functionrequirementsofATMsystemsFunctionrequirementsNon-functionrequirementsListedintheformofitemsExampleExercise2.2Describethefunctionof‘withdrawal’usingthestandardform(structuredlanguage)Example:CardhadbeenvalidatedExercise2.3BasedonyourexperiencewithabankATM,drawadata-flowdiagrammodelingthedataprocessinginvolvedwhenacustomerwithdrawscashfromthemachineExample:Exercise2.4UsingyourknowledgeofATMoperation,writeadecisiontabledefiningconditionsintheprocessofusingATMExampleDecisiontableforlibraryfunctionsborrow,return,reserve,andunreserveExercise2.5UsingyourknowledgeofATMoperation,writeZschemasdefiningthestateofthesystem,cardvalidation(wheretheuser’sidentifierischecked)andcashwithdrawalBankaccountValidationWithdrawalExampleStateSchemafortheinsulinpumpExercise2.5DrawaPetri-Netdiagrammodelingthe“DiningPhilosophers’Problem”ExampleExercise2.5TheDiningPhilosophers’Problem([Dijkstra,1968])concernsfivephilosophersseatedataroundtable.Eachphilosophereithereatsormeditates.Thetableissetalternatelywithoneplateandonechopstick.Eatingrequirestwochopstickssothatifeachphilosopherpicksupthechopsticktotherightoftheplate,nonecaneat—thesystemwilldeadlock.ModelthissituationasaPetrinet..3philosophers

1 / 16
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功