arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1807.08576cs.PLcs.SE
收藏

Clafer:结构、行为和可变性的轻量级建模

Clafer: Lightweight Modeling of Structure, Behaviour, and Variability

Paulius Juodisius, Atrisha Sarkar, Raghava Rao Mukkamala, Michal Antkiewicz, Krzysztof Czarnecki, Andrzej Wasowski

摘要:

嵌入式软件在规模和复杂性上快速增长,导致复杂体系结构和复杂控制的紧密混合。因此,软件规格说明需要对系统的结构和行为进行建模。不幸的是,现有的语言没有很好地集成这些方面,通常优先考虑其中之一。通常为每个方面开发一种单独的语言。在本文中,我们贡献Clafer:一个小语言,试图解决这一挑战。它结合了丰富的结构建模与最先进的行为形式主义。我们不知道有任何其他建模语言可以无缝地结合系统和软件建模的这些方面。我们展示了如何Clafer,在一个单一的统一的语法和语义,允许捕捉功能模型(可变性),组件模型,离散控制模型(自动机)和可变性涵盖所有这些方面。该语言是建立在一阶逻辑之上的,其基本实体上的量词(用于建模结构)与线性时态逻辑(用于建模行为)相结合。在这个语义基础之上,我们建立了一个简单但富有表现力的语法,精心挑选的语法扩展,涵盖层次建模,关联,自动机,场景,和德怀尔的属性模式丰富。我们使用功率窗口案例研究评估Clafer,并将其与其他与其范围(SysML,AADL,Temporal OCL和Live Sequence Charts)基本重叠的符号进行比较,讨论使用单一符号的好处和危险。

英文摘要:

Embedded software is growing fast in size and complexity, leading to intimate mixture of complex architectures and complex control. Consequently, software specification requires modeling both structures and behaviour of systems. Unfortunately, existing languages do not integrate these aspects well, usually prioritizing one of them. It is common to develop a separate language for each of these facets. In this paper, we contribute Clafer: a small language that attempts to tackle this challenge. It combines rich structural modeling with state of the art behavioural formalisms. We are not aware of any other modeling language that seamlessly combines these facets common to system and software modeling. We show how Clafer, in a single unified syntax and semantics, allows capturing feature models (variability), component models, discrete control models (automata) and variability encompassing all these aspects. The language is built on top of first order logic with quantifiers over basic entities (for modeling structures) combined with linear temporal logic (for modeling behaviour). On top of this semantic foundation we build a simple but expressive syntax, enriched with carefully selected syntactic expansions that cover hierarchical modeling, associations, automata, scenarios, and Dwyer's property patterns. We evaluate Clafer using a power window case study, and comparing it against other notations that substantially overlap with its scope (SysML, AADL, Temporal OCL and Live Sequence Charts), discussing benefits and perils of using a single notation for the purpose.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