模态对象图
Modal Object Diagrams
摘要:
虽然对象图(OD)被广泛用作记录面向对象系统的一种手段,但它们的表达能力很弱,因为它们仅限于描述手头系统的特定可能快照。在本文中,我们介绍了模态对象图(MOD),扩展了经典的OD语言的积极/消极和示例/不变的模态。扩展语言允许设计者不仅指定正例模型,还指定负例模型,即系统不应允许的模型,正不变量,即所有系统快照都应包含的模型,以及负不变量,即不允许系统快照包含的模型。此外,作为扩展语言的主要应用,我们提供了一种形式化验证技术,该技术决定给定类图是否满足(即,模型)多模态对象图规范。在否定答案的情况下,该技术输出相关的反例对象模型(如适用)。该验证基于合金的还原。这些想法在原型Eclipse插件中实现。实例表明,扩展语言在指定面向对象系统的结构要求,在一个直观的表达方式的有用性。
英文摘要:
While object diagrams (ODs) are widely used as a means to document object-oriented systems, they are expressively weak, as they are limited to describe specific possible snapshots of the system at hand. In this paper we introduce modal object diagrams (MODs), which extend the classical OD language with positive/negative and example/invariant modalities. The extended language allows the designer to specify not only positive example models but also negative examples, ones that the system should not allow, positive invariants, ones that all system's snapshots should include, and negative invariants, ones that no system snapshot is allowed to include. Moreover, as a primary application of the extended language we provide a formal verification technique that decides whether a given class diagram satisfies (i.e., models) a multi-modal object diagrams specification. In case of a negative answer, the technique outputs relevant counterexample object models, as applicable. The verification is based on a reduction to Alloy. The ideas are implemented in a prototype Eclipse plug-in. Examples show the usefulness of the extended language in specifying structural requirements of object-oriented systems in an intuitive yet expressive way.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。