将需求模型类型化为协程
Typing Requirement Model as Coroutines
AI总结:
针对MDE中需求模型正确性保障需求,提出基于协程的类型系统,将REModel契约的前后置条件对应协程的接收与产出部分,支持类型组合以匹配序列图行为,经RM2PT四个案例验证有效。
摘要:
模型驱动工程(Model-Driven Engineering, MDE)是一种旨在提升软件开发生产力并保障关键系统安全性的技术。MDE的核心环节是将高层需求模型精化为可执行代码。由于需求模型是整个开发流程的基础,确保其正确性至关重要。RM2PT是一款广泛使用的MDE平台,采用REModel语言进行需求建模。REModel包含契约部分以及含UML序列图的其他部分。本文提出了一种基于协程的类型系统,该系统将需求模型契约部分中的前置条件和后置条件分别表示为协程的接收部分和产出部分。该类型系统支持协程类型的组合,使用户可将函数视为一个完整系统并检查其整体行为。通过这种方式,我们的类型系统可确保其中定义的契约按照配套序列图中的规定执行。我们使用RM2PT提供的四个案例研究对该方法进行了评估,验证了模型的准确性。
英文摘要:
Model-Driven Engineering (MDE) is a technique that aims to boost productivity in software development and ensure the safety of critical systems. Central to MDE is the refinement of high-level requirement models into executable code. Given that requirement models form the foundation of the entire development process, ensuring their correctness is crucial. RM2PT is a widely used MDE platform that employs the REModel language for requirement modeling. REModel contains contract sections and other sections including a UML sequence diagram. This paper contributes a coroutine-based type system that represents pre- and post-conditions in the contract sections in a requirement model as the receiving and yielding parts of coroutines, respectively. The type system is capable of composing coroutine types, so that users can view functions as a whole system and check their collective behavior. By doing so, our type system ensures that the contracts defined in it are executed as outlined in the accompanied sequence diagram. We assessed our approach using four case studies provided by RM2PT, validating the accuracy of the models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。