软件工程分析文档.docx
- 文档编号:11280564
- 上传时间:2023-02-26
- 格式:DOCX
- 页数:8
- 大小:120.03KB
软件工程分析文档.docx
《软件工程分析文档.docx》由会员分享,可在线阅读,更多相关《软件工程分析文档.docx(8页珍藏版)》请在冰豆网上搜索。
软件工程分析文档
1.Functionmodeling
1)Firstscenariooftheborrowusecase
Aborrowerhandsabookandcardtolibrarian.
1.ThelibrarianinputBinthecomputer,thenscanthebarcodesonthebookandthecard.
2.Thesystemtellusthatthisbookhasn’tkeptbyanotherborrow.
3.Thesystemupdatetherelevantbookdata.
Thelibrariansignthebookthenhandbookandcardtotheborrower.
2)Secondscenariooftheborrowusecase
Aborrowerhandsabookandcardtolibrarian.
1.ThelibrarianinputBinthecomputer,thenscanthebarcodesonthebookandthecard.
2.Thesystemtellusthatthisbookhasbeenkeptbyanotherborrower.
Librariancan’tlendthisbooktotheborrower,Thelibrarianreturnthecardtoborrower.
3)Thirdscenariooftheborrowusecase
Aborrowerhandsabookandcardtolibrarian.
1.ThelibrarianinputBinthecomputer,thenscanthebarcodesonthebookandthecard.
2.Thesystemtellusthatthisbookhasbeenkeptbythisborrower.
3.Thesystemclearthekept,updatetherelevantbookdata.
Thelibrarianstampsthebookthenreturnthebookandthecardtotheborrower.
4)Firstscenarioofthereturnusecase
Aborrowerhandsabooktothelibrarian.Thebookisnotkeptbyanotherborrower.
1.ThelibrarianinputRtothecomputer.Thenscansthebarcodeonthebook.
2.Thesystemupdatetherelevantbookdata.
Thelibrariansetthebookonthe‘returnbookstack’.
5)Secondscenarioofthereturnusecase
Aborrowerhandsabooktothelibrarian.Thebookiskeptbyanotherborrower.
1.ThelibrarianinputRtothecomputer.Thenscansthebarcodeonthebook.
2.Thesystemupdatetherelevantbookdata.
Librarianplacethebookonthespecialstacks.
5)Firstscenarioofthekeepusecase
Aborrowerhandsthelibrarianaformbearingthenumberofabook,togetherwithhiscard.
1.ThelibrarianinputKtothecomputer.Thentypeinthebooknumberandscanthebarcodeonthecard.
Thisbookisalreadykeptbyanotherborrower.
2.Thesystemtellusthismessage.
Librariantellthistotheborrower,returnthecard,andrefuselendingthebooktotheborrower.
6)Secondscenarioofthekeepusecase
Aborrowerhandsthelibrarianaformbearingthenumberofabook,togetherwithhiscard.
1.ThelibrarianinputKtothecomputer.Thentypeinthebooknumberandscanthebarcodeonthecard.
Thisbookisnotkeptbyanotherborrower.
2.Thesystemupdatetherelevantbookdata.
Thelibrarianreturnsthecardtotheborrower,andsetasidetheformforrecycling.
7)FirstscenariooftheLongestkeepingtimeusecase
Thekeepingtimeisnotlongerthanthelongestkeepingtime
1.Thesystemshowthat‘anythingisok’
8)SecondscenariooftheLongestkeepingtimeusecase
Thekeepingtimeislongerthanthelongestkeepingtime
1.Thesystemtellusthismessage,andsignthebookandthecardnumber.
2.Librarianphonetheborrowertellborrowerreturnthebook
9)Firstscenarioofthebookinformationusecase
1.AborrowerinputA=followedbyanauthor’sname.
2.Thesystemdisplaytherequestedinformation.
10)Secondscenarioofthebookinformationusecase
1.AborrowerinputT=followedbythetitleofabook
2.Thesystemdisplaytherequestedinformation.
11)Thirdscenarioofthebookinformationusecase
1.AborrowerinputS=followedbythesubjectarea
2.Thesystemdisplaytherequestedinformation.
12)FirstscenarioofModifusecase
1.Alibrarianinput+tocomputer,thenscansthebarcodeonanewbook.
2.Thesysteminserttherelevantbookdata.
Thelibrariansetthebookasidetobeplacedinthebookstacks.
13)SecondscenarioofModifusecase
1.Alibrarianinput-tocomputer,thenscansthebarcodeonabook.
2.Thesystemdeletetherelevantbookdata.
Thelibrariansetsthebookasidetobepulped.
2.Entityclassmodeling
UsingNounExtractiontechnology
Description:
Anautomatedlibrarycirculationsystemistobeconstructed.Eachbookinthelibrary.Aswellaseachborrower,canbeidentifiedbyabarcode.Abookcanbeborrowed.Provideditisnotbeingkeptbyanotherborrower,atmostoneborrowercanhaveakeeponabookborrowedbyanotherborrower.Aborrowerborrowabookitwillhasalongestkeepingtime,ifkeepingtimeislongerthanthelongestkeepingtime,systemwillshowthismessage.Whenabookisreturned,alibrarianchecksitin.Borrowersandlibrariansarepermittedtoqueryabookinformationcatalogoflibraryholdings.
Identifythenouns:
Anautomatedlibrarycirculationsystemistobeconstructed.Eachbookinthelibrary.Aswellaseachborrower,canbeidentifiedbyabarcode.Abookcanbeborrowed.Provideditisnotbeingkeptbyanotherborrower,atmostoneborrowercanhaveakeeponabookborrowedbyanotherborrower.Aborrowerborrowabookitwillhasalongestkeepingtime,ifkeepingtimeislongerthanthelongestkeepingtime,systemwillshowthismessage.Whenabookisreturned,alibrarianchecksitin.Borrowersandlibrariansarepermittedtoqueryabookinformationcatalogoflibraryholdings.
Withregardtothenounsinthepreviousparagraph,borrowerandlibrarianareactors,andbarcodeisanattributeofabookandofaborrower.Accordingly,thesenounscannotcorrespondtoclasses,Inaddition,Library,keep,keeping,longestkeepingtimeandsystemareabstractnouns.Finally,bookinformationcatalogisinformationthatrelatestobooks.ThisleavesBookClassasthesolecandidateclass.
CLASSDIAGRAM
3.DynamicModeling
Statediagram
Iteractivediagram
1)Usecaseborrowbook
2)UseCaseReturnBook
3)UseCaseKeepBook
4)UseCaseLongestKeepingTime
5)UseCaseBookInformation
6)UseCaseModif
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 软件工程 分析 文档