Automatic generation system of C language code on the basis of data configuration in trackside control unit

A technology of trackside control and data configuration, which is applied in memory system, program control design, electrical digital data processing, etc., can solve the problems of complicated logic expressions, repetitive manual analysis, and high degree of data coupling, so as to achieve easy-to-understand, The logic is simple and intuitive, and the analysis accuracy is high

Inactive Publication Date: 2017-10-27
SHANGHAI ELECTRIC THALES TRANSPORTATION AUTOMATION SYST CO LTD
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this process, on the one hand, complex logic expressions have complex logic, large amount of data, and high degree of data coupling. Manual analysis is prone to errors
On the other hand, due to the high similarity of basic data types, expressions with similar logic have similar parsing algorithms, but due to different data content, a large number of repetitive manual parsing processes and code writing and debugging processes have been caused.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic generation system of C language code on the basis of data configuration in trackside control unit
  • Automatic generation system of C language code on the basis of data configuration in trackside control unit
  • Automatic generation system of C language code on the basis of data configuration in trackside control unit

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The present invention will be further described below in conjunction with accompanying drawing.

[0021] see Figure 4 , the automatic generation system of C language code based on data configuration in the wayside control unit of the present invention, comprises database parsing module 1, data structure module 2, interlocking rule library module 3, logic tree module 4 and C language code generation module 5.

[0022] Data structure module 2 defines the data structures required for interlocking representation and logic operations. The interlocking rule base module 3 defines the operation rules based on the interlocking specification.

[0023] The database parsing module 1 reads the interlocking data and configuration data from the database, combines the data structure required by the interlocking representation and logical operation and the operation rules of the interlocking specification, and expresses the interlocking data as complex logic expressions. The grammat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an automatic generation system of a C language code on the basis of data configuration in a trackside control unit. The system comprises a database analysis module, a data structure module, an interlocking rule library module, a logic tree module and a C language generation module, wherein the data structure module defines a data structure required for interlocking expression and logic operation; the interlocking rule library module defines an operation rule based on an interlocking specification; the database analysis module reads interlocking data and configuration data and is combined with the data structure module and the interlocking rule library module to express interlocking data as a complex logic expression; the logic tree module analyzes the complex logic expression into a basic logic expression; and the C language generation module takes the list of the basic logic expression as input and is combined with the data structure module and the interlocking rule library module, and a final C language code file is generated according to the configuration data, the interlocking data and existing source code information. The analysis and the code compiling of the complex logic expression on the basis of the data configuration can be accurately processed.

Description

technical field [0001] The present invention relates to software code generation technology. Background technique [0002] At present, the interlocking software of the trackside control unit in the CBTC (Communication Based Train Control) system of the subway needs to deal with complex signal scenarios based on complex logic expressions. Software engineers need to read data tables and manually Analyze complex logic expressions, and then write codes based on the analyzed signal logic. In this process, on the one hand, complex logic expressions have complex logic, large amount of data, and high degree of data coupling. Manual analysis is prone to errors. On the other hand, due to the high similarity of basic data types, expressions with similar logic have similar parsing algorithms, but due to the different data content, a large number of repetitive manual parsing processes and code writing and debugging processes have been caused. How to efficiently and accurately process t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/45
CPCG06F8/313
Inventor 王芳萌李广诚
Owner SHANGHAI ELECTRIC THALES TRANSPORTATION AUTOMATION SYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products