z-logo
open-access-imgOpen Access
A Dual-Stage Framework for Behavior-Enhanced Automated Code Generation in Industrial-Scale Meta-Models
Author(s) -
Tong Ma,
Shenlong Dai,
Yongfan Gao,
Fengjie Xu,
Ling Fang
Publication year - 2025
Publication title -
ieee access
Language(s) - English
Resource type - Magazines
SCImago Journal Rank - 0.587
H-Index - 127
eISSN - 2169-3536
DOI - 10.1109/access.2025.3614174
Subject(s) - aerospace , bioengineering , communication, networking and broadcast technologies , components, circuits, devices and systems , computing and processing , engineered materials, dielectrics and plasmas , engineering profession , fields, waves and electromagnetics , general topics for engineers , geoscience , nuclear engineering , photonics and electrooptics , power, energy and industry applications , robotics and control systems , signal processing and analysis , transportation
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 S 2 D 2 ’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.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom