Professional Documents
Culture Documents
基于构件的软件设计模型
贺 岚 狄玉来3
( 中央民族大学计算机系 北京 100081)
3 ( 北方交通大学计算机科学技术系 北京 100044)
摘 要 构件式软件设计是从根本上实施软件复用的重要途径. 文中结合层次的面向对象设计结
构, 讨论了类属构件 GRC 的模型, 该模型的建立从几方面反映了可复用构件的类属性和应用环境.
论文就类属构件提出了用于软件设计的机制和例化过程.
中图法分类号 T P 31115
Abstract T he com ponen t fo rm of softw a re design is an im po rtan t w ay in softw a re reu se. H ere
d iscu ssed is a m odel of generic reu se com ponen t w ith h iera rch ica l ob ject 2o rien ted design a rch itec2
tu re. T h is m odel reflects genericity of GRC and its app lica tion environm en t. T he m echan ism of
softw a re design and the p rocess of in stan tia tion w ith GRC is a lso d iscu ssed.
1 引 言
© 1995-2004 Tsinghua Tongfang Optical Disc Co., Ltd. All rights reserved.
452 计算机研究与发展 1998年
3 GRC 的例化过程
所示.
图 3 是一个例化关系实例. CM D 1 是存于构件模型库中的“汽车配件订货”的 CM D , 因此可以例化出“建
材订货”
的 CM D 即 CM D 2、
“家电零配件订货”
的 CM D 即 CM D 3 和“通信器材订货”的 CM D 即 CM D 4. 显然
这类问题的订货业务是类似的, 因而可以复用已有的设计. 从图中可以看出 CM D 2 的 D 1′
和 D 2′
, CM D 3 的
D 3′
以及 CM D 4的 D 3″
分别例化了 CM D 1的设计 D 1, D 2和 D 3, 而 CM D 3和 CM D 4同时也含有基本设计 D 4, D 5
和 D 6.
5 结束语
参 考 文 献
© 1995-2004 Tsinghua Tongfang Optical Disc Co., Ltd. All rights reserved.