CN113434131A - Programming method and device, computer equipment and storage medium - Google Patents

Programming method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113434131A
CN113434131A CN202110131537.1A CN202110131537A CN113434131A CN 113434131 A CN113434131 A CN 113434131A CN 202110131537 A CN202110131537 A CN 202110131537A CN 113434131 A CN113434131 A CN 113434131A
Authority
CN
China
Prior art keywords
execution
program
configuration file
file
code
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
Application number
CN202110131537.1A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xuancheng Ruihui Xuansheng Enterprise Management Center Partnership LP
Original Assignee
Xuancheng Ruihui Xuansheng Enterprise Management Center Partnership LP
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xuancheng Ruihui Xuansheng Enterprise Management Center Partnership LP filed Critical Xuancheng Ruihui Xuansheng Enterprise Management Center Partnership LP
Priority to CN202110131537.1A priority Critical patent/CN113434131A/en
Publication of CN113434131A publication Critical patent/CN113434131A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms

Abstract

The invention provides a program compiling method, a program compiling device, computer equipment and a storage medium, which belong to the technical field of automatic control, and specifically comprise the steps of acquiring a preset frame and a corresponding frame code according to target equipment; acquiring a universal code file packaged into a universal program module according to the frame code; determining a plurality of execution elements corresponding to the target device and a packaging configuration file corresponding to the execution elements, wherein the packaging configuration file at least comprises configuration parameters and an execution sequence; and packaging the packaging configuration file and the corresponding general code file to obtain a subprogram, and assembling the subprogram into an object program file corresponding to the object device based on the execution sequence. By the processing scheme, the program code can be quickly written, the written program code can be used for multiple times, safely and reliably, and the program code does not need to be repeatedly debugged and modified in a time-consuming manner.

Description

