用ASMETA开发从需求到代码的机械呼吸机控制器原型
Developing a Prototype of a Mechanical Ventilator Controller from Requirements to Code with ASMETA
摘要:
严格的开发流程旨在有效地开发关键系统,特别是如果故障可能对人类和环境造成灾难性后果。这些过程通常依赖于形式化方法,由于其数学基础,可以保证模型的精确性和属性保证。但实际上很少采用。在本文中,我们报告了我们使用抽象状态机形式化方法和ASMETA框架开发MVM(机械呼吸机米兰)控制软件原型的经验,MVM是一种在COVID-19大流行期间设计、成功认证和部署的机械肺呼吸机。由于时间限制和缺乏技能,没有对MVM项目采用正式方法。然而,我们在这里要评估的可行性发展(部分)呼吸机使用正式的方法为基础的方法。我们的开发过程从一个高层次的正式规格说明的系统来描述MVM的主要操作模式。然后,通过一系列细化的模型,所有其他的需求都被捕获,直到一个级别,在该级别中,MVM控制器的原型的C++实现从模型自动生成,并进行测试。沿着该过程,在每个细化级别,执行不同的模型确认和验证活动,并且每个细化的模型被证明是前一级别的正确细化。通过MVM的案例研究,我们评估我们的形式化方法的有效性和可用性。
英文摘要:
Rigorous development processes aim to be effective in developing critical systems, especially if failures can have catastrophic consequences for humans and the environment. Such processes generally rely on formal methods, which can guarantee, thanks to their mathematical foundation, model preciseness, and properties assurance. However, they are rarely adopted in practice. In this paper, we report our experience in using the Abstract State Machine formal method and the ASMETA framework in developing a prototype of the control software of the MVM (Mechanical Ventilator Milano), a mechanical lung ventilator that has been designed, successfully certified, and deployed during the COVID-19 pandemic. Due to time constraints and lack of skills, no formal method was applied for the MVM project. However, we here want to assess the feasibility of developing (part of) the ventilator by using a formal method-based approach. Our development process starts from a high-level formal specification of the system to describe the MVM main operation modes. Then, through a sequence of refined models, all the other requirements are captured, up to a level in which a C++ implementation of a prototype of the MVM controller is automatically generated from the model, and tested. Along the process, at each refinement level, different model validation and verification activities are performed, and each refined model is proved to be a correct refinement of the previous level. By means of the MVM case study, we evaluate the effectiveness and usability of our formal approach.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。