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

J4 ›› 2010, Vol. 32 ›› Issue (3): 96-103.doi: 10.3969/j.issn.1007130X.2010.

• 论文 • 上一篇    下一篇

UML的形式化描述语义

单黎君, 朱鸿   

  1. (国防科学技术大学计算机学院,湖南 长沙 410073)
  • 收稿日期:2008-11-06 修回日期:2009-02-10 出版日期:2010-03-10 发布日期:2010-03-10
  • 通讯作者: 单黎君
  • 作者简介:单黎君(1979),女,河南开封人,博士生,研究方向为软件建模语言和软件测试;朱鸿,博士,教授,研究方向为软件工程。

A Formal Descriptive Semantics of UML

 SHAN Li-Jun, ZHU Hong   

  1. (School of Computer Science,National University of Defence Technology,Changsha 410073,China)
  • Received:2008-11-06 Revised:2009-02-10 Online:2010-03-10 Published:2010-03-10
  • Contact: SHAN Li-Jun

摘要: 本文提出了一种新的定义UML形式化语义的方法。我们将建模语言的语义区分为描述语义和功能语义两个方面。描述语义定义哪些系统满足模型,功能语义定义模型中的基本概念。本文用一阶逻辑定义了UML的类图、交互图和状态图的描述语义,并介绍我们实现的将UML模型转换成逻辑系统的软件工具LAMBDES,该工具集成了定理证明器SPASS,可以对模型进行自动推理。我们成功地将此方法和工具应用于模型的一致性检查。

关键词: 建模语言, 形式化语义, UML, 一阶逻辑, 一致性检查

Abstract: This paper proposes a novel approach to the formal definition of the UML semantics. We distinguish the descriptive semantics from the functional semantics of modelling languages. The former defines which system is an instance of a model while the later defines the basic concepts underlying the models. In this paper, the descriptive semantics of class diagrams, interaction diagrams and state machine diagrams are defined by first order logic formulas. A translation tool is implemented and integrated with the theorem prover SPASS to enable automated reasoning about models. The formalisation and reasoning of models is then applied to model consistency checking.

Key words: modelling language;formal semantics;UML;first order logic;consistency checking

中图分类号: