Java類和包的易替換性度量與影響因素分析
發(fā)布時(shí)間:2018-04-05 18:51
本文選題:類的易替換性 切入點(diǎn):包的易替換性 出處:《電子學(xué)報(bào)》2017年09期
【摘要】:按照ISO25010標(biāo)準(zhǔn)中代碼易替換性定性描述,人們很難從被替換軟件產(chǎn)品的代碼出發(fā),定量地刻畫(huà)其易替換性.為了自動(dòng)化地度量代碼的易替換性,本文充分考慮Java類/包的耦合關(guān)系和本身的復(fù)雜度,定義了一個(gè)類/包的易替換性度量公式.然后,在100個(gè)開(kāi)源項(xiàng)目上進(jìn)行實(shí)驗(yàn),結(jié)果表明:(1)不同構(gòu)造型的類的易替換性差異較大,其差異性與類承擔(dān)的交互職責(zé)的多少有關(guān);(2)包的易替換性與包中類個(gè)數(shù)沒(méi)有顯著的線性相關(guān)性;(3)與按層次劃分的包相比,按功能特性劃分的包具有更高的易替換性.從代碼易替換性角度來(lái)看,在設(shè)計(jì)類和包時(shí),本文的經(jīng)驗(yàn)研究為開(kāi)發(fā)者提供了有益的建議.
[Abstract]:According to the qualitative description of code substitutability in ISO25010 standard, it is difficult to quantitatively describe the substitutability from the code of replaced software products.In order to automatically measure the substitutability of code, this paper fully considers the coupling relation of Java class / package and its complexity, and defines a measure formula of class / package's substitutability.Then, on 100 open source projects, the results show that there are significant differences in the substitutability of different stereotype classes.The difference is related to the number of interaction duties undertaken by classes, which is related to the substitutability of packets and the fact that there is no significant linear correlation between the number of classes in the packets and the number of classes in the packets. Compared with the packets divided by hierarchy, the packets classified by their functional characteristics have higher substitutability.From the point of view of code substitutability, the empirical study of this paper provides useful suggestions for developers when designing classes and packages.
【作者單位】: 東南大學(xué)計(jì)算機(jī)科學(xué)與工程學(xué)院;
【基金】:國(guó)家自然科學(xué)基金(No.61572126,No.61402103) 華為技術(shù)有限公司項(xiàng)目(No.YBN2016020009)
【分類號(hào)】:TP312.2
【相似文獻(xiàn)】
相關(guān)期刊論文 前2條
1 蔡家楣;;基于元設(shè)計(jì)模式的構(gòu)造型說(shuō)明語(yǔ)義[J];計(jì)算機(jī)科學(xué);2004年08期
2 張賢驥;王倫文;;基于構(gòu)造型神經(jīng)網(wǎng)絡(luò)的異常模式發(fā)現(xiàn)方法[J];計(jì)算機(jī)科學(xué);2014年07期
,本文編號(hào):1716015
本文鏈接:http://sikaile.net/kejilunwen/ruanjiangongchenglunwen/1716015.html
最近更新
教材專著