A NOVEL APPROACH TO AUTOMATIC CODE GENERATION FOR AUTOMATIC TRAIN PROTECTION

作者:Chen Xiangxian; Liu Panfeng*; Qiu Xinxi; Huang Hai; Duan Huilong
来源:International Journal of Innovative Computing Information and Control, 2012, 8(9): 6329-6344.

摘要

The Model-Driven Development (MDD) method has been proposed to solve the problem of high error rates in the conventional manual implementation of software. This paper focuses on the modeling of a common framework for an Automatic Train Protection (ATP) system with an MDD method, which includes interface, architecture and function models. The purpose of this approach, which combines the source file and template, is to perform automatic code generation. The source file is generated based on the model that is established using the MDD method; thus, its logic is guaranteed to be correct and the template is customized according to the coding style of the model. A toolkit to automatically generate code for an ATP system is also developed, which allows the entire development process to be automated.

全文