CN109522012A - A kind of real time workshop device and real time workshop method - Google Patents
A kind of real time workshop device and real time workshop method Download PDFInfo
- Publication number
- CN109522012A CN109522012A CN201811269624.8A CN201811269624A CN109522012A CN 109522012 A CN109522012 A CN 109522012A CN 201811269624 A CN201811269624 A CN 201811269624A CN 109522012 A CN109522012 A CN 109522012A
- Authority
- CN
- China
- Prior art keywords
- code
- module
- layer
- real time
- generation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/33—Intelligent editors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/35—Creation or generation of source code model driven
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
- G06F8/447—Target code generation
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application proposes a kind of real time workshop device, comprises the following modules: execution module, for executing the code for being stored in this module;Editor module, the logical code that can be identified for generating developer;Generation module, for logical code to be generated as the system code that system is able to carry out;Preserving module, for being saved in this module by current executed code and by the code of generation.Extraction module writes module for extracting the code in preserving module according to the first extraction conditions, and according to the second extraction conditions, the code in editor module is extracted execution module.
Description
Technical field
The present invention relates to computer software technical field, in particular to a kind of real time workshop device and real time workshop
Method.
Background technique
OpenERP was created in 2002 by Belgian Fabien Pinckaers.By 2012, software official
The standard feature module of publication has more than 100, and the functional module provided by open source community Open Object Community is close
2000.The core of OpenERP is and all modules are all open source codes, can freely use, modifies and issue, therefore
It is widely used in numerous European medium-sized and small enterprises.A unit module of OpenERP more than 2000 is only capable of modifying generation under module frame
Code is to complete function.And need to go to modify according to the Frame Design of OpenERP when modification code, being easily modified mistake leads to journey
There is defect in sequence.And learning cycle is long, and rawness developer needs to take a significant amount of time reading, learns and write basic generation
Code completes corresponding development.
Also there is the product of corresponding frame and code generator combination production software currently on the market.Substantially such production
Product are not high to the utilization efficiency of generated code, major embodiment in the following areas: the fresh code that code generator generates can be
Old code coverage containing manual compiling part can not modify to existing code, delete operation, modification and deletion need by
Artificial treatment, module itself accumulate function without self, require to write identical code every time and improve basic module.
Summary of the invention
The present invention problem not high for code utilization efficiency existing in the prior art, proposes a kind of following automatic generation
Code generator and real time workshop method.
Firstly, the application proposes a kind of real time workshop device, comprise the following modules:
Execution module is connected with extraction module, for executing the code for being stored in this module;
Editor module is connected with generation module and preserving module, the logic generation that can be identified for generating developer
Code;
Generation module is connected with editor module and preserving module, is able to carry out for logical code to be generated as system
System code;
Preserving module is connected with generation module and extraction module, for by current executed code and by generation
Code is saved in this module;
Extraction module is connected with execution module and preserving module, and being used for will be in preserving module according to the first extraction conditions
In code extract and write module, and according to the second extraction conditions, the code in preserving module is extracted into execution module.
Further, in a kind of above-mentioned real time workshop device of the application, the code includes, JAVA, SQL,
JAVASCRIPT and XML.
Further, in a kind of above-mentioned real time workshop device of the application, first extraction conditions by carrying out manually
Setting.
Further, in a kind of above-mentioned real time workshop device of the application, second extraction conditions are the code quilt
The code generator generates at least twice.
Further, in a kind of above-mentioned real time workshop device of the application, in the generation module, the code comprising generation
Save location.
Secondly, the application proposes a kind of real time workshop method, comprising the following steps:
S100) system is at least divided into execution level, editing layer, code layer and extract layer;
S200 it) is inquired in code layer according to the condition of inquiry and obtains qualified template code;
S300) in editing layer, increase code in template code, form newly-increased code and be sent to code layer;
S400) the system code that can identify newly-increased code conversion for system, and the code is stored in code layer
And the code is sent to execution level;
S500 the code for being stored in execution level) is executed.
Further, in a kind of above-mentioned real time workshop method of the application, step S400 further includes following previous step:
Current executed code is saved in code layer.
Further, in a kind of above-mentioned real time workshop method of the application, step S400 further includes following postposition step:
The code of generation is saved in designated position.
Further, in a kind of above-mentioned real time workshop method of the application, the template code is stored in EXCEL file
In TXT text.
Finally, the application proposes a kind of real time workshop device, comprise the following modules:
Hierarchical block, for system to be at least divided into execution level, editing layer and code layer and extract layer;
Enquiry module is inquired in code layer for the condition according to inquiry and obtains qualified template code;
Editor module, in editing layer, using increasing at least one function mould in acquired existing template code
Block, and it is sent to code layer;
The code is stored in code layer for generating code and the code is sent to execution by generation module
Layer;
Execution module, for executing the code for being stored in execution level;
Wherein, wherein the real time workshop device further includes controller, the controller is any of the above-described for executing
Method described in.
Detailed description of the invention
Fig. 1 show a kind of system framework figure for real time workshop device that the application is proposed;
Fig. 2 show a kind of the overall of real time workshop device that the application is proposed and realizes process schematic;
Fig. 3 show a kind of EXCEL process template for real time workshop device that the application is proposed;
Fig. 4 show a kind of TXT process template for real time workshop device that the application is proposed;
Fig. 5 show a kind of flow chart of the first embodiment for real time workshop method that the application is proposed;
A kind of system architecture diagram for real time workshop method that Fig. 6 the application is proposed;
Fig. 7 show a kind of flow chart of the second embodiment for real time workshop method that the application is proposed.
Specific embodiment
It is carried out below with reference to technical effect of the embodiment and attached drawing to design of the invention, specific structure and generation clear
Chu, complete description, to be completely understood by the purpose of the present invention, scheme and effect.It should be noted that the case where not conflicting
Under, the features in the embodiments and the embodiments of the present application can be combined with each other.The identical attached drawing mark used everywhere in attached drawing
Note indicates the same or similar part.
It should be noted that unless otherwise specified, when a certain feature referred to as " fixation ", " connection " are in another feature,
It can directly fix, be connected to another feature, and can also fix, be connected to another feature indirectly.In addition, this
The descriptions such as upper and lower, left and right used in application are only the mutual alignment pass relative to each component part of the application in attached drawing
For system.In the application and the "an" of singular used in the attached claims, " described " and "the" also purport
It is including most forms, unless the context clearly indicates other meaning.
In addition, unless otherwise defined, the technology of all technical and scientific terms used herein and the art
The normally understood meaning of personnel is identical.Term used in the description is intended merely to description specific embodiment herein, without
It is to limit the application.Term as used herein "and/or" includes the arbitrary of one or more relevant listed items
Combination.
It will be appreciated that though various elements may be described in this application using term first, second, third, etc., but
These elements should not necessarily be limited by these terms.These terms are only used to for same type of element being distinguished from each other out.For example, not taking off
In the case where the application range, first element can also be referred to as second element, and similarly, second element can also be referred to as
First element.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When ".
A kind of system framework figure for real time workshop device that the application shown in referring to Fig.1 is proposed, the application propose
A kind of real time workshop device, comprises the following modules:
Execution module is connected with extraction module, for executing the code for being stored in this module;
Editor module is connected with generation module and preserving module, the logic generation that can be identified for generating developer
Code;
Generation module is connected with editor module and preserving module, is able to carry out for logical code to be generated as system
System code;
Preserving module is connected with generation module and extraction module, for by current executed code and by generation
Code is saved in this module;
Extraction module is connected with execution module and preserving module, and being used for will be in preserving module according to the first extraction conditions
In code extract and write module, and according to the second extraction conditions, the code in preserving module is extracted into execution module.
Specifically, for first extraction conditions by being configured manually, second extraction conditions are the code quilt
The code generator generates at least twice.
Specifically, execution module can be the hardware such as the processor, CPU, single-chip microcontroller for being able to carry out code or instruction.
Further, the first extraction conditions are that developer searches in preserving module according to the functional requirement of customization
The querying condition of corresponding already present code, for example, the preserving module is to realize to save code on line or local band
The device of memory body can be the database for saving code, while be also possible to save the server etc. of code, be also possible to out
The local disk of hair personnel, when work, it includes phase that developer searches in preserving module according to the functional requirement of customization
The already present code of function is answered, the case where the existing unit module that code generator elder generation called data library is recorded and exploit person
The demand of member is compared, if can match, exports the related data of the unit module from database, this part of data mainly by
EXCEL and TEXT text composition, if cannot exactly match, for developer according to customer demand, customization units module is detailed, main
If function existing in a manner of logical code and field item simultaneously submit to generation module, generation module automatic identification developer
EXCEL the and TEXT text of submission, analysis then automatically generate new word if any newly-increased or ungratified function and field item
Segment type and basic function skeleton code, which need to hand over will feed back developer's progress secondary-confirmation, exploit person again
After member's confirmation is errorless, generation module transfers functional module analysis, the existing code of analysis system and it is new logic is added, generate and new be
Unite code, including JAVA, SQL, JAVASCRIPT, XML, and the partial code is automatically inserted in project development file,
After project, developer is brought the partial function in existing functional module into, code generator module automatically update to
Database, so that next time reuses.
Second extraction conditions are to be saved previously in Rule of judgment in real time workshop device, can by developer in advance into
Interrelated logic Rule of judgment is write and be arranged to row, and the condition of judgement is that code is at least generated by code generator twice, in reality
In work, Rule of judgment can be set more flexible, can introduce other judgment criterias, time used such as the code
Number, significance level etc..When developer repeatedly generates identical code using code generator, illustrate that frequency is compared in the code use
It is numerous, it may be possible to which that basic or important system function component part, the part, will be in editor modules by the second extraction conditions
Code extracts execution module, realizes self accumulation of code, becomes one fixed functional module of system.
Specifically, described for being saved in the preservation mould of this module by current executed code and by the code of generation
Block realizes two functions, first is that current executed code is saved, second is that the code of generation is primarily referred to as new life
At code saved, that is to say, that before code generator generates code every time, retain a current code version to data
In library, corresponding code is generated further according to EXCEL and TEXT file is corresponding later, therefore the module different editions can be remained with
Function code, and the code of different editions is independent mutually, is independent of each other, so that having reached code generator can be to the same module
Repetitive operation uses, do not influence the code section of manual compiling and the code of generation do not cause to conflict with system existing module
Technical effect.
Further, the execution module, the mutual independence of code in editor module and preserving module are simultaneously independent of each other, a side
Face saves newly generated code and existing code, and the only present age by editor module newly generated code in preserving module
After code is mature, i.e., by it is multiple generate or be performed a plurality of times after, be just extracted into execution module, three has one's own work to do, mutually not shadow
Ring, on the other hand, the code only in editor module can modify, the code of execution module and preserving module not
It can be modified, above two aspect ensure that not the code of the code section and generation that influence manual compiling is not existing with system
There is module to cause the technical effect of conflict, and the fresh code that code generator generates will not be containing the old of manual compiling part
Code coverage, avoiding causes general code generator to be only capable of using for the first time in software development process, improves code and utilizes
Efficiency.
By above-mentioned setting, the fresh code that the code generator that the application proposes generates not only is supported to generate fresh code,
It can also modify to existing code, delete operation.In addition, due to above-mentioned setting, so that this code generator has certainly
I accumulates function, and identical code does not need to write every time, reusable, improves code utilization efficiency.
Process schematic is realized referring to the overall of a kind of real time workshop device that the application shown in Fig. 2 is proposed,
In the figure, show in a complete development process, the division of labor and information exchange between developer and code generator.
Step 1: developer finds corresponding unit module (if any) according to the demand of customization.From database
The related data of the unit module is exported, this part of data is mainly made of EXCEL and TEXT text.
Step 2: developer is according to customer demand, customization units module is detailed, mainly function and field item.
Step 3: EXCEL the and TEXT text that automatic program identification developer submits, analysis, if any newly-increased or not
The function and field item of satisfaction, the then new field type of system automatically generated and basic function skeleton code.The part needs to hand over
By developer's secondary-confirmation.
Step 4: system transfers functional module analysis, the existing code of analysis system and Xin Jia after developer's confirmation is errorless
Enter logic.Generate new code, including java, SQL, JAVASCRIPT, XML.And the partial code is automatically inserted project
Develop file.
Step 5: developer writes corresponding function logic, and run the module.
Step 6: developer brings the partial function in existing functional module into, code generator after project
Module is automatically updated to database, so that next time reuses.
Further, code generator mainly completes following two parts function in the whole process,
First part: analysis developer's demand, guiding system functional module table, allocation list are as follows:
Second part: the generation requirement that analysis developer fills in, generation system code
The Excel table and Text file that code generator is filled according to developer, respectively to data Layer, service layer and
The code of client layer carries out code generation.When generation, existing unit module that code generator elder generation called data library is recorded
Situation is compared with the demand of developer.Then corresponding code is generated.Finally newest modification record is stored to number
According to library table.A kind of flow chart of the first embodiment for real time workshop method that specific flow chart such as Fig. 5 the application is proposed
It is shown.
Specifically, described shown in a kind of system architecture diagram of the real time workshop method proposed referring to Fig. 6 the application
Client layer, service layer and data Layer be described as follows.
Client layer: the main function of appeal for realizing software is usually realized in a manner of APP and HTML5.Mainly use hand
Machine, PC browser mode access;
Service layer: the main functional module for realizing module, is logic core.Most of functional module realized can be returned
For shelves in the layer, this layer is mainly to be realized using JAVA;
Data Layer: the data structure of major embodiment functional module is responsible for memory module data, by JAVA, database, caching
Service and file service are realized.
EXCEL the and TEXT text can refer to a kind of automatic code that the application that Fig. 3 and Fig. 4 are respectively shown in is proposed
The EXCEL process template and TXT process template figure of generator.
Specifically, a kind of EXCEL process template of the real time workshop device proposed referring to the application shown in Fig. 3,
In the template, EXCEL file plays the role of an architecturally-defined function, project management is played, from table, it can be seen that
There is two blob of table (table) and column (column).
Wherein, table is contained to physical name, the definition of table name etc., the overall setting of a corresponding detailed programs, example
Such as, physical name is defined as to " Sample " in figure.
Wherein, column is contained column name (column name), field name (field name), data type (data_
Type) it is arranged with the definition of column description (column_comment), the technology of a corresponding detailed programs.
Further, in column name, definition be the column title, column name be to the column save content letter
Illustrate, as can be seen from the figure column name may include code, system time, long description, short description, price, quantity etc..
Further, in field name, definition is that the title of the field can be corresponded to corresponding to above-mentioned column name
Ground includes code, system time, long description, short description, price, the description such as quantity.
Further, in data_type, definition be the data type, corresponding to above-mentioned field name, for example,
" system time " should correspond to for the data type of the field of title and be defined as time type.
Further, finally, in column_comment, definition be the column brief description.
Specifically, a kind of TXT process template of the real time workshop device proposed referring to the application shown in Fig. 4,
In the template, TXT file is that the program after generating contains following code content by taking Fig. 4 as an example:
As can be seen that this section of code describes the description to the object table in Microsoft Excel, such as by physical name
It is defined as " Sample ".
Further, in one embodiment of the invention, code generator generates code and is as follows:
A kind of flow chart of the first embodiment of the real time workshop method proposed referring to the application shown in Fig. 7,
The following steps are included:
S100) system is at least divided into execution level, editing layer, code layer and extract layer;
S200 it) is inquired in code layer according to the condition of inquiry and obtains qualified template code;
S300) in editing layer, increase code in template code, form newly-increased code and be sent to code layer;
S400) the system code that can identify newly-increased code conversion for system, and the code is stored in code layer
And the code is sent to execution level;
S500 the code for being stored in execution level) is executed.
Specifically, the execution level is for executing the code for being stored in this layer;
The editing layer is for generating the identifiable logical code of developer;
The code layer is used to store the code generated by code generator;
The extract layer is used to that the code in code layer to be extracted editing layer according to the first extraction conditions, and according to the
The code of editing layer is extracted execution level by two extraction conditions.
Further, in one embodiment of the application, step S400 further includes following previous step:
Current executed code is saved in code layer.
Further, in one embodiment of the application, step S400 further includes following postposition step:
The code of generation is saved in designated position.
Further, in one embodiment of the application, the template code is stored in EXCEL file and TXT text.
Specifically, above-mentioned two step realizes two functions respectively, first is that current executed code is saved, two
It is the code that will be generated, is primarily referred to as newly-generated code and is saved, that is to say, that code generator generates code every time
Before, retain a current code version into database, generates corresponding generation further according to EXCEL and TEXT file is corresponding later
Code, therefore the function code of the module different editions can be remained with, and the code of different editions is independent mutually, is independent of each other, from
And code section and generation that code generator can use the same module repetitive operation, not influence manual compiling are reached
Code do not cause the technical effect to conflict with system existing module.
Further, the execution module, the mutual independence of code in editor module and preserving module are simultaneously independent of each other, a side
Face saves newly generated code and existing code, and the only present age by editor module newly generated code in preserving module
After code is mature, i.e., by it is multiple generate or be performed a plurality of times after, be just extracted into execution module, three has one's own work to do, mutually not shadow
Ring, on the other hand, the code only in editor module can modify, the code of execution module and preserving module not
It can be modified, above two aspect ensure that not the code of the code section and generation that influence manual compiling is not existing with system
There is module to cause the technical effect of conflict, and the fresh code that code generator generates will not be containing the old of manual compiling part
Code coverage, avoiding causes general code generator to be only capable of using for the first time in software development process, improves code and utilizes
Efficiency.
By above-mentioned setting, the fresh code that the code generator that the application proposes generates not only is supported to generate fresh code,
It can also modify to existing code, delete operation.In addition, due to above-mentioned setting, so that this code generator has certainly
I accumulates function, and identical code does not need to write every time, reusable, improves code utilization efficiency.
In addition, the application also proposes a kind of real time workshop device, comprise the following modules:
Hierarchical block, for system to be at least divided into execution level, editing layer and code layer and extract layer;
Enquiry module is inquired in code layer for the condition according to inquiry and obtains qualified template code;
Editor module, in editing layer, using increasing at least one function mould in acquired existing template code
Block, and it is sent to code layer;
The code is stored in code layer for generating code and the code is sent to execution by generation module
Layer;
Execution module, for executing the code for being stored in execution level;
Wherein, wherein the real time workshop device further includes controller, the controller is for executing above-mentioned side
Method step.
Further, in one embodiment of the application, generation module further includes following submodule:
First preserving module, for current executed code to be saved in code layer.
Further, in one embodiment of the application, generation module further includes following submodule:
Second preserving module, for the code of generation to be saved in designated position.
Specifically, the first preserving module and the second preserving module realize two functions respectively, first is that will be current executed
Code is saved, second is that the code of generation to be primarily referred to as newly-generated code and be saved, that is to say, that code building
Before device generates code every time, retain a current code version into database, it is corresponding further according to EXCEL and TEXT file later
Corresponding code is generated, therefore the function code of the module different editions can be remained with, and the code of different editions is independent mutually,
It is independent of each other, to reach the code that code generator can use the same module repetitive operation, not influence manual compiling
Part and the code generated do not cause the technical effect to conflict with system existing module.
Further, the execution module, the mutual independence of code in editor module and preserving module are simultaneously independent of each other, a side
Face saves newly generated code and existing code, and the only present age by editor module newly generated code in preserving module
After code is mature, i.e., by it is multiple generate or be performed a plurality of times after, be just extracted into execution module, three has one's own work to do, mutually not shadow
Ring, on the other hand, the code only in editor module can modify, the code of execution module and preserving module not
It can be modified, above two aspect ensure that not the code of the code section and generation that influence manual compiling is not existing with system
There is module to cause the technical effect of conflict, and the fresh code that code generator generates will not be containing the old of manual compiling part
Code coverage, avoiding causes general code generator to be only capable of using for the first time in software development process, improves code and utilizes
Efficiency.
By above-mentioned setting, the fresh code that the code generator that the application proposes generates not only is supported to generate fresh code,
It can also modify to existing code, delete operation.In addition, due to above-mentioned setting, so that this code generator has certainly
I accumulates function, and identical code does not need to write every time, reusable, improves code utilization efficiency.
It should be appreciated that the embodiment of the present invention can be by computer hardware, the combination of hardware and software or by depositing
The computer instruction in non-transitory computer-readable memory is stored up to be effected or carried out.Standard volume can be used in the method
Journey technology include realized in computer program configured with the non-transitory computer-readable storage media of computer program, wherein
Configured in this way storage medium make computer operated in a manner of specific and is predefined-according in a particular embodiment describing
Method and attached drawing.Each program can be realized with the programming language of level process or object-oriented with logical with computer system
Letter.However, if desired, the program can be realized with compilation or machine language.Under any circumstance, the language can be compiling or
The language of explanation.In addition, the program can be run on the specific integrated circuit of programming for this purpose.
Further, this method can be realized in being operably coupled to suitable any kind of computing platform, including
But it is not limited to PC, mini-computer, main frame, work station, network or distributed computing environment, individual or integrated
It computer platform or is communicated with charged particle tool or other imaging devices etc..Each aspect of the present invention can be with storage
No matter machine readable code on non-transitory storage medium or equipment is moveable or is integrated to calculate and put down to realize
Platform, such as hard disk, optically read and/or write-in storage medium, RAM, ROM, so that it can be read by programmable calculator, when depositing
Storage media or equipment can be used for configuration and operation computer to execute process described herein when being read by computer.In addition,
Machine readable code, or part thereof can be transmitted by wired or wireless network.When such media include in conjunction with microprocessor or
When other data processors realize the instruction or program of steps described above, invention as described herein includes that these and other are different
The non-transitory computer-readable storage media of type.When methods and techniques according to the present invention programming, the present invention is also
Including computer itself.
This document describes embodiment of the disclosure, become known for executing optimal mode of the invention including inventor.It is readding
After having read foregoing description, the variation of these embodiments will be apparent those skilled in the art.Inventor wishes skill
Art personnel optionally use such modification, and inventor be intended to by be different from it is as specifically described herein in a manner of practice this public affairs
The embodiment opened.Therefore, through applicable legal permission, the scope of the present disclosure includes describing in this appended claims
The all modifications and equivalent of theme.In addition, the scope of the present disclosure covers any of the above-mentioned element in its all possible modification
Combination, unless herein in addition instruction or otherwise significantly with contradicted by context.
Although description of the invention is quite detailed and especially several embodiments are described, it is not
Any of these details or embodiment or any specific embodiments are intended to be limited to, but should be considered as is by reference to appended
A possibility that claim provides broad sense in view of the prior art for these claims explanation, to effectively cover the present invention
Preset range.In addition, with the foreseeable embodiment of inventor, present invention is described above, its purpose is to be provided with
Description, and those still unforeseen at present change to unsubstantiality of the invention can still represent equivalent modifications of the invention.
Therefore, should be with descriptive sense rather than restrictive sense understands the specification and drawings.However, by apparent
It is:, can be to the application in the case where not departing from the broader spirit and scope of the application as described in claims
Make various modifications and change.
Other modifications are in spirit herein.Therefore, although disclosed technology may be allowed various modifications and substitution structure
It makes, but has shown that in the accompanying drawings and its some embodiments shown in being described in detail above.It will be appreciated, however, that not
It is intended to for the application to be confined to disclosed one or more concrete forms;On the contrary, its intention covers such as the appended claims
Defined in fall in all modifications, alternative constructions and equivalent in spirit and scope.
Claims (10)
1. a kind of real time workshop device, which is characterized in that comprise the following modules:
Execution module is connected with extraction module, for executing the code for being stored in this module;
Editor module is connected with generation module and preserving module, the logical code that can be identified for generating developer;
Generation module is connected with editor module and preserving module, is for what logical code was generated as that system is able to carry out
System code;
Preserving module is connected with generation module and extraction module, for by current executed code and by the code of generation
It is saved in this module;
Extraction module is connected with execution module and preserving module, for will be in preserving module according to the first extraction conditions
Code, which extracts, writes module, and according to the second extraction conditions, the code in preserving module is extracted execution module.
2. real time workshop device according to claim 1, which is characterized in that the language that the code uses includes
JAVA, SQL, JAVASCRIPT and XML.
3. real time workshop device according to claim 1, which is characterized in that first extraction conditions by manually into
Row setting.
4. real time workshop device according to claim 1, which is characterized in that second extraction conditions are the generation
Code is generated at least twice by the code generator.
5. real time workshop device according to claim 1, which is characterized in that in the generation module, include generation
The save location of code.
6. a kind of real time workshop method, which comprises the following steps:
S100) system is at least divided into execution level, editing layer, code layer and extract layer;
S200 it) is inquired in code layer according to the condition of inquiry and obtains qualified template code;
S300) in editing layer, increase code in template code, form newly-increased code and be sent to code layer;
S400) the system code that can identify newly-increased code conversion for system, and the code is stored in code layer and is incited somebody to action
The code is sent to execution level;
S500 the code for being stored in execution level) is executed.
7. according to the method described in claim 6, it is characterized in that, step S400 further includes following previous step:
Current executed code is saved in code layer.
8. according to the method described in claim 6, it is characterized in that, step S400 further includes following postposition step:
The code of generation is saved in designated position.
9. according to the method described in claim 6, it is characterized in that, the template code is stored in EXCEL file and TXT text
In.
10. a kind of real time workshop device, which is characterized in that comprise the following modules:
Hierarchical block, for system to be at least divided into execution level, editing layer and code layer and extract layer;
Enquiry module is inquired in code layer for the condition according to inquiry and obtains qualified template code;
Editor module, in editing layer, using increasing at least one functional module in acquired existing template code, and
It is sent to code layer;
The code is stored in code layer for generating code and the code is sent to execution level by generation module;
Execution module, for executing the code for being stored in execution level;
Wherein, wherein the real time workshop device further includes controller, the controller is for executing as claim 6 arrives
Method described in any one of 9.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811269624.8A CN109522012A (en) | 2018-10-29 | 2018-10-29 | A kind of real time workshop device and real time workshop method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811269624.8A CN109522012A (en) | 2018-10-29 | 2018-10-29 | A kind of real time workshop device and real time workshop method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109522012A true CN109522012A (en) | 2019-03-26 |
Family
ID=65772586
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811269624.8A Pending CN109522012A (en) | 2018-10-29 | 2018-10-29 | A kind of real time workshop device and real time workshop method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109522012A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114385175A (en) * | 2020-10-20 | 2022-04-22 | 武汉斗鱼鱼乐网络科技有限公司 | Code generation method and device, electronic equipment and storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101727324A (en) * | 2009-12-17 | 2010-06-09 | 中国电力科学研究院 | Code generation method and device |
| CN103135976A (en) * | 2011-11-30 | 2013-06-05 | 阿里巴巴集团控股有限公司 | Code automatic generation method and device |
| CN103176785A (en) * | 2011-12-26 | 2013-06-26 | 中国电信股份有限公司 | Widget application online implement system and method |
| US20130326470A1 (en) * | 2012-05-31 | 2013-12-05 | Sap Ag | Domain-specific generation of programming interfaces for business objects |
| CN107729003A (en) * | 2017-11-20 | 2018-02-23 | 江苏神州信源系统工程有限公司 | Automatic generation method, device and the electronic equipment of code |
| CN108228166A (en) * | 2018-03-15 | 2018-06-29 | 链家网(北京)科技有限公司 | A kind of back-end code generation method and system based on template |
-
2018
- 2018-10-29 CN CN201811269624.8A patent/CN109522012A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101727324A (en) * | 2009-12-17 | 2010-06-09 | 中国电力科学研究院 | Code generation method and device |
| CN103135976A (en) * | 2011-11-30 | 2013-06-05 | 阿里巴巴集团控股有限公司 | Code automatic generation method and device |
| CN103176785A (en) * | 2011-12-26 | 2013-06-26 | 中国电信股份有限公司 | Widget application online implement system and method |
| US20130326470A1 (en) * | 2012-05-31 | 2013-12-05 | Sap Ag | Domain-specific generation of programming interfaces for business objects |
| CN107729003A (en) * | 2017-11-20 | 2018-02-23 | 江苏神州信源系统工程有限公司 | Automatic generation method, device and the electronic equipment of code |
| CN108228166A (en) * | 2018-03-15 | 2018-06-29 | 链家网(北京)科技有限公司 | A kind of back-end code generation method and system based on template |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114385175A (en) * | 2020-10-20 | 2022-04-22 | 武汉斗鱼鱼乐网络科技有限公司 | Code generation method and device, electronic equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106528165B (en) | Code generating method and code generating system | |
| CN106095408B (en) | A kind of system and method for data monitoring and Code automatic build and deployment | |
| Aysolmaz et al. | A semi-automated approach for generating natural language requirements documents based on business process models | |
| Wasserman et al. | The future of programming | |
| US8375063B2 (en) | Method and program product for migrating data from a legacy system | |
| CN101661580B (en) | Software testing method and system | |
| CN105528418B (en) | A kind of design documentation generation method and device | |
| CN107111663A (en) | Target compiles for the heterogeneous multiprocessor program of programmable integrated circuit | |
| CN106445536B (en) | Automatic business design management system | |
| CN102033743A (en) | System and method for expanding model driving development capability by applying plug-in | |
| CN104090776A (en) | Software development method and system | |
| CN104252342A (en) | Method and device for realizing embedding type application with configurable parameters | |
| CN107016094B (en) | Project shared file multi-person collaborative development method, device and system | |
| CN111813661A (en) | Global service data drive automatic test method, device, equipment and medium | |
| de Gea et al. | Requirements engineering tools: An evaluation | |
| CN113919158B (en) | Simulation method and device for flight control panel and storage medium | |
| Rong et al. | DevDocOps: towards automated documentation for DevOps | |
| CN109522012A (en) | A kind of real time workshop device and real time workshop method | |
| Keller et al. | Improving knowledge transfer at the architectural level: Concepts and notations | |
| CN108417245A (en) | Health account computerized editing method, system and computer equipment | |
| CN105512039B (en) | A kind of generation method and device of software test request slip | |
| CN108427675A (en) | Build the method and apparatus of index | |
| CN118535887A (en) | Efficient fine tuning evaluation method and system for large language model | |
| US20130110730A1 (en) | Integration of computerized project planning and project diagramming | |
| Chikh et al. | Towards a dynamic software requirements specification |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190326 |
|
| RJ01 | Rejection of invention patent application after publication |