基于模型检验的动态体系结构建模
Verifying Patterns of Dynamic Architectures using Model Checking
摘要:
架构模式捕获架构设计经验,并为重复出现的架构设计问题提供抽象的解决方案。它们包括对组件类型的描述,并限制组件连接和激活。因此,它们保证了采用该模式的体系结构的一些所需属性。不幸的是,大多数文档化的模式都没有提供正式的保证,以证明它们的规范是否确实导致了所需的保证。然而,如果不这样做,可能会导致错误的体系结构,即,被错误地认为具有某些理想属性的建筑。由于架构通常对最终系统的质量有很大的影响,并且架构缺陷即使不是说不可能也很难修复,因此这可能导致最终系统中无法修复的质量问题。为了解决这个问题,我们提出了一种基于模型检验的方法来验证模式规格w.r.t.他们的保证。在下文中,我们将该方法应用于三种著名的动态架构模式:Singleton、Model-View-Controller和Broker模式。因此,我们发现了所有三个规范的模糊性和缺失的约束。因此,我们得出结论,使用模型检验来验证动态体系结构的模式是可行的,并且对于发现模式规范中的歧义和缺陷是有用的。
英文摘要:
Architecture patterns capture architectural design experience and provide abstract solutions to recurring architectural design problems. They consist of a description of component types and restrict component connection and activation. Therefore, they guarantee some desired properties for architectures employing the pattern. Unfortunately, most documented patterns do not provide a formal guarantee of whether their specification indeed leads to the desired guarantee. Failure in doing so, however, might lead to wrong architectures, i.e., architectures wrongly supposed to show certain desired properties. Since architectures, in general, have a high impact on the quality of the resulting system and architectural flaws are only difficult, if not to say impossible, to repair, this may lead to badly reparable quality issues in the resulting system. To address this problem, we propose an approach based on model checking to verify pattern specifications w.r.t. their guarantees. In the following we apply the approach to three well-known patterns for dynamic architectures: the Singleton, the Model-View-Controller, and the Broker pattern. Thereby, we discovered ambiguities and missing constraints for all three specifications. Thus, we conclude that verifying patterns of dynamic architectures using model checking is feasible and useful to discover ambiguities and flaws in pattern specifications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。