Programming method and device, computer equipment and storage medium
Technical Field
The invention relates to the field of automatic control, in particular to a program compiling method, a program compiling device, computer equipment and a storage medium.
Background
The automatic control program is written by programmers according to the use requirements of the equipment. In a complete automatic process, the programmer writes the action codes of the execution elements in the automatic process according to the motion sequence of the execution elements in the automatic process. The software executes the written codes in sequence from the beginning of the automatic process to the end of the program, and completes the execution of the automatic process.
However, when the program is written in the existing programming mode, the program needs to be written according to the actual process flow, and once the automatic flow needs to be modified or the execution elements in the equipment need to be changed, the programmer needs to modify the automatic flow codes again and debug the program codes again. The method is to customize the program for a specific process, the program is difficult to transplant, and the written program cannot be flexibly updated.
Disclosure of Invention
Accordingly, to overcome the above-described disadvantages of the prior art, the present invention provides a program writing method, apparatus, computer device, and storage medium that can write or modify a program quickly.
In order to achieve the above object, the present invention provides a method of writing a program for controlling a target device, including: acquiring a preset frame and a corresponding frame code according to target equipment; acquiring a universal code file packaged into a universal program module according to the frame code; determining a plurality of execution elements corresponding to the target device and a packaging configuration file corresponding to the execution elements, wherein the packaging configuration file at least comprises configuration parameters and an execution sequence; and packaging the packaging configuration file and the corresponding general code file to obtain a subprogram, and assembling the subprogram into an object program file corresponding to the object device based on the execution sequence.
In one embodiment, the configuration file is a configuration file that can be edited by a developer, and the configuration file is used for providing options for enabling the general program module for the general program module, so that the general program module can be selectively enabled according to the motor parameters and the motor running state of the execution element contained in the target device.
In one embodiment, the configuration file is a configuration file that can be edited by a developer, and the configuration file is used to provide options of configuration parameters for the general program module, where the configuration parameters correspond to execution parameters of the execution element.
In one embodiment, the method further comprises the following steps: a link is provided between an operating system of an execution element and the execution element to notify the execution element of a change in the operating system.
In one embodiment, the package configuration file further includes a control variable, and the control variable is adjusted according to the change notification to implement execution adjustment of the execution element.
In one embodiment, after the assembling the sub-programs into the target program file corresponding to the target device based on the execution sequence, the method further includes: obtaining current operating parameters of the execution element through the link; and judging whether the target equipment is smoothly executed according to the current operation parameters, and generating a corresponding judgment result.
In one embodiment, the execution element of the target device comprises at least one of: a gateway component, a session management component, a client invocation component, a task scheduling component, a database component, a message queue component, a caching component, a project construction and deployment component, and a logging component.
The invention also provides a program compiling device, which comprises: the frame code acquisition module is used for acquiring a preset frame and a corresponding frame code according to the target equipment; the universal code acquisition module is used for acquiring a universal code file packaged into a universal program module according to the frame code; a configuration file obtaining module, configured to determine a plurality of execution elements corresponding to the target device and a package configuration file corresponding to the execution elements, where the package configuration file at least includes configuration parameters and an execution sequence; and the packaging module is used for packaging the packaging configuration file and the corresponding general code file to obtain a subprogram, and assembling the subprogram into an object program file corresponding to the object device based on the execution sequence.
The invention also provides a computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the above method when executing the computer program.
The invention also provides a computer-readable storage medium, on which a computer program is stored, characterized in that the computer program realizes the steps of the above-mentioned method when executed by a processor.
Compared with the prior art, the invention has the advantages that: the encapsulation of the execution code of the execution element is adopted, so that the code can be safely and reliably used for a plurality of times after being debugged, and the repeated debugging and modification of the code are not needed in a time-consuming manner. Because the automatic flow carries out the decomposition of the sub-actions, the influence of the execution program of the sub-actions is not needed to be considered when the automatic flow is modified, and only the execution sequence needs to be modified to efficiently finish one modification. Meanwhile, due to mutual independence between the sub-actions, the minimum modification action of the program can be realized when the sub-actions are modified or increased or decreased without worrying about the influence on other programs.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a diagram of an application scenario of a method of programming in one embodiment;
FIG. 2 is a flow diagram illustrating a method for programming in one embodiment;
FIG. 3 is a schematic diagram of the connection of control variables to an operating program before program modification in one embodiment;
FIG. 4 is a schematic diagram of the connection of control variables to an operating program after program modification in one embodiment;
FIG. 5 is a block diagram of a programmer in one embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment;
in the drawings, wherein:
102-terminal, 104-server;
502-framework code acquisition module, 504-universal code acquisition module, 506-configuration file acquisition module, 508-encapsulation module.
Detailed Description
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
The following description of the embodiments of the present application is provided by way of specific examples, and other advantages and effects of the present application will be readily apparent to those skilled in the art from the disclosure herein. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. The present application is capable of other and different embodiments and its several details are capable of modifications and/or changes in various respects, all without departing from the spirit of the present application. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the present application, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present application, and the drawings only show the components related to the present application rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that aspects may be practiced without these specific details.
The technical idea of the invention is as follows: the method comprises the steps of dividing a complete automatic flow related to the calling of the full flow/full action of an execution element into a plurality of sub-flows/sub-actions with specific functions by packaging the execution code of the execution element and splitting the automatic flow, and connecting the plurality of sub-flows/sub-actions in series into the complete automatic flow in a combined calling mode. Therefore, the generation or modification of an automatic flow can be completed by modifying the code corresponding to the sub-flow/sub-action or the calling sequence during calling.
The method for writing the program can be applied to the application environment shown in FIG. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102/server 104 may obtain a preset frame and a corresponding frame code from the server 104 according to the target device; the terminal 102/server 104 acquires a universal code file packaged into a universal program module from the server 104 according to the frame code; the terminal 102/the server 104 determines a plurality of execution elements corresponding to the target device and a packaging configuration file corresponding to the execution elements, wherein the packaging configuration file at least comprises configuration parameters and an execution sequence; the terminal 102/the server 104 packages the package configuration file and the corresponding general code file to obtain the subprogram, and assembles the subprogram into an object program file corresponding to the object device based on the execution sequence. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable smart devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a method for writing a program is provided, which is described by taking the method as an example applied to the terminal in fig. 1, and includes the following steps:
step 202, acquiring a preset frame and a corresponding frame code according to the target device.
And the terminal acquires a preset frame and a corresponding frame code according to the target equipment. The terminal may select the preset framework according to an execution environment required by the target device, for example, a development framework of the preset framework may be mainly spring mvc and spring boot, but there are many other options. The encapsulation module is actually an item generation tool matched with the framework, the compiled basic web items are preset in the generation tool, and the content can include basic functional components and corresponding resource files. The encapsulation module will store configuration parameters and execution order corresponding to the execution elements in correspondence with the database link addresses for use in subsequent operations.
In the traditional project development, the pages of Query, View and Modify of each entity are complicated, codes need to be repeatedly written, a large amount of manpower is wasted, and the frame codes of the embodiment adopt a universal page method to solve the problem. The general page of the embodiment may include: the method includes the steps that a query page (QueryPage), a newly added page (CreatePage), an updated page (modifopage), a preview page (ViewPage) and the like are carried out, when the page is accessed, path parameters of used entity names (for example, the QueryPagePath is signed/signed List, namely, a signed List Schema Json object under a Signature folder under a Schema Json directory is obtained, the Schema Json refers to Mapping Json to further obtain an entity object), one Schema Json file can correspond to a plurality of Mapping Json files, and different entities can be loaded on the same page. After obtaining the Schema Json path parameter, the program may obtain a package configuration file corresponding to the execution element, and fill the package configuration file into the position corresponding to the frame as a blank. And generating a unified style control or list for the functional interface by analyzing each attribute in Schema Json and Mapping Json and using a universal page (QueryPage \ CreatePage \ ModifyPage \ ViewPage) built in the frame. Illustratively, the gateway may select Zuul, APIGateway, etc. of SpringCloud, or may directly use Nginx as the gateway; the protocol analysis can select json lib, fastjson, gson and the like of jackson or jdk; task scheduling can select quartz, springTask, Elastic-Job, etc.; queues can be selected from rabbitmq, activemq, kafka, rocktmq, zeromq and the like; the persistence layer can select ORM (object relational mapping) frameworks such as Hibernate, Mybatis, JPA and the like; the transaction may use aop statement or annotation (annotation), etc.; the database connection pool can select dbcp, c3p0, HikaricP and the like; the cache can select redis, memcached and the like; the service registration discovery configuration center can select zookeeper, redis, eureka, configserver, etcd, consul and the like, and some items may not have the service registration discovery configuration center; the role authority can select springsecurity, shrio or the own frame of a developer and the like; the project construction mode can be maven, ant or manual construction and the like; the project deployment mode can be selected from jar, war, docker and the like; the document specification may select word, swagger, tapd, etc.
And step 204, acquiring a universal code file packaged into a universal program module according to the framework code.
And the terminal acquires a universal code file packaged into a universal program module according to the frame code. The universal code file is suitable for all execution elements and adopts the same input and output data parameters.
Step 206, determining a plurality of execution elements corresponding to the target device and a package configuration file corresponding to the execution elements, where the package configuration file at least includes configuration parameters and an execution sequence.
The terminal determines a plurality of execution elements corresponding to the target device and a packaging configuration file corresponding to the execution elements, wherein the packaging configuration file at least comprises configuration parameters and an execution sequence. The variables and control flows of the same type of execution elements with different brands need to be controlled are different or even completely different. For example, for the operation of the motor, it may be defined that the general block includes two input quantities of start and stop, and there may be one or more operations of power-on, enable, brake and motor operation for different motor uses and operation sequences are respectively different, but related actions performed inside the motor may be programmed together to jointly implement the action of the start input quantity of the general block. In this way, when the same type of execution element is called in the actual writing process, the calling mode is the same. In one embodiment, the actuator comprises at least one of: a gateway component, a session management component, a service discovery and configuration center component, a client invocation component, a task scheduling component, a database component, a message queue component, a caching component, a role authority checking component, a service fusing and connection pool component, a service link tracking component, a project construction and deployment component, and a log component.
And step 208, packaging the packaging configuration file and the corresponding general code file to obtain a subprogram, and assembling the subprogram into an object program file corresponding to the object device based on the execution sequence.
And the terminal packages the package configuration file and the corresponding general code file to obtain the subprogram and the execution code thereof, and assembles the subprogram into an object program file corresponding to the object device based on the execution sequence. The terminal can well analyze and decompose a complete automatic control flow by uniformly calling the execution elements, and further, the complete automatic flow is divided into a plurality of subprograms with single action.
The program writing method adopts the encapsulation of the execution code of the execution element, so that the program can be safely and reliably used for a plurality of times after the code is debugged, and the repeated debugging and modification of the program do not need to be carried out in a time-consuming manner. Because the automatic flow carries out the decomposition of the sub-actions, the influence of the execution program of the sub-actions is not needed to be considered when the automatic flow is modified, and only the execution sequence needs to be modified to efficiently finish one modification. Meanwhile, due to mutual independence between the sub-actions, the minimum modification action of the program can be realized when the sub-actions are modified or increased or decreased without worrying about the influence on other programs.
In one embodiment, the configuration file is a configuration file which can be edited by a developer, and the configuration file is used for providing options for enabling the general program module for the general program module, so that the general program module can be selectively enabled according to the motor parameters and the motor running state of the execution element contained in the target device.
The configuration file provides each of the general-purpose program modules with an option for enabling the general-purpose program module such that the general-purpose program module can be selectively enabled based on the motor parameters, the motor operating state, and the like of the actuator included in the target device. For example, an "enable" parameter may be set in the configuration file for each program module, and when the value thereof is set to "true", it indicates that the corresponding program module is enabled. Or, as shown in fig. 3, when the execution element includes a control variable 1, a control variable 2, a control variable 3, and a control variable 4, and when some or some of the control variables set in the configuration file of the execution element all reach a specific range, the corresponding program module is started, where the control variable 1 may be a motor parameter, and the control variable may be a motor operating state.
In one embodiment, the configuration file is a configuration file that can be edited by a developer, and the configuration file is used for providing options of configuration parameters for the general program module, and the configuration parameters correspond to execution parameters of the execution element.
The developer may modify the configuration files as needed, such as to enable the desired program modules, to modify the configuration parameters of the program modules used, as needed, and so forth. The execution parameters are data adopted by each execution element during operation, and the configuration parameters correspond to the execution parameters of the execution elements. And then the code generation tool can carry out packaging processing according to the modified configuration file and the corresponding general code file to obtain the execution code of the subprogram. The generated execution code contains the enabled program modules. Developers can modify the generated execution code to complete the development task, so that a great deal of basic and repetitive development is omitted for the developers, and the developers can concentrate on the development of the core service. This can both improve development efficiency and help to enhance developed service stability and performance.
In one embodiment, the method further comprises the following steps: a link is provided between the operating system of the execution element and the execution element to notify the execution element of a change in the operating system.
In this embodiment, the method further includes: a link is provided between the operating system of the execution element and the execution element to notify the execution element of a change in the operating system. Each subroutine is provided with a link to the operating system that can notify the corresponding subroutine of changes to the operating system. The operating system may be an equipment auto clean system, a PCB production system, a PCD deposition system, or the like. These changes in the operating system may be notified to the subroutine, for example, when the computer system is powered up or down. Another feature of this embodiment is the ability to provide a link between the subprogram and the operating system which can determine whether the objects contained in the storage device are objects that the subprogram can execute. This allows the computer user to quickly find and view the files that the sub-program can execute. In one embodiment, the package configuration file further includes a control variable, and the control variable is adjusted according to the change notification to implement execution adjustment of the execution element.
As described above, the change notification may be that the execution element generated by the operating system needs to change the execution state or the execution parameter corresponding to the execution element at the time of power-on or power-off, or may need to change the state after the execution element performs a certain operation for a long time. The change notification may carry state information and execution parameters before and after the change; only the changed state information and execution parameters may be carried. The package configuration file also comprises a control variable, and the control variable is adjusted according to the change notification, so that the execution adjustment of the execution element is realized. As shown in fig. 3 and 4, in the normal automatic flow, when the subprogram 1, the subprogram 2, the subprogram 3, and the subprogram 4 need to be called in the normal order, the control variable 1, the control variable 2, the control variable 3, and the control variable 4 need only to be opened in sequence, and the execution can be performed smoothly. When the automatic flow of the program needs to be modified, for example, the calling sequence is changed into the subprogram 2, the subprogram 1, the subprogram 4 and the subprogram 3, all that the whole program needs to be modified is to sequentially open the sequence of the control variables, that is, sequentially open the control variable 2, the control variable 1, the control variable 4 and the control variable 3, so that the adjustment of the program can be realized.
In one embodiment, after the sub-programs are assembled into the target program file corresponding to the target device based on the execution sequence, the method further includes: acquiring current operating parameters of the execution element through a link; and judging whether the target equipment is smoothly executed according to the current operation parameters, and generating a corresponding judgment result.
The server may obtain the current operating parameters of the execution element over the link. And the server judges whether the execution element is in a normal working state or not according to the current operation parameter so as to judge whether the target equipment is smoothly executed or not and generate a corresponding judgment result. For example, the sequence called in the object program file is subroutine 2, subroutine 1, subroutine 4 and subroutine 3, when the control variable 2 is opened but the control variable 1 is not opened, only the execution element 2 can be operated, and the server can obtain the current operation parameters of the execution element 2 through the link and obtain the state information that the execution element 1, the execution element 4 and the execution element 3 are closed at this time. The server can judge whether the execution element works normally according to all the current operation parameters, further judge whether the target device executes smoothly, and generate a corresponding judgment result. The server may present the determination result.
In one embodiment, as shown in fig. 5, there is provided a writer device including: a framework code acquisition module 502, a generic code acquisition module 504, a configuration file acquisition module 506, and an encapsulation module 508, wherein:
a frame code obtaining module 502, configured to obtain a preset frame and a corresponding frame code according to a target device.
A universal code obtaining module 504, configured to obtain a universal code file encapsulated as a universal program module according to the framework code.
A configuration file obtaining module 506, configured to determine a plurality of execution elements corresponding to the target device and a package configuration file corresponding to the execution elements, where the package configuration file includes at least configuration parameters and an execution sequence.
And the packaging module 508 is configured to package the package configuration file and the corresponding general code file to obtain a subprogram, and assemble the subprogram into an object program file corresponding to the object device based on the execution sequence.
For the specific limitations of the programming device, reference may be made to the above limitations of the programming method, which are not described herein again. The various modules in the above described programmer device may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the writing program data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a programming method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The present application further provides a computer device comprising a memory and one or more processors, the memory having stored therein computer-readable instructions, which when executed by the processors, implement the steps of the method of writing a program provided in any of the embodiments of the present application.
The present application also provides one or more computer-readable storage media storing computer-readable instructions which, when executed by one or more processors, cause the one or more processors to implement the steps of the method of writing a program provided in any one of the embodiments of the present application.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of writing a program for controlling a target device, comprising:
acquiring a preset frame and a corresponding frame code according to target equipment;
acquiring a universal code file packaged into a universal program module according to the frame code;
determining a plurality of execution elements corresponding to the target device and a packaging configuration file corresponding to the execution elements, wherein the packaging configuration file at least comprises configuration parameters and an execution sequence;
and packaging the packaging configuration file and the corresponding general code file to obtain a subprogram, and assembling the subprogram into an object program file corresponding to the object device based on the execution sequence.
2. The method of claim 1, wherein the configuration file is a configuration file editable by a developer, and the configuration file is used for providing the general program module with an option for enabling the general program module, so that the general program module can be selectively enabled according to the motor parameters and the motor running state of an execution element contained in the target device.
3. The method of claim 1, wherein the configuration file is a configuration file that can be edited by a developer, and the configuration file is used to provide the general program module with options of configuration parameters, and the configuration parameters correspond to execution parameters of the execution element.
4. The method of claim 1, further comprising: a link is provided between an operating system of an execution element and the execution element to notify the execution element of a change in the operating system.
5. The method of claim 4, wherein the package configuration file further comprises a control variable, and wherein the control variable is adjusted according to the change notification to implement the execution adjustment of the execution element.
6. The method of claim 4, wherein after assembling the sub-programs into the target program file corresponding to the target device based on the execution order, further comprising: obtaining current operating parameters of the execution element through the link;
and judging whether the target equipment is smoothly executed according to the current operation parameters, and generating a corresponding judgment result.
7. The method according to any of claims 1-6, wherein the execution element of the target device comprises at least one of: a gateway component, a session management component, a client invocation component, a task scheduling component, a database component, a message queue component, a caching component, a project construction and deployment component, and a logging component.
8. A program writing apparatus, the apparatus comprising:
the frame code acquisition module is used for acquiring a preset frame and a corresponding frame code according to the target equipment;
the universal code acquisition module is used for acquiring a universal code file packaged into a universal program module according to the frame code;
a configuration file obtaining module, configured to determine a plurality of execution elements corresponding to the target device and a package configuration file corresponding to the execution elements, where the package configuration file at least includes configuration parameters and an execution sequence;
and the packaging module is used for packaging the packaging configuration file and the corresponding general code file to obtain a subprogram, and assembling the subprogram into an object program file corresponding to the object device based on the execution sequence.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110131537.1A 2021-01-30 2021-01-30 Programming method and device, computer equipment and storage medium Pending CN113434131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110131537.1A CN113434131A (en) 2021-01-30 2021-01-30 Programming method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110131537.1A CN113434131A (en) 2021-01-30 2021-01-30 Programming method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113434131A true CN113434131A (en) 2021-09-24

