第六講_軟件工作量估計_第1頁
第六講_軟件工作量估計_第2頁
第六講_軟件工作量估計_第3頁
第六講_軟件工作量估計_第4頁
第六講_軟件工作量估計_第5頁
已閱讀5頁,還剩22頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、.,軟件工作量估計,主講人:王輝 2014-03-04,.,復(fù)習(xí):項(xiàng)目計劃的三個關(guān)鍵步驟,任務(wù)分解(WBS) 工作量估計 資源、進(jìn)度安排,.,復(fù)習(xí):標(biāo)識項(xiàng)目的活動-WBS,.,復(fù)習(xí):標(biāo)識項(xiàng)目的活動-混合方法,.,復(fù)習(xí):軟件工作量的度量,源代碼行數(shù)(Source Line Of Code):SLOC 千行代碼(Kilo Line Of Code):KLOC 功能點(diǎn)(Function Point):FP,實(shí)現(xiàn)方法無關(guān) 人月(person month):pm,125個工時,.,復(fù)習(xí):軟件工作量估計的方法,專家判斷 類比估計 由底向上 自頂向下 Albrecht功能點(diǎn) Mark II 功能點(diǎn) COSM

2、IC全功能點(diǎn),.,復(fù)習(xí):功能點(diǎn)的步驟,確定系統(tǒng)中的功能(構(gòu)件)的類型 確定每種功能的權(quán)重 加權(quán)求和為系統(tǒng)的功能點(diǎn),.,復(fù)習(xí):Albrecht功能類型,External input (EI) types 外部輸入類型 input transactions which update internal computer files. External output (EO) types 外部輸出類型 transactions which extract and display data from internal computer files. Generally involves creating

3、 reports External inquiry (EQ) types 外部查詢類型 user initiated transactions which provide information but do not update computer files. Normally the user inputs some data that guides the system to the information the user needs.,.,復(fù)習(xí):Albrecht功能類型,Logical interface file (LIF) types 內(nèi)部邏輯文件類型 equates rough

4、ly to a datastore in systems analysis terms. Created and accessed by the target system. External interface file types (EIF) 外部接口文件類型 where data is retrieved from a datastore which is actually maintained by a different application.,.,復(fù)習(xí):Albrecht功能的權(quán),.,課堂測試,研發(fā)一個信息系統(tǒng),該系統(tǒng)的外部輸入類型有兩個,復(fù)雜度分別為低和高;復(fù)雜度為高的外部輸出類

5、型1個;復(fù)雜度為中的內(nèi)部邏輯文件類型2個;復(fù)雜度為低的外部接口文件類型3個。請用Albrecht方法估計其工作量。,3 + 6 + 7 + 10 * 2 + 5 * 3 = 51,.,復(fù)習(xí):Mark II功能點(diǎn),data items input (Ni) data items output (No) entity types accessed (Ne),#entities accessed,#input items,#output items,FP count = Ni * 0.58 + Ne * 1.66 + No * 0.26,.,復(fù)習(xí):COSMIC全功能點(diǎn),The following a

6、re counted: Entries 進(jìn)入: movement of data into software component from a higher layer or a peer component Exits 退出: movements of data out Reads 讀: data movement from persistent storage Writes 寫: data movement to persistent storage Each counts as 1 COSMIC functional size unit (Cfsu),.,軟件工作量估計的具體方法,3.1

7、 專家判斷 3.2 類比估計 3.3 由底向上 3.4 自頂向下 3.5 Albrecht功能點(diǎn) 3.6 Mark II 功能點(diǎn) 3.7 COSMIC全功能點(diǎn) 3.8 COCOMO:參數(shù)化的生產(chǎn)率模型,.,3.8 COCOMO,Boehm的COCOMO 81 (COnstructive COst MOdel, 構(gòu)造型成本模型) COCOMO II是其最新的發(fā)展,.,COCOMO 81,Basic model effort = c x sizek Effort 是按人月(pm)度量的 Size 是按kdsi度量的,千行源代碼 c, k取決于系統(tǒng)的類型:有機(jī)式(organic),半相連式(semi

8、-detached),嵌入式(embedded),.,The COCOMO 81 Constants,k exponentiation to the power of adds disproportionately more effort to the larger projects takes account of bigger management overheads,.,COCOMO II,An updated version of COCOMO 81: There are different COCOMO II models for estimating at the early de

9、sign stage and the post architecture stage when the final system is implemented. Well look specifically at the first. The core model is: pm = A(size)(sf) (em1) (em2) (em3). where pm = person months, A is 2.94, size is number of thousands of lines of code (kdsi, kloc), sf is the scale factor, and em

10、is an effort multiplier,.,COCOMO II: scale factor(sf),sf = B(0.91) + 0.01 ,Precedentedness (PREC) 有先例. Degree to which there are past examples that can be consulted Development flexibility (FLEX) 開發(fā)靈活性. Degree of flexibility that exists when implementing the project Architecture/risk resolution (RES

11、L) 構(gòu)架/風(fēng)險解決方案. Degree of uncertainty about requirements Team cohesion (TEAM) 團(tuán)隊(duì)凝聚力. Process maturity (PMAT) 過程成熟度 Could be assessed by CMMI,.,Scale Factors,.,Example,A software development team is developing an application which is very similar to previous ones it has developed. A very precise softwa

12、re engineering document lays down very strict requirements. PREC is very high (score 1.24). FLEX is very low (score 5.07). The good news is that these tight requirements are unlikely to change (RESL is high with a score 2.83). The team is tightly knit (TEAM has high score of 2.19), but processes are

13、 informal (so PMAT is low and scores 6.24),.,Scale Factor,sf = 0.91 + 0.01 (1.24 + 5.07 + 2.83 + 2.19 + 6.24) = 0.91 + 0.01 17.56 = 0.91 + 0.1756 = 1.0856,If system contained 10 kloc then estimate would be 2.94 x 101.0857 = 35.8135 person months,.,COCOMO II: effort multiplier (em),RCPX Product relia

14、bility and complexity (產(chǎn)品的可靠性和復(fù)雜度) RUSE Reuse required (需要的可用性) PDIF Platform difficulty (平臺難度) PERS Personnel capability (人員的能力) PREX Personnel Experience (人員的經(jīng)驗(yàn)) FCIL Facilities available (設(shè)施的可用性) SCED Schedule pressure (進(jìn)度壓力),.,Effort Multiplier,.,Example -continued,RCPX (產(chǎn)品的可靠性和復(fù)雜度)very high1.91 PDIF (平臺難度) very high1.81 PERS (人員的能力) extra high0.50 PREX (人員的經(jīng)驗(yàn)) nominal1.00 All other factors are nominal Say estimate is 35.8135 person months With effort multipliers this b

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論