Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code generation method and device based on requirement document

A technology for generating requirements documents and codes, applied in the field of computer technology applications, can solve problems such as luring enterprises

Inactive Publication Date: 2016-12-21
广州南方仕通网络科技有限公司
View PDF3 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, code generation should be targeted at some small and medium-sized systems, but precisely because of the high production efficiency generated by code generation technology, its generation tools have always been very attractive to enterprises and developers.

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 and device based on requirement document
  • Code generation method and device based on requirement document

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] Below, in conjunction with accompanying drawing and specific embodiment, the present invention is described further:

[0049] Such as figure 1 As shown, a code generation method based on requirements documents includes the following steps:

[0050] S1: Convert the requirement document into an XML file, the requirement document includes keywords and business logic defined according to the syntax of the preset rules; since the XML file can better reflect the structural hierarchical relationship, it is easier to be recognized by the programming language, and it is also You can check whether the requirement document conforms to the grammatical logic; the XML file is an intermediate language, which plays a role of linking the preceding and the following. Each keyword will become an element in XML, which can be a node or an attribute ; For example, a data dictionary must be described in a requirement document, and there are multiple chapters. After it is converted into XML, ...

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 a code generation method and device based on a requirement document. The method comprises the steps of S1, converting the requirement document into an XML file; S2, traversing the XML file and generating a data model according to data contents in the XML file; S3, establishing a system framework according to the data model; S4, generating a relationship model among the data contents according to the data model; and S5, generating corresponding system functions according to service logic of the requirement document, wherein the system functions comprise system universal functions and special requirement functions. According to the method and the device, code can be generated directly by the requirement document and most of the functions described by the requirement document can be satisfied. The method and the device have the following significance that the working focus of a developer is transferred to the service logic and algorithm, requirement changes can be rapidly responded and some requirement changes can be set by modifying characters in the document by a demander.

Description

technical field [0001] The invention belongs to the field of computer technology applications, in particular to a method and device for generating codes based on requirement documents. Background technique [0002] Code generation, that is, let the computer automatically generate code, its purpose is to reduce the coding work of developers, and at the same time greatly improve the development efficiency. Liberate "code farmers" to do some boring machine coding work repeatedly, and make developers focus more on the realization of business logic. [0003] At present, there are many code generation tools on the market, such as codeSmith, etc., which are more popular. They are all based on setting specific code templates, and assigning values ​​​​to variables in the templates with instance data. A series of code templates are set before development, and developers generate code blocks with specified functions as needed. In order to avoid developers repeatedly writing the same ...

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/44G06F17/30
CPCG06F8/31G06F8/10G06F16/13G06F16/24534
Inventor 黄首益
Owner 广州南方仕通网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products