Family

ID=77752744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110131537.1A Pending CN113434131A (en) 2021-01-30 2021-01-30 Programming method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113434131A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109407534A (en) * 2018-12-04 2019-03-01 深圳绿米联创科技有限公司 Equipment control method and device, configuration equipment and control device
CN114911474A (en) * 2022-07-18 2022-08-16 中国空气动力研究与发展中心低速空气动力研究所 Data processing method and device based on computing module and storage medium
CN115951893A (en) * 2022-12-02 2023-04-11 深圳微迅信息科技有限公司 Method, system, equipment and storage medium for acquiring semiconductor processing script

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109407534A (en) * 2018-12-04 2019-03-01 深圳绿米联创科技有限公司 Equipment control method and device, configuration equipment and control device
CN109407534B (en) * 2018-12-04 2022-05-13 深圳绿米联创科技有限公司 Equipment control method and device, configuration equipment and control device
CN114911474A (en) * 2022-07-18 2022-08-16 中国空气动力研究与发展中心低速空气动力研究所 Data processing method and device based on computing module and storage medium
CN114911474B (en) * 2022-07-18 2022-10-25 中国空气动力研究与发展中心低速空气动力研究所 Data processing method and device based on computing module and storage medium
CN115951893A (en) * 2022-12-02 2023-04-11 深圳微迅信息科技有限公司 Method, system, equipment and storage medium for acquiring semiconductor processing script
CN115951893B (en) * 2022-12-02 2024-02-23 深圳微迅信息科技有限公司 Method, system, equipment and storage medium for acquiring semiconductor processing script

