arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1703.10895cs.SEcs.PL
收藏

模型驱动软件开发的模块系统规程

A Module-System Discipline for Model-Driven Software Development

Sebastian Erdweg, Klaus Ostermann

摘要:

模型驱动开发是一种实用的软件开发方法,它包含领域特定语言(DSL),其中模型对应于DSL程序。模型驱动开发的一个显著特征是,模型的客户端可以通过应用不同的模型转换,从模型的一组开放的替代语义中进行选择。然而,在现有的模型驱动框架中,模型、模型转换和生成的代码工件之间的依赖关系要么是隐式的,要么是在构建脚本中全局声明的,这通常会阻碍模块化推理、单独编译和可编程性。我们提出了一个新的模块系统,将模型和模型转换为模块的设计。程序员可以在导入语句中应用转换,从而声明对生成的代码工件的依赖性。我们的设计通过防止隐藏的依赖关系来实现模块化推理和单独编译,并且它支持将建模工件与传统代码工件以及高阶转换混合。我们已经正式确定了我们的设计和上述属性,并通过实施和案例研究进行了验证,表明我们的模块系统成功地将模型驱动开发集成到传统的程序设计语言中。

英文摘要:

Model-driven development is a pragmatic approach to software development that embraces domain-specific languages (DSLs), where models correspond to DSL programs. A distinguishing feature of model-driven development is that clients of a model can select from an open set of alternative semantics of the model by applying different model transformation. However, in existing model-driven frameworks, dependencies between models, model transformations, and generated code artifacts are either implicit or globally declared in build scripts, which impedes modular reasoning, separate compilation, and programmability in general. We propose the design of a new module system that incorporates models and model transformations as modules. A programmer can apply transformations in import statements, thus declaring a dependency on generated code artifacts. Our design enables modular reasoning and separate compilation by preventing hidden dependencies, and it supports mixing modeling artifacts with conventional code artifacts as well as higher-order transformations. We have formalized our design and the aforementioned properties and have validated it by an implementation and case studies that show that our module system successfully integrates model-driven development into conventional programming languages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