• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2008, Vol. 30 ›› Issue (5): 41-43.

• 论文 • 上一篇    下一篇

一种基于CSP的面向方面状态图形式化描述方法

王斌 刘菲 桂卫华 陈松乔   

  • 出版日期:2008-05-01 发布日期:2010-05-19

  • Online:2008-05-01 Published:2010-05-19

摘要:

面向方面通过分离关注点解决软件系统中的横切问题,通过扩展UML可实现对面向方面的建模。本文利用UML的扩展机制将方面加入状态图中,描述了状态图中的方面与核心组件 以及方面之间的编织,然后利用进程代数的形式化语义描述了扩展后的UML状态图,克服了扩展UML描述状态图的缺乏形式化动态语义,不利于对模型进行形式化验证和证明的缺
 点。最后,以ATM自动取款机为例验证了基于CSP的面向方面状态图形式化描述的有效性。

关键词: 编织 形式化语义 CSP 面向方面的状态图

Abstract:

Aspect-oriented techniques implement the crosscutting problem in software systems by separating concern points. We can realize aspect-oriented modeling by extending UML. This paper adds aspects to statecharts, adopting the UML extension mechanism. It discribes the weaving process between aspects and c
  ore components, as well as the weaving process between aspects themselves in statecharts, and then uses the formal semantics of process algebra to descr  ibe extend- ed statecharts. In this way, it overcomes the flaws of formal dynamic semantics for extended UML statecharts. Finally, it takes ATM as an ex ample to verify the validity of aspect-oriented statechart formal description based on CSP.

Key words: weaving, formal semantics ;CSP, aspect-oriented statechart