A Dual-Stage Framework for Behavior-Enhanced Automated Code Generation in Industrial-Scale Meta-Models
Year: 2025
Type: article
Abstract: Industrial model-driven engineering often struggles to generate functionally complete code, especially dynamic behaviors, from large-scale Meta-models, typically yielding only static structures. This paper introduces the Static-Structure&Dynamic-Behavior Dual-Stage framework, a novel approach enhancing automated code generation through two key innovations. First, the Dual-Path Fusion stage constructs a semantically rich static code skeleton by integrating structural semantics from XMI with data constraints from XSD. Second, the dynamic behavior injection engine leverages model annotations and associations to inject operational capabilities into the static foundation. A language-independent Intermediate Code Model unifies semantic information, facilitating transformations via Query/View/Transformation-Relations and domain-specific languages. Validation using industrial Meta-models such as AUTOSAR and OPC UA demonstrates significant improvements in automation, code quality, and development efficiency. This work also discusses Large Language Model limitations for reliable Meta-model-based code generation and posits S2D2’s potential, particularly with Retrieval Augmented Generation, to improve their code synthesis fidelity. Key contributions include advanced model transformation, behavior-centric code enhancement, and a pathway for more dependable AI-assisted software development.
Source: IEEE Access
Authors: Tong Ma, Shenlong Dai, Yongfan Gao, Fengjie Xu, Ling Fang
Language: English
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Open Access status: gold
Estimated APC paid: $2,075
Award: G4936299282
OpenAlex ID: W4414499379
