Font Size: a A A

Key Technologies For Mutil-Model View Software Function Code Generation

Posted on:2021-10-20Degree:MasterType:Thesis
Country:ChinaCandidate:Q LiuFull Text:PDF
GTID:2518306221990989Subject:Computer technology
Abstract/Summary:PDF Full Text Request
Model-driven architecture is widely supported and applied in software system development.General-purpose or domain-specific model-driven software development tools are loved by developers.Code generation technology,as one of the key technologies of model-driven architecture,can effectively reduce the time and energy consumption of developers,increase the overall development rate,and shorten the development cycle.However,the current model-driven code generation technology has the following two problems:(1)Information redundancy between models:The current system software is developing in a complicated trend.In order to fully characterize the system,system modeling often requires the cooperation of multiple models such as state diagrams and activity diagrams to describe the system.However,for model-driven code generation,the multi-model modeling method makes it necessary to combine the information of multiple models when generating code to generate more complete software code,but the information redundancy between the models will lead to redundant code.(2)It is difficult to automatically generate functional codes such as control flow and expressions:The UML/SysML modeling language has the problems of inaccurate semantics and limited expression capabilities.In many cases,it is impossible to accurately perform software system behavior through graphical modeling.description.As a result,there is a gap between the final software model and the actual software system.For code generation,the lack of information on this software model also leads to the incompleteness of the final generated code,which often requires developers to manually supplement the code.However,the existing code generation technologies in industry and academia do not have a mature and universal solution to this problem.The main work and contributions of this article are:(1)Aiming at the problem of information redundancy between models,a research on eliminating redundant information of SysML models was carried out.Based on the above research,this paper proposes a code generation-oriented model fusion technology.This technology analyzes the dependencies between the model definition diagrams,internal module diagrams,timing diagrams,and state diagram model elements in the SysML model.To build a dependency model in a model fusion manner.Use the dependent model as the input for code generation for code generation to eliminate the impact of model redundancy on code generation.(2)Aiming at the problem that the existing automatic code generation scheme is difficult to automatically generate functional codes such as control flow and expressions,research work has been conducted on software function code generation in model-driven automatic code generation technology.Based on the above research,this paper proposes a software function code generation technology based on OCL,which uses the object constraint language OCL to describe software function information in the SysML model that cannot be expressed through modeling methods,and formulates corresponding conversion rules,Convert the OCL expression into C language code,so as to realize the generation of software function code.(3)Combine the above two technologies to form a software function code generation framework with multiple model views,and develop an automatic code generation engine in the embedded software integrated development platform based on this framework.The actual engineering project is used to verify the availability of the code generation engine.At the same time,the code fusion-oriented model fusion technology and OCL-based software function code generation technology proposed in this article are compared with the current mainstream code generation technology.
Keywords/Search Tags:Model Driven Architecture, Automatic code generation, Model combine
PDF Full Text Request
Related items