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

J4 ›› 2008, Vol. 30 ›› Issue (12): 118-121.

• 论文 • 上一篇    下一篇

UML2.0顺序图的一种有穷自动机模型

刘传会[1] 戎玫[2] 张广泉[1]   

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

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

摘要:

为了在软件开发早期阶段对UML2.0顺序图模型进行分析和验证,本文给出了UML2.0顺序图的一种有穷自动机模型。首先给出了顺序图在语法和语义上的形式化描述,然后提出了一种使有穷自动机来描述每个对象在顺序图描述的场景中所参与的事件序列的方法,并将该方法扩展到带有组合片段的UML2.0顺序图,最后分析了UML2.0顺序图中的时间建模机制,设计了从UML2.0顺序图中提取时间约束的算法。以上工作为使用模型检测工具UPPAAL对顺序图模型进行进一步的分析与验证奠定了基础。

关键词: UML2.0顺序图 UPPAAL 有穷自动机 时间自动机

Abstract:

In order to analyse and verify the UML2.0 sequence diagram model in the early stage of software development, a finite automata model of the UML2.0 seq  uence diagram is introduced in this paper. Firstly, the precise definitions of the UML sequence diagram in the forms of syntactics and semantics are presented. Then a finite automata is introduced to describe the events that every object participates in the scenario which is depicted by the sequence dia gram, after that the automata is extended to describe the UML2.0 sequence diagram that contains combined fragments. Finally, the time modeling mechanism   in the UML2.0 sequence diagram is analyzed, after that an algorithm is introduced to extract the timing con- straints from the UML2.0 sequence diagram.   All the work stated above lays the foundation for a further analysis and verification of the sequence diagram using UPPAAL

Key words: UML2.0 sequence diagram, UPPAAL, finite automata, timed automata