Check patentability & draft patents in minutes with Patsnap Eureka AI!

Code generation method supporting complex model structure conversion

A model structure and code generation technology, applied in the field of system engineering and complex system design, can solve the problems of lack of multi-domain model code generation, poor scalability and versatility, increased description complexity, etc., to improve friendliness , Enhance the ability and efficiency of conversion, reduce the effect of quantity

Pending Publication Date: 2021-11-09
BEIJING INSTITUTE OF TECHNOLOGYGY +1
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Existing code generators are highly proprietary, usually oriented to a specific domain model or data file to build a code generator for a specific target language, the scalability and versatility are not strong, and there is a lack of multi-domain models involved in the complex product development process. Code Generation Capabilities
The code generation language with strong flexibility can support the generation of multiple target language codes based on templates, but the mainstream code generation language can usually support the description of the query and conversion of a single element in the model, but lacks The ability to describe the query and transformation of a model structure with multiple model elements, while the data in some forms of object code is derived from the element information in the complete model structure, nested queries through the combination of layer by layer individual elements Although the model structure composed of multiple elements can also be obtained, it increases the complexity of the description and reduces the conversion efficiency

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
  • Code generation method supporting complex model structure conversion
  • Code generation method supporting complex model structure conversion
  • Code generation method supporting complex model structure conversion

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0043] like figure 1 As shown, the present invention provides a code generation method supporting complex model structure conversion, which is used to generate the target code corresponding to the required design system, wherein the target code is the preliminary implementation code of the required design system and the test of the required design system use case or code for generating a simulator for verifying a desired design system; the method includes the following steps:

[0044] S1: Define different types of model patterns according to the concept of GOPPRR meta-model, use KARMA modeling language to establish different types of architecture models for the r...

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 provides a code generation method supporting complex model structure conversion, which uses a KARMA language to describe code generation, and supports a complex model structure formed by a plurality of model elements (including objects, relationships, points and roles) as a whole to be inquired and converted by defining a model mode. On one hand, generation of some target codes in specific formats is facilitated, on the other hand, through the mode of the model mode, a user only needs to describe a model structure needing to be converted without paying attention to details and processes of specific query, user friendliness is improved, and conversion capacity and efficiency are enhanced. Besides, according to the KARMA code generation language provided by the invention, six GOPPRR elements serve as elements for underlying query and conversion, specific details of domain models are shielded, and for various domain models (such as a SysML model and an AADL model), GOPPRR can be used as underlying elements, query is carried out by describing a model mode, and conversion from the model to a target code is realized.

Description

technical field [0001] The invention belongs to the field of system engineering and complex system design, in particular to a code generation method supporting complex model structure conversion. Background technique [0002] Model Based Systems Engineering (MBSE, Model Based System Engineering) is an emerging technology that supports the development of complex systems. MBSE uses a formalized model to describe functional activities such as requirements, design, analysis, verification and confirmation of the system development life cycle, and uses the model as the core to drive system development. Code generation is a key technology in the development of model-driven systems, also known as model-to-text conversion. It obtains element information in the source model through model query, and maps source model elements to target code or text (such as XML text) Rules, transformations generate object code or text. Through code generation, the system architecture model with a hig...

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
IPC IPC(8): G06F8/35G06F16/242
CPCG06F8/35G06F16/2433
Inventor 鲁金直丁洁王国新阎艳
Owner BEIJING INSTITUTE OF TECHNOLOGYGY
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More