引用本文:何克清,应时,何非.一个可构造的反演状态模式.软件学报,2001,12(8):1242-1249
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 3810次   下载 5410 本文二维码信息
码上扫一扫!
分享到: 微信 更多
一个可构造的反演状态模式
何克清1, 应时1, 何非1
国立先端科学技术研究大学日本 1 武汉大学软件工程国家重点实验室湖北武汉 430072
摘要:
为了构造可扩充、可配置、可控制的状态模型,提出了一个可构造的反演状态模式.基于体系结构的反演模式和角色对象模式,讨论了状态设计模式中结构和行为的反演方法及其手段;给出了其反演模式体系结构的元级和基本级对象结构;使用MOP(metaobjeotprotoco1)规程给出了元级和基本级的关系,讨论了反演状态模式的元对象反演到基本级对象群的"截取和求精(interception和reification)”机制.此外,还给出了一个应用可构造的反演状态模式的[记账凭证处理型]应用事例.
关键词:  角色模型  状态设计模式  反演模式  角色对象模式  UMI.(unified modeling language)
DOI:
分类号:
基金项目:国家教育部科学技术重点规划资助项目(99188);武汉市科学技术规划资助项目(20011001001)
A Constructive Pattern for State Reflection
HE Ke qing,YING Shi,HE Fei
Abstract:
In order to construct extendable, configurable and controllable state model, a constructive pattern for state reflection is proposed in this paper. Based on the reflective pattern of software architecture and role object pattern, the reflection approach for structure and behavior in the pattern of state design is discussed. At meta level and base level, the object structures for architecture of reflective pattern are designed. The relationship between the meta level and the base level is presented with the protocol of MOP (meta object protocol). The mechanism of interception and reification for object reflections from the meta level to the base level is discussed in the pattern of state reflection. Finally, an example of voucher using the pattern of state reflection is given in this paper.
Key words:  role model  pattern of state design  reflective pattern  pattern of role object  UML (unified modeling language)