《软件工程Ch11.ppt》由会员分享,可在线阅读,更多相关《软件工程Ch11.ppt(24页珍藏版)》请在第壹文秘上搜索。
1、123PrintJobcom puteJobinitiateJobnum berO fPages num berO fSi des paperType paperW ei ght paperSi ze paperC ol or m agni fi cati on col orRequi rem ents producti onFeatures col l ati onO pti ons bi ndi ngO pti ons coverStock bl eed pri ori ty total JobC ost W O num ber Pri ntJobcom putePageC ost ()
2、com putePaperC ost () com puteProdC ost () com puteTotal JobC ost () bui l dW orkO rder() checkPri ori ty () passJobto Producti on() el aborated desi gn cl ass co m p u teJo bcom putePageC ost () com putePaperC ost () com puteProdC ost () com puteTotal JobC ost () i n i ti ateJo bbui l dW orkO rder(
3、) checkPri ori ty () passJobto Producti on()design com ponentnum berO fPages num berO fSides paperType m agnification productionFeaturesPrintJobcom puteJobCost() passJobtoPrinter() analysis class4Com putePageCostdesi gn com ponentaccessCostsDBgetJobDatael aborated m odul ePageCosti n: job si ze i n:
4、 col or=1, 2, 3, 4 i n: pageSi ze = A, B, C, B out: BPC out: SF i n: num berPages i n: num berDocs i n: si des= 1, 2 i n: col or=1, 2, 3, 4 i n: page si ze = A, B, C, B out: page cost job si ze (JS) = num berPages * num berDocs;l ookup base page cost (BPC) - accessCostsDB (JS, col or); l ookup si ze
5、 factor ( SF) - accessCostDB (JS, col or, si ze) job com pl exi ty factor (JCF) = 1 + (si des-1)*si deCost + SFpagecost = BPC * JCF getJobData (num berPages, num berDocs, si des, col or, pageSi ze, pageCost)accessCostsDB (jobSi ze, col or, pageSi ze, BPC, SF)com putePageCost ()5 (共同利用原则:不一起利用的类不放在一个
6、分组内)67These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 20058These courseware materials are to be used in conjunction with Software Engineering:
7、 A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 20059These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associ
8、ates, Inc., copyright 1996, 2001, 200510These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 200511: ProductionJob: WorkOrder:JobQueue1: buildJob (
9、 WOnumber)2: submitJob ( WOnumber)These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 200512Pri ntJobcom puteJobi ni ti ateJobProducti onJobbui l
10、dJobsubm i tJobW orkO rderappropri ate attri butesbui l dW orkO rder ()getJobDescri i pti onJobQ ueueappropri ate attri butescheckPri ori ty () i ni ti ateJobpassJobToProducti on()These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and ar
11、e provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 200513val i date attri butes i nputaccessPaperD B (w ei ght)returns baseC ostperPagesi ze = BpaperC ostperPage = paperC ostperPage *1 .2si ze = CpaperC ostperPage = paperC ostperPage *1 .4si ze = DpaperC ostperPage
12、 = paperC ostperPage *1 .6col or i s custompaperC ostperPage = paperC ostperPage *1 .1 4col or i s standardpaperC ostperPage = baseC ostperPagereturns(paperC ostperPage )These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided
13、 with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 200514bui l di ngJobD ataentry/readJobD ata () exi t/di spl ayJobD ata () do/checkC onsi stency() i ncl ude/dataI nputentry/com puteJob exi t/save total JobC ost form i ngJobentry/bui l dJob exi t/save W O num ber do/ com pu
14、ti ngJobC ostsubm i tti ngJobentry/subm i tJob exi t/i ni ti ateJob do/pl ace on JobQ ueue behavi or w i thi n the state bui l di ngJobDatadataI nputCom pl eted al l data i tem s consi stent/di spl ayUserOpti ons dataI nputI ncom pl ete jobCostAccepted custom er i s authori zed/ getEl ectroni cSi gn
15、ature jobSubm i tted al l authori zati ons acqui red/ pri ntW orkOrder These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 200515These courseware
16、materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 200516These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 200517These courseware materials are to be used in conjunction with Software Engineering: A Practit