首页|期刊导航|计算机与现代化|机载软件模型解析与代码生成工具设计

机载软件模型解析与代码生成工具设计OA

Design of Airborne Software Model Parsing and Code Generation Tool

中文摘要英文摘要

针对传统机载软件开发效率低、复用性差及模型驱动技术断层等问题,设计一种面向FACE标准的机载软件模型解析与代码生成工具.基于模型驱动开发技术,以通用建模环境(GME)为核心,结合BON框架解析模型,利用Cheetah模板引擎生成代码,构建"建模-解析-代码生成"一体化流程.搭建符合FACE规范的数据、可移植组件单元、操作系统3类核心元模型,将组件接口、数据传输等语义信息精准映射为POSIX线程、消息队列及共享内存等原生API.测试结果表明,该工具能够完成数据模型、可移植组件单元模型和操作系统模型3类核心元模型解析,生成代码通过FACE一致性测试,并在POSIX环境下完成运行验证,初步验证了工具用于机载软件模型驱动开发的可行性.

To address issues such as low development efficiency,poor reusability,and technical gaps in model-driven develop-ment for traditional airborne software,this study designs a tool for parsing and code generation of airborne software models based on the FACE standard.Based on model-driven development technology,the tool uses the Generic Modeling Environment(GME)as its core,combines the BON framework for model parsing,and employs the Cheetah template engine for code genera-tion,thereby establishing an integrated"modeling-parsing-code generation"workflow.Three core meta-models compliant with the FACE standard-data,portable component unit,and operating system-are constructed.Semantic information such as compo-nent interfaces and data transmission is accurately mapped to native APIs including POSIX threads,message queues,and shared memory.Test results show that the tool can parse three core meta-models,namely the data model,portable component unit model and operating system model.The generated code passes FACE conformance tests and is validated in a POSIX environ-ment,preliminarily demonstrating the feasibility of the tool for model-driven airborne software development.

吴晓葵;彭寒;张晓丽;景月娟;程传旭

西安航空学院计算机与人工智能学院,陕西 西安 710077西安航空学院计算机与人工智能学院,陕西 西安 710077西安航空学院计算机与人工智能学院,陕西 西安 710077西安航空学院计算机与人工智能学院,陕西 西安 710077西安航空学院计算机与人工智能学院,陕西 西安 710077

信息技术与安全科学

机载软件FACE标准模型解析代码生成Cheetah模板引擎

airborne softwareFACE standardmodel parsingcode generationCheetah template engine

《计算机与现代化》 2026 (9)

39-45,85,8

陕西省重点研发计划项目(2024GX-YBXM-277)陕西省教育科学规划项目(SGH23Y2649)

10.3969/j.issn.1006-2475.2026.09.005

评论