广东工业大学学报 ›› 2017, Vol. 34 ›› Issue (06): 54-60,67.doi: 10.12052/gdutxb.160144

• 综合研究 • 上一篇    下一篇

基于形式化方法的面向方面需求分析

曲璨, 张立臣   

  1. 广东工业大学 计算机学院, 广东 广州 510006
  • 收稿日期:2016-11-11 出版日期:2017-11-09 发布日期:2017-11-22
  • 通信作者: 张立臣(1962-),男,教授,主要研究方向为信息物理系统、分布式处理等.E-mail:lchzhang@gdut.edu.cn E-mail:lchzhang@gdut.edu.cn
  • 作者简介:曲璨(1990-),女,硕士研究生,主要研究方向为信息物理融合系统、面向方面编程.
  • 基金资助:
    国家自然科学基金资助项目(61572142,61370082);广东省自然科学基金资助项目(2015A030313490)

An Aspect-oriented Requirement Analysis Based on Formal Method

Qu Can, Zhang Li-chen   

  1. School of Computer Science, Guangdong University of Technology, Guangzhou 510006, China
  • Received:2016-11-11 Online:2017-11-09 Published:2017-11-22

摘要: 面向方面编程(AOP)可以通过它的横切属性有效地解决代码缠结和分散的问题,但大部分的工作都集中在编程和实现阶段,很少有对早期的需求分析模型进行研究. 本文通过采用AOP技术对软件系统的需求分析进行研究. 首先在需求分析阶段,通过关注点分离技术识别出系统的功能需求和非功能需求,功能需求由核心关注点通过组件来实现,非功能需求由横切关注点通过方面来实现; 然后结合具有精确描述性特点的形式化语言Aspect-Z来表示组件和方面. 对于在同一连接点处需要编织多个方面且方面之间可能产生冲突的问题,通过定义方面的优先级来解决. 最后,通过定理证明的方法推理出所描述需求的性质与属性,从而对Aspect-Z规格说明进行形式化验证. 文章的最后给出应用实例.

关键词: 面向方面, 需求分析, Aspect-Z语言, 形式化验证

Abstract: Aspect-Oriented Programming (AOP) can effectively solve the code-tangling and code-scattering caused by crosscutting attributes; however, much work is presented on the programming and the implementation phase, and little has addressed the early model stages. A research is conducted on the requirements engineering phase of software by using AOP technology. First in the requirements analysis phase, the functional requirements and non-functional requirements are identified by the separation of concerns, and the functional requirements with components and the non-functional requirements with aspects are realized. Then the components and aspects are represented by combining with the formal language Aspect-Z which has the characteristics of accurate description. As actions accompany conflicts while two or more aspects affect the same joint point synchronously, a method is proposed to solve by defining aspects' priority level. In the end, the properties and attributes of the described requirements are deduced by the theorem proving method, so as to achieve the purpose of formal verification of Aspect-Z specifications. Finally, an application example is given.

Key words: AOP, requirements analysis, Aspect-Z, formal verifications

中图分类号: 

  • TP391
[1] 邵松华, 李卫华, 李承晓. AOSD在可拓策略生成系统的应用研究[J]. 广东工业大学学报, 2010, 27(2): 93-96.
[2] 黄红梅; 王竑; . 一种扩展UML在OOCMT系统分析建模中的应用[J]. 广东工业大学学报, 2003, 20(3): 28-33.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!