Code Swarm:一种基于转换规则集自动推导的代码生成工具
Code Swarm: A Code Generation Tool Based on the Automatic Derivation of Transformation Rule Set
AI总结:
本文提出代码生成工具Code Swarm(CodS),利用群体智能方法从类模型和状态模型自动生成Java代码,无需显式转换规则集或元模型信息,并通过电梯控制系统案例验证了生成代码的正确性与一致性。
摘要:
从系统设计模型自动生成软件代码在过去数年中一直是一个被积极探索的研究领域。目前已有多种工具可用于促进和自动化从软件模型生成代码的任务。据我们所知,现有软件工具都依赖显式定义的转换规则集来执行模型到代码的转换过程。在本文中,我们介绍一种名为 Code Swarm(缩写为 CodS)的新型工具,它利用基于群体智能的方法从系统设计模型自动生成实现代码。具体而言,CodS 能够利用先前已解决的模型到代码转换示例,从软件系统的类模型和状态模型生成 Java 代码。我们的工具使设计人员能够使用动作规范语言(Action Specification Language,ASL)在输入模型中指定行为动作。我们使用电梯控制系统(Elevator Control System,ECS)的工业案例研究来对我们的工具进行实验验证。结果表明,CodS 生成的代码是正确的,并且与输入设计模型一致。CodS 在执行自动代码生成过程时,不需要将显式转换规则集或语言元模型信息作为输入,这一点使其区别于所有现有的自动代码生成工具。
英文摘要:
Automatic generation of software code from system design models remains an actively explored research area for the past several years. A number of tools are currently available to facilitate and automate the task of generating code from software models. To the best of our knowledge, existing software tools rely on an explicitly defined transformation rule set to perform the model-to-code transformation process. In this paper, we introduce a novel tool named Code Swarm, abbreviated as CodS, that automatically generates implementation code from system design models by utilizing a swarm-based approach. Specifically, CodS is capable of generating Java code from the class and state models of the software system by making use of the previously solved model-to-code transformation examples. Our tool enables the designers to specify behavioural actions in the input models using the Action Specification Language (ASL). We use an industrial case study of the Elevator Control System (ECS) to perform the experimental validation of our tool. Our results indicate that the code generated by CodS is correct and consistent with the input design models. CodS performs the process of automatic code generation without taking the explicit transformation rule set or languages metamodels information as input, which distinguishes it from all the existing automatic code generation tools.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。