Change-driven consistency for component code, architectural models, and contracts

Max E. Kramer, M. Langhammer, Dominik Messinger, Stephan Seifermann, Erik Burger
{"title":"Change-driven consistency for component code, architectural models, and contracts","authors":"Max E. Kramer, M. Langhammer, Dominik Messinger, Stephan Seifermann, Erik Burger","doi":"10.1145/2737166.2737177","DOIUrl":null,"url":null,"abstract":"During the development of component-based software systems, it is often impractical or even impossible to include all development information into the source code. Instead, specialized languages are used to describe components and systems on different levels of abstraction or from different viewpoints: Component-based architecture models and contracts, for example, can be used to describe the system on a high level of abstraction, and to formally specify component constraints. Because models, contracts, and code contain redundant information, inconsistencies can occur if they are modified independently. Keeping this information consistent manually can require considerable effort, and can lead to costly errors, for example, when security-relevant components are verified against inconsistent contracts. In this paper, we present an approach for keeping component- based architecture models and contracts specified in the Java Modeling Language (JML) consistent with Java source code. We use change-driven incremental transformations and the Vitruvius framework to automate the consistency preservation where this is possible. Using two case studies, we demonstrate how to detect and propagate changes and refactoring operations to keep models and contracts consistent with the source code.","PeriodicalId":359460,"journal":{"name":"2015 18th International ACM SIGSOFT Symposium on Component-Based Software Engineering (CBSE)","volume":"10 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2015-05-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"29","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2015 18th International ACM SIGSOFT Symposium on Component-Based Software Engineering (CBSE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2737166.2737177","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 29

Abstract

During the development of component-based software systems, it is often impractical or even impossible to include all development information into the source code. Instead, specialized languages are used to describe components and systems on different levels of abstraction or from different viewpoints: Component-based architecture models and contracts, for example, can be used to describe the system on a high level of abstraction, and to formally specify component constraints. Because models, contracts, and code contain redundant information, inconsistencies can occur if they are modified independently. Keeping this information consistent manually can require considerable effort, and can lead to costly errors, for example, when security-relevant components are verified against inconsistent contracts. In this paper, we present an approach for keeping component- based architecture models and contracts specified in the Java Modeling Language (JML) consistent with Java source code. We use change-driven incremental transformations and the Vitruvius framework to automate the consistency preservation where this is possible. Using two case studies, we demonstrate how to detect and propagate changes and refactoring operations to keep models and contracts consistent with the source code.
组件代码、体系结构模型和契约的变更驱动的一致性
在基于组件的软件系统的开发过程中,将所有的开发信息包含到源代码中通常是不切实际的,甚至是不可能的。相反,专门的语言用于在不同的抽象层次或从不同的观点描述组件和系统:例如,基于组件的体系结构模型和契约可用于在较高的抽象层次上描述系统,并形式化地指定组件约束。由于模型、契约和代码包含冗余信息,如果单独修改它们,就会出现不一致的情况。手动保持这些信息的一致性可能需要相当大的努力,并且可能导致代价高昂的错误,例如,当根据不一致的契约验证与安全相关的组件时。在本文中,我们提出了一种方法,使Java建模语言(JML)中指定的基于组件的体系结构模型和契约与Java源代码保持一致。我们使用变更驱动的增量转换和Vitruvius框架在可能的情况下自动保持一致性。通过两个案例研究,我们演示了如何检测和传播更改以及重构操作,以保持模型和契约与源代码一致。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信