Font Size: a A A

Research And Implementation Of Automated Code Generation In Hierarchical Modeling

Posted on:2012-11-07Degree:MasterType:Thesis
Country:ChinaCandidate:L XuFull Text:PDF
GTID:2248330395455435Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
Along with the gradual maturity of model driven development (MDD) and theappearance of automated code generation, developing methods based on MDD havebeen widely used in software area. Using MDD, developers devote more time to focuson the system logic designing, that is to say, they can develop in more abstract levelswithout considering the design of the code architecture. Therefore, the developmentefficiency has been improved.For the characteristic of high-level behaviors modeling in aerospace system, thispaper proposes a hierarchical modeling method based on the combination of Statechartand flowchart, and make an analysis of automated code generation from Statechart tocode, flowchart to code, and hierarchical model charts to code. For Statechart codegeneration, this paper studies the most famous implementation technique, nested“switch” statements. For flowchart code generation, on the basis of flowchart structurerecognize algorithm, the flowchart is processed as follows. If the flowchart isunstructured, then it is converted into structured. And the loop structure is convertedinto linear structure as the scope of the loop and branched structures are determined.According to the process mentioned above, the flowchart is converted from the chartstructure to the linear structure corresponding to the code, thus the automated codegeneration from flowchart to C code is implemented. As to the hierarchical modeling,this paper designs the top-down nested relationship among hierarchical models. Inaddition, a data dictionary is added to control the use of global variables, and theflowchart is extended to bring more detailed code semantics. Based on which, theautomated code generation system of hierarchical models is designed and implemented.The experiment shows that the automated code generation system proposed in thispaper is simple and easy operation, and high efficient.
Keywords/Search Tags:Model Driven Development, Automated Code Generation, Hierarchical Modeling, Flowchart Code Generation
PDF Full Text Request
Related items