首页> 外文期刊>Software and systems modeling >Live modeling in the context of state machine models and code generation
【24h】

Live modeling in the context of state machine models and code generation

机译:状态机模型和代码生成背景下的实时建模

获取原文
获取原文并翻译 | 示例

摘要

Live modeling has been recognized as an important technique to edit behavioral models while being executed and helps in better understanding the impact of a design choice. In the context of model-driven development, models can be executed by interpretation or by the translation of models into existing programming languages, often by code generation. This work is concerned with the support of live modeling in the context of state machine models when they are executed by code generation. To this end, we propose an approach that is completely independent of any live programming support offered by the target language. This independence is achieved with the help of a model transformation which equips the model with support for features which are required for live modeling. A subsequent code generation then produces a self-reflective program that allows changes to the model elements at runtime (through synchronization of design and runtime models). We have applied the approach in the context of UML-RT and created a prototype (Live-UMLRT) that provides a full set of services for live modeling of UML-RT state machines such as re-execution, adding/removing states and transitions, and adding/removing action code. We have evaluated the prototype on several use cases. The evaluation shows that (1) generation of a self-reflective and model instrumentation can be carried out with reasonable performance, and (2) our approach can apply model changes to the running execution faster than the standard approach that depends on the live programming support of the target language.
机译:实时建模已被认为是在执行时编辑行为模型的重要技术,并有助于更好地理解设计选择的影响。在模型驱动的开发的背景下,模型可以通过解释或将模型的翻译成现有的编程语言来执行,通常通过代码生成。这项工作涉及当代码生成执行时在状态机模型的上下文中的支持。为此,我们提出了一种完全独立于目标语言提供的任何现场编程支持的方法。借助模型转换来实现这种独立性,该模型转换,该模型转换,该模型将模型配备了用于实时建模所需的功能。然后,后续代码生成产生自反射程序,允许在运行时(通过设计和运行时模型的同步)更改为模型元素。我们在UML-RT的上下文中应用了方法,并创建了一种原型(Live-UMLRT),它为UML-RT状态机的实时建模提供了一整套服务,例如重新执行,添加/删除状态和转换,并添加/删除操作代码。我们在几种用例中评估了原型。评估表明(1)可以使用合理的性能进行自反光和模型仪器的生成,(2)我们的方法可以比取决于现场编程支持的标准方法更快地将模型变化应用于运行执行目标语言。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号