Similar Documents

Publication Publication Date Title
CN113434131A (en) Programming method and device, computer equipment and storage medium
Yan et al. Discotect: A system for discovering architectures from running systems
Faugere et al. Marte: Also an uml profile for modeling aadl applications
Cao et al. The liteos operating system: Towards unix-like abstractions for wireless sensor networks
US5911074A (en) Process for manipulating data models used in software engineering
US9405653B1 (en) Filtering data frames using program instrumentation
US20160188450A1 (en) Automated application test system
US8997042B2 (en) Flexible and run-time-modifiable inclusion of functionality in computer code
CN110362301B (en) Processing method for terminal application behavior reflection
US10083029B2 (en) Detect application defects by correlating contracts in application dependencies
CN108197004B (en) IOS application method time consumption and view loading time consumption monitoring method and system
CN113312046A (en) Sub-application page processing method and device and computer equipment
US9703550B1 (en) Techniques for building code entities
US10296299B2 (en) Server-side weaving of application-oriented-programming advice into computer code that preempts client-side load-time weaving
CN110347448B (en) Method for constructing runtime model of terminal application behavior
Fuad et al. Transformation of existing programs into autonomic and self-healing entities
Scherfke Mosaik documentation
Navas et al. Reconciling run-time evolution and resource-constrained embedded systems through a component-based development framework
Ebenhofer et al. Generic and reconfigurable IEC 61499 function blocks for advanced platform independent engineering
Komlós et al. Effect of connectivity in associative memory models
Chochlík Portable reflection for C++ with Mirror
EP4231204A1 (en) System for developing and running applications in hybrid quantum computing networks
Ancilotti et al. A development environment for hard real-time applications
Fuad An autonomic software architecture for distributed applications
Manjikian Dynamic RAM-based programs and tasks in the freescale MQX operating system

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