7 葉類屬性
定義只提供服務的“類”構件,即沒有復用連接關系的“類” 構件的屬性。因為它處于復用的低層,所以稱之為“葉類”構件。它們的特征是粒度小、具有公共功能和接口。為很多構件復用。
7.1 說明屬性
“類”說明屬性::= “構件說明屬性”
7.2 使用屬性
“類”使用屬性:: = “ 構件使用屬性 ”
7.3 內容屬性
“類”內容屬性::= “構件體”
7.4 結構屬性
“類”結構屬性::= “構件結構屬性”
7.5 評價屬性
“類”評價屬性:: = “構件評價屬性”
8 葉方法 屬性
定義只提供服務的方法或函數的構件,它們沒有復用連接關系。因為它處于復用的低層,所以稱之為“葉方法”構件。特征是粒度小、具有公共功能和接口。為很多構件復用。
8.1 說明屬性
方法說明屬性:: = “構件說明屬性”
8.2 使用屬性
方法使用屬性::= “構件使用屬性”
8.3 內容屬性
方法內容屬性::= “構件體”
8.5 結構屬性
方法結構屬性:: = <方法內聚度> [22]
<方法內聚度>::= Dhama內聚度
8.6 評價屬性
方法評價屬性::= McCabe復雜度
9 附則
本規范由“青鳥生產線技術引進、開發、應用、示范”項目組負責解釋并執行。
10 參考資料
[1] NATO Standard for Management of A Reusable Software Component Library, issued and maintained by NATO Communication and Information System Agency
[2] Jon Hopkins, Component Primer (see definitions of D.D'Souza and A.C.Wills, and B.Meyer et al), Communications of ACM, October 2000-Volume 43, Number 10.
[3] Mohamed E. Fayad and Douglas C. Schmidt, Object-Oriented Application Frameworks, Communications of the ACM, October 1997, V0l. 40, No, 10.
[4] Grady Booch, The Unified Modeling Language User Guide, Addison Wesley, Reading , MA , USA , 1998.
[5] D. D'Souza and A. C. Wills, Objects, Components and Frameworks with UML: The Catalysis Approach. Addison Wesley, Reading , MA , USA , 1999.
[6] Grady Booch, Object-Oriented Analysis and Design with Applications, Addision Wesley, Reading , MA , USA , 1994.
[7] Richard C. Lee and William M. Tepfenhart, UML and C++: A Practical Guide to Object-Oriented Development, Prentice Hall, Reading , NJ , USA , 1997.
[8] Ivar Jacobson, Martin Griss and Patrik Jonsson, Software Reuse: Architecture, Process and Organization for Business Success, Addison Wesley, Reading , NY , USA , 1997.
[9] Roger S. Pressman, Software Engineering: A Practitioner's Approach, 4 th Edition, Reading, the McGraw-Hill Companies, Inc. NY, 1997.
[10] Norman E. Fenton and Shari L. Pfleeger, Software Metrics: A Rigorous & Practical Approach, International Thomson Computer Press, 2 nd Edition, Reading , London , UK , 1997.
[11] Albrecht A. J., Measuring Application Development Productivity, Proceedings, IBM Application Development Symposium, Monterey , CA , October 1979.
[12] Barry Boehm et al., Cost Model for Future Software Life Cycle Processes: COCOMO 2.0, Annals of Software Engineering 1(1), November 1995.
[13] DeMarco T., Controlling Software Projects, Reading , Yourdon Press , NY , 1982.
[14] Thomas J. McCabe and Charles W. Butler, Design Complexity Measurement and Testing, Communications of the ACM, December 1989, Volume 32 Number 12.
[15] Coad P. and E. Yourdon , Object-Oriented Design, Reading , Prentice-Hill, 1991.
[16] E. Yourdon, Object-Oriented System Design: An Integrated Approach, Reading , Prentice-Hill, 1994.
[17] Chidamber S. R. and Kemerer C. F., A Metrics Suite for Object-Oriented Design, IEEE Trans. Software Engineering, Vol. 20, no. 6, June 1994.
[18] Bansiya J., Evaluating Framework Architecture Structural Stability, ACM Computing Surveys, vol. 32, no. 1, 2000.
[19] Lionel C. Briand, John W. Daly and Juren Wust, A Unified Framework for Cohesion Measurement in Object-Oriented Systems, Reading, ISERN-97-05, Fraunhofer Institute for Experimental Software Engineering, Kaiserslautem, Germany.
[20] Lionel C. Briand, John W. Daly and Juren Wust, A Unified Framework for Coupling Measurement in Object-Oriented Systems, Reading, ISERN-96-14, Fraunhofer Institute for Experimental Software Engineering, Kaiserslautem, Germany.
[21] Ivar Jacobson, Martin Griss and Patrik Jonsson, Software Reuse: Architecture, Process and Organization for Business Success, Reading , Addison Wesley Longman, NY, 1997.
[22] H. Dhama, Quantitative Models of Cohesion and Coupling in Software, Journal of System and Software, vol. 29, no. 4, April 1995.
文章來源于領測軟件測試網 http://www.kjueaiud.com/