基于衍型的模式标注方法  被引量:1

Stereotype based pattern notation method

在线阅读下载全文

作  者:刘伟[1] 胡志刚[1] 

机构地区:[1]中南大学信息科学与工程学院,长沙410083

出  处:《计算机应用》2012年第11期3062-3066,共5页journal of Computer Applications

基  金:国家自然科学基金资助项目(60970038)

摘  要:设计模式在面向对象软件设计、开发和维护中发挥着非常重要的作用。为了克服现有设计模式标注方法的缺陷与不足,提出一种基于衍型的模式标注方法 SBPN。基于UML衍型机制,SBPN不仅提供了一套规则用于精确标注结构图中类、方法或属性等模型元素的模式角色相关信息,还可以标注交互图中的模式信息。此外,SBPN为源代码中模式信息的标注也提供了相应的解决方案。给出了使用SBPN方法标注类图、交互图和源代码中的模式信息的实例,最后还将SBPN应用于一个较为复杂的排序系统。Design pattern plays a very important role in object-oriented software design,development and maintenance.In order to overcome the drawbacks and weaknesses of the previous methods for design patterns' notation,SBPN,a stereotype-based pattern notation method was proposed.Based on the stereotype mechanism in Unified Modeling Language(UML),SBPN provides some rules for labeling pattern-related information.It can not only identify precisely the role of a modeling element,such as a class,a method or an attribute in structural diagrams,but also label the information in interaction diagrams.What's more SBPN provides a solution for labeling pattern-related information in source codes.Some cases were given to describe how to label pattern-related information in class diagrams,interaction diagrams and source codes,and a complex design diagram of sort system was also labeled by SBPN.

关 键 词:设计模式 统一建模语言 角色 衍型 模式标注 

分 类 号:TP311.5[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象