摘要
为了构造可扩充、可配置、可控制的状态模型 ,提出了一个可构造的反演状态模式 .基于体系结构的反演模式和角色对象模式 ,讨论了状态设计模式中结构和行为的反演方法及其手段 ;给出了其反演模式体系结构的元级和基本级对象结构 ;使用 MOP(meta objectprotocol)规程给出了元级和基本级的关系 ,讨论了反演状态模式的元对象反演到基本级对象群的“截取和求精 (interception和 reification)”机制 .此外 。
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.
出处
《软件学报》
EI
CSCD
北大核心
2001年第8期1242-1249,共8页
Journal of Software
基金
国家教育部科学技术重点规划资助项目(99188)
武汉市科学技术规划资助项目(2 0 0 110 0 10 0 1)&&
关键词
角色模型
反演模式
角色对象模式
软件工程
软件模式
role model
pattern of state design
reflective pattern
pattern of role object
UML (unified modeling language)