计算机科学 ›› 2009, Vol. 36 ›› Issue (8): 177-181.

• 软件工程与数据库技术 • 上一篇    下一篇

基于角色的设计模式形式建模及演化

孙军梅,缪淮扣   

  1. (杭州师范大学信息科学与工程学院 杭州 310036);(上海大学计算机工程与科学学院 上海 200072)
  • 出版日期:2018-11-16 发布日期:2018-11-16
  • 基金资助:
    本文受国家自然科学基金项目(批准号:60673115)和上海市重点学科建设项目(项目编号:J50103)资助。

Formal Modeling and Evolution of Design Pattern Based on Role

SUN Jun-mei,MIAO Huai-kou   

  • Online:2018-11-16 Published:2018-11-16

摘要: 重用设计在改善软件开发过程中的作用越来越受到人们的重视。面向对象的软件设计模式概念的提出为软件设计的重用打开了新的局面。但在设计模式的具体应用中存在实现、文档和组合的问题。给出了一种基于角色的设计模式形式建模方法,将类、类属性、类之间的关系等都看作角色,并用形式建模语言Objcet-Z形式表示这些角色,可有效地解决设计模式实例化时存在的问题。基于角色的设计模式形式模型在演化时也基于角色进行演化,将模式的演化分为角色层演化和模式层演化,模式层演化是由多个角色层演化组成的。演化后的模型可以通过定理证明器验证与

关键词: 设计模式,Objcet-Z,角色,演化,验证

Abstract: Design reuse becomes important in improving software development process. The concept of object oriented design pattern opens the situation for software design reuse. Inhere arc barriers when instantiating the design patterns,such as implementation, documentation, composition. This paper presented a formal modeling approach based on role.Class,attribute of class,the relation between class all are treated as roles and all roles are modeled with Object-Z. This effectively resolves the barriers when instantiating the design patterns. The formal model of design pattern is also cvolved based on role. The evolution is divides into role layer evolution and pattern layer evolution. Pattern layer evolution is composed of role layer evolution. The model consistence can be verificated with formal theory prover.

Key words: Design pattern, Object-Z, Role, Evolution, Verification

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!