软件工程分析文档.docx
《软件工程分析文档.docx》由会员分享,可在线阅读,更多相关《软件工程分析文档.docx(8页珍藏版)》请在冰豆网上搜索。
![软件工程分析文档.docx](https://file1.bdocx.com/fileroot1/2023-2/25/33509992-a8b7-44e8-ab90-5a8813eb76db/33509992-a8b7-44e8-ab90-5a8813eb76db1.gif)
软件工程分析文档
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