Module association assignment method and device, computer equipment and readable storage medium

文档序号:7165 发布日期:2021-09-17 浏览:39次 中文

1. A method for module association assignment, the method comprising:

receiving an assignment instruction, wherein the assignment instruction carries module information of an assigned functional module and an assignment parameter;

determining a corresponding functional module based on the module information, and assigning the assignment parameter to the functional module;

acquiring an association module corresponding to the functional module according to a pre-established association relationship;

and assigning the assignment parameters of the functional modules to the association modules based on the association relationship.

2. The method according to claim 1, wherein assigning the assignment parameter of the functional module to the association module based on the association relationship comprises:

judging whether the module types of the functional module and the associated module with the associated relationship are consistent or not;

when the module types are consistent, determining that a front-back logic relationship exists between the functional module and the associated module, and assigning the assignment parameters of the functional module to the associated module through a module connecting line between the functional module and the associated module;

and when the module types are not consistent, determining that an inclusion relationship exists between the functional module and the association module, and assigning the assignment parameters of the functional module to the association module through the inclusion relationship between the functional module and the association module.

3. The method of claim 2, wherein the module connection line is established by:

acquiring a module creating instruction, wherein the module creating instruction is a text sentence instruction or a module selecting instruction;

and determining a corresponding functional module and an associated module based on the module creating instruction, and establishing a module connecting line between the functional module and the associated module.

4. The method of claim 2, further comprising:

when the number of the functional modules having the inclusion relationship with the association module is at least two, determining the functional module corresponding to the inclusion relationship with the latest establishment time as a target functional module corresponding to the association module based on the establishment time of each inclusion relationship between each functional module and the association module;

the assigning the assignment parameter of the functional module to the association module through the inclusion relationship between the functional module and the association module includes:

and assigning the assignment parameters of the functional modules to the association modules through the inclusion relationship between the target functional modules and the association modules.

5. The method according to claim 1, wherein before assigning the assignment parameter of the functional module to the association module based on the association relationship, the method further comprises:

acquiring attribute data of the associated module;

judging whether the attribute data contains the parameter attribute of the assignment parameter;

when the attribute data contains the parameter attribute of the assignment parameter, the assignment parameter of the functional module is assigned to the association module on the basis of the association relation;

and when the attribute data does not contain the parameter attribute of the assignment parameter, assigning no value to the associated module.

6. The method of claim 1, further comprising:

acquiring a first assignment parameter of the association module;

acquiring a second assignment parameter of the functional module corresponding to the association module;

judging whether the first assignment parameter is consistent with the second assignment parameter;

and when the first assignment parameter is inconsistent with the second assignment parameter, assigning the second assignment parameter of the functional module to the associated module.

7. The method of claim 6, wherein before determining whether the first assignment parameter and the second assignment parameter are consistent, further comprising:

judging whether the second assignment parameter is null or not;

when the second assignment parameter is empty, the first assignment parameter of the associated module is reserved;

and when the second assignment parameter is non-empty, continuously judging whether the first assignment parameter is consistent with the second assignment parameter, and when the first assignment parameter is inconsistent with the second assignment parameter, assigning the second assignment parameter of the functional module to the association module.

8. A module association assigning apparatus, the apparatus comprising:

the assignment instruction receiving module is used for receiving an assignment instruction, and the assignment instruction carries module information of the assigned functional module and assignment parameters;

the first assignment module is used for determining a corresponding functional module based on the module information and assigning the assignment parameters to the functional module;

the association module determining module is used for acquiring an association module which has a corresponding association relation with the function module according to a pre-established association relation;

and the second assignment module is used for assigning the assignment parameters of the functional modules to the association module based on the association relationship.

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.

Background

In the software control logic design, various functional modules with assignment parameters are defined, the functional modules have attribute parameters, the attribute parameters mainly represent the characteristics and attributes of the functional modules, and the attribute parameters belong to different functional modules.

In a conventional manner, each module is generally assigned manually by a human, or assigned based on a pre-configured basic attribute parameter. And for different modules, even if the same characteristics and attributes exist, the modules need to be respectively assigned, but cannot be assigned at the same time. Thus, the efficiency of assigning the functional module is low.

Disclosure of Invention

Therefore, it is necessary to provide a module association assignment method, a module association assignment device, a computer device, and a readable storage medium, which can improve module assignment efficiency.

A method of module association assignment, the method comprising:

receiving an assignment instruction, wherein the assignment instruction carries module information and assignment parameters of an assigned functional module;

determining a corresponding functional module based on the module information, and assigning the assignment parameters to the functional module;

acquiring an association module corresponding to the functional module according to a pre-established association relationship;

and assigning the assignment parameters of the functional modules to the association modules based on the association relationship.

In one embodiment, assigning the assignment parameter of the functional module to the association module based on the association relationship includes:

judging whether the module types of the functional module and the associated module with the associated relationship are consistent or not;

when the module types are consistent, determining that a front-back logic relationship exists between the functional module and the associated module, and assigning the assignment parameters of the functional module to the associated module through a module connecting line between the functional module and the associated module;

and when the module types are not consistent, determining that an inclusion relationship exists between the functional module and the associated module, and assigning the assignment parameters of the functional module to the associated module through the inclusion relationship between the functional module and the associated module.

In one embodiment, the module connection line is established by:

acquiring a module creating instruction, wherein the module creating instruction is a text sentence instruction or a module selecting instruction;

and determining a corresponding functional module and an associated module based on the module creating instruction, and establishing a module connecting line between the functional module and the associated module.

In one embodiment, the method further includes:

when the number of the functional modules having the inclusion relation with the association module is at least two, determining the functional module corresponding to the inclusion relation with the latest establishment time as a target functional module corresponding to the association module based on the establishment time of each inclusion relation between each functional module and the association module;

assigning the assignment parameters of the functional modules to the associated modules through the inclusion relationship between the functional modules and the associated modules, including:

and assigning the assignment parameters of the functional modules to the associated modules through the inclusion relationship between the target functional modules and the associated modules.

In one embodiment, before assigning the assignment parameter of the functional module to the association module based on the association relationship, the method further includes:

acquiring attribute data of the associated module;

judging whether the attribute data contains the parameter attribute of the assignment parameter;

when the attribute data contains the parameter attribute of the assignment parameter, the assignment parameter of the functional module is assigned to the association module on the basis of the association relation;

and when the attribute data does not contain the parameter attribute of the assignment parameter, the assignment processing is not carried out on the association module.

In one embodiment, the method further includes:

acquiring a first assignment parameter of the association module;

acquiring a second assignment parameter of the functional module corresponding to the association module;

judging whether the first assignment parameter is consistent with the second assignment parameter;

and when the first assignment parameter is inconsistent with the second assignment parameter, assigning the second assignment parameter of the functional module to the associated module.

In one embodiment, before determining whether the first assignment parameter and the second assignment parameter are consistent, the method further includes:

judging whether the second assignment parameter is empty;

when the second assignment parameter is empty, the first assignment parameter of the associated module is reserved;

and when the second assignment parameter is non-empty, continuously judging whether the first assignment parameter is consistent with the second assignment parameter, and when the first assignment parameter is inconsistent with the second assignment parameter, assigning the second assignment parameter of the functional module to the associated module.

A module association assigning apparatus, the apparatus comprising:

the assignment instruction receiving module is used for receiving an assignment instruction, and the assignment instruction carries module information of the assigned functional module and assignment parameters;

the first assignment module is used for determining a corresponding functional module based on the module information and assigning the assignment parameters to the functional module;

the association module determining module is used for acquiring an association module which has a corresponding association relation with the function module according to the pre-established association relation;

and the second assignment module is used for assigning the assignment parameters of the functional modules to the association module based on the association relationship.

A computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.

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 of the above.

According to the module association assignment method, the module association assignment device, the computer equipment and the readable storage medium, by receiving an assignment instruction, the assignment instruction carries module information and assignment parameters of an assigned functional module, the corresponding functional module is determined based on the module information, the assignment parameters are assigned to the functional module, then the association module corresponding to the functional module is obtained based on a pre-established association relationship, and the assignment parameters of the functional module are assigned to the association module further based on the association relationship. Therefore, when an assignment instruction is received, assignment can be directly carried out on the corresponding functional modules, association relations among the modules are assigned to the association models with the association relations, the problem that assignment of the modules can only be carried out manually one by one in the traditional mode is solved, and the efficiency of assigning different modules in software control logic design is improved.

Drawings

FIG. 1 is a diagram illustrating an exemplary implementation of a module association assignment method;

FIG. 2 is a flow diagram illustrating a module association assignment method according to one embodiment;

FIG. 3 is a diagram of attribute data for modules in one embodiment;

FIG. 4 is a diagram illustrating the correspondence between modules in one embodiment;

FIG. 5 is a diagram illustrating the correspondence between modules in another embodiment;

FIG. 6 is a diagram illustrating the correspondence between modules in yet another embodiment;

FIG. 7 is a flowchart illustrating a module association assignment method according to another embodiment;

FIG. 8 is a block diagram of an exemplary module-associated assigning means;

FIG. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

The module association assignment method provided by the application 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 may generate an assignment instruction based on the user trigger, and send the assignment instruction to the server 104, where the assignment instruction carries module information of the assigned functional module and the assignment parameter. After receiving the assignment instruction, the server 104 may determine a corresponding functional module based on the module information, and assign the assignment parameter to the functional module. Further, the server 104 may obtain an association module having a corresponding association with the function module according to a pre-established association, and assign the assignment parameter of the function module to the association module based on the association. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable 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 module association assignment method is provided, which is described by taking the application of the method to the server in fig. 1 as an example, and includes the following steps:

step S202, receiving an assignment instruction, wherein the assignment instruction carries module information of the assigned functional module and an assignment parameter.

The assignment instruction refers to an instruction for requesting assignment of each module drawn in the logic control diagram, and the assignment instruction may include assignment information and module information of the corresponding assigned functional module.

In this embodiment, the assignment parameter may include attribute data corresponding to the parameter attribute, for example, as shown in fig. 3, the drawing system "EVR", the drawing page number "1101", the function classification "FC 3/NC", the REPL "last value", and the like. Those skilled in the art will appreciate that the assignment parameters may also include more information in practical applications, which are only exemplified herein, and the present application is not limited thereto.

In this embodiment, the module information may indicate the uniqueness of the module, and may be a module code or a module ID.

In this embodiment, a user may generate an assignment instruction through a terminal and send the assignment instruction to a server, so that the server performs subsequent processing.

And step S204, determining a corresponding functional module based on the module information, and assigning the assignment parameters to the functional module.

Specifically, the server may determine a corresponding functional module based on the module information, and then assign the assignment parameter carried in the assignment instruction to the parameter attribute corresponding to the functional module, for example, with reference to fig. 3, assign the assignment parameter "EVR" to the parameter attribute "drawing system", and assign the assignment parameter "1101" to the parameter attribute "drawing page".

Step S206, acquiring the association module with the corresponding association relation with the function module according to the pre-established association relation.

Wherein, the incidence relation refers to the relation established between the modules drawn in the drawn logic control diagram.

In this embodiment, the server may establish an association relationship between modules while drawing each module in the logic control diagram, so as to perform assignment of the association attribute subsequently.

In this embodiment, after determining the function module, the server may correspondingly check whether the function module is associated with other modules, and acquire the corresponding association module based on the association relationship.

In this embodiment, for each functional module, the corresponding associated module may be one or more, that is, one functional module may be associated with one or more associated modules, and each associated module is associated with the functional module through an association relationship.

And step S208, assigning the assignment parameters of the functional modules to the association modules based on the association relationship.

In this embodiment, after determining the association module having an association relationship with the function module, the server may assign the corresponding assignment parameter in the function module to the association module based on the association relationship between the function module and the association module.

In this embodiment, when the function module corresponds to a plurality of association modules, the association modules may be assigned based on the corresponding association relationships.

In the module association assignment method, an assignment instruction is received, the assignment instruction carries module information and assignment parameters of an assigned functional module, a corresponding functional module is determined based on the module information, the assignment parameters are assigned to the functional module, then an association module corresponding to the functional module is obtained based on a pre-established association relationship, and the assignment parameters of the functional module are assigned to the association module based on the association relationship. Therefore, when an assignment instruction is received, assignment can be directly carried out on the corresponding functional modules, association relations among the modules are assigned to the association models with the association relations, the problem that assignment of the modules can only be carried out manually one by one in the traditional mode is solved, and the efficiency of assigning different modules in software control logic design is improved.

In one embodiment, assigning the assignment parameter of the functional module to the association module based on the association relationship may include: judging whether the module types of the functional module and the associated module with the associated relationship are consistent or not; when the module types are consistent, determining that a front-back logic relationship exists between the functional module and the associated module, and assigning the assignment parameters of the functional module to the associated module through a module connecting line between the functional module and the associated module; and when the module types are not consistent, determining that an inclusion relationship exists between the functional module and the associated module, and assigning the assignment parameters of the functional module to the associated module through the inclusion relationship between the functional module and the associated module.

In this embodiment, the modules drawn in the logic control diagram may include a logic algorithm class module and a comment class module.

The algorithm module is a functional module for expressing logical relations and processing signals in the control logic diagram, such as a threshold comparison module and a switching value acquisition module; the relationship between the modules is a logical relationship, for example, module 1 can be executed before module 2 is executed.

The comment class module is used for defining some comment class information of the logic algorithm class module and assisting in explaining the meaning of the control logic expression of the comment class module, such as safety rating and listing information for identifying the logic algorithm class module. The same type of modules of the comment type module are in a layered overlapping coverage relation (front end/back end image layers). The comment class module and the logic algorithm class module are in an inclusion relationship (the logic algorithm class module is included in the comment class module).

In this embodiment, the server may determine whether the module types of the function module and the association module having the association relationship with the function module are consistent, that is, whether the function module and the association module are both logic algorithm modules, or whether the function module is a comment module and the association module is a logic algorithm module.

In this embodiment, when the server determines that the module types of the function module and the association module having the association relationship with the function module are the same, that is, whether the function module and the association module are both logic algorithm modules, the server may determine that a front-back logic relationship exists between the function module and the association module, and at this time, the server may assign the assignment parameter of the function module to the association module through a module connection line between the function module and the association module. For example, referring to fig. 4, both the module 1 and the module 2 are logic algorithm modules, the module 1 and the module 2 are connected by a module connection line, and the server may copy the assignment parameter (i.e., attribute data) "information 1" in the module 1 to the corresponding attribute data "information 1" in the module 2.

In this embodiment, when the server determines that the module types of the functional module and the associated module having the association relationship with the functional module are not consistent, the server may determine that an inclusion relationship exists between the functional module and the associated module, and the server assigns the assignment parameter of the functional module to the associated module through the inclusion relationship between the functional module and the associated module. For example, with continued reference to fig. 4, module 3 is an annotation class module, modules 1 and 2 are logical algorithm class modules, module 3 has an inclusion relationship with modules 1 and 2, and the server may copy the assignment parameter (i.e., attribute data) "information 2" in module 3 to the corresponding attribute data "information 2" in modules 1 and 2.

In this embodiment, when there are containment relationships and front-back logical relationships between modules at the same time, parameter assignment based on each different corresponding relationship may be performed at the same time, that is, module 1 may assign module 2 based on module connection lines, module 3 may assign modules 1 and 2 according to the containment relationships, and assignment is performed in parallel and at the same time.

In this embodiment, when an inclusion relationship and a context logic relationship exist between modules at the same time, the server may determine to assign a value based on the context logic relationship or assign a value based on the inclusion relationship according to the parameter type of parameter assignment. For example, with reference to fig. 4, the module 1 and the module 2 are connected by a module connection line, a front-back logical relationship exists, the module 3 and the module 1 and the module 2 have an inclusion relationship, and for the attribute data "information 2" of the module 2, when the attribute data is an annotation-type parameter, the attribute data may be assigned by the inclusion relationship of the module 3, and when the attribute data is a logic-algorithm-type parameter, the attribute data may be assigned according to the module connection line between the module 1 and the module 2.

In one embodiment, the module connection line is established by: acquiring a module creating instruction, wherein the module creating instruction is a text sentence instruction or a module selecting instruction; and determining a corresponding functional module and an associated module based on the module creating instruction, and establishing a module connecting line between the functional module and the associated module.

Wherein the module creation instruction refers to an instruction of the module drawn in the logic control diagram. The instruction may carry module information of the module to be drawn. The module creation instruction may be a text sentence instruction or a module selection instruction.

In this embodiment, the server may determine the corresponding function module and the associated module based on the module creating instruction, and establish a module connection line between the function module and the associated module. For example, a user inputs a text sentence instruction "a flow meter is required to add 2 seconds of filtering after an MD signal is Input, and displays the filtering after opening", and the server may automatically identify the meter (circular meter module), the analog Input module (a _ Input), the filtering module FI (filtering time 2s), the opening module, and the display module ANA _ INF based on the text sentence instruction, and then establish automatic connection, which may be specifically shown in fig. 5.

Similarly, the server may also automatically establish a module connection line between the modules when the server sends a module selection instruction for selecting the function module and selecting the associated module from the terminal. For example, with continued reference to fig. 5, when an MD module is present and the corresponding analog Input module (a _ Input), filter module FI (filter time 2s), square-root module, and display module ANA _ INF are selected, module connection lines between the modules may be automatically established. The technical personnel in the field can understand that the module connecting line established by the method is the module connecting line established based on the template sample, namely, the server presets the relation between the modules, and after the corresponding modules are selected in the drawing process, the modules can be automatically connected without manual connection, so that the connection processing process can be reduced, and the processing efficiency is improved.

In one embodiment, the method may further include: and when the number of the functional modules having the inclusion relationship with the association module is at least two, determining the functional module corresponding to the inclusion relationship with the latest establishment time as the target functional module of the corresponding association module based on the establishment time of each inclusion relationship between each functional module and the association module.

In this embodiment, assigning the assignment parameter of the functional module to the association module through the inclusion relationship between the functional module and the association module may include: and assigning the assignment parameters of the functional modules to the associated modules through the inclusion relationship between the target functional modules and the associated modules.

Specifically, referring to fig. 6, for module 2, there is an inclusive relationship with module 3, and also with module 4. When the server determines to assign the assignment parameter "information 2" in the module 2, it may determine to assign the assignment parameter "information 2" in the module 2 based on the order of establishment of the inclusion relationship between the modules 3 and 2 and the inclusion relationship between the modules 4 and 2, that is, the establishment time, or based on the inclusion relationship between the modules 3 and 2 or the inclusion relationship between the modules 4 and 2.

In this embodiment, the server may assign a module having an inclusion relationship according to the newly added inclusion relationship, that is, in fig. 6, the establishment time of the inclusion relationship between the module 3 and the module 2 is earlier than the establishment time of the inclusion relationship between the module 4 and the module 2, so that it is determined that the assignment parameter "information 2" in the module 2 is assigned by the assignment parameter "information 2" in the module 4 based on the inclusion relationship between the module 4 and the module 2.

In one embodiment, before assigning the assignment parameter of the functional module to the association module based on the association relationship, the method may further include: acquiring attribute data of the associated module; judging whether the attribute data contains the parameter attribute of the assignment parameter; when the attribute data contains the parameter attribute of the assignment parameter, the assignment parameter of the functional module is assigned to the association module on the basis of the association relation; and when the attribute data does not contain the parameter attribute of the assignment parameter, the assignment processing is not carried out on the association module.

Specifically, the server may determine whether the attribute data of the association module includes the parameter attribute of the assignment parameter based on the parameter attribute of the assignment parameter in the assignment instruction and the attribute data of the association module.

In this embodiment, when the attribute data of the association module includes the parameter attribute of the assignment parameter, the assignment parameter of the function module is assigned to the association module based on the association relationship, and when the attribute data of the association module does not include the parameter attribute of the assignment parameter, the assignment processing is not performed on the association module.

With continued reference to fig. 4, if the attribute data "information 1" of the corresponding functional module (module 1) exists in the attribute data of the associated module (module 2), the server may assign the attribute data "information 1" of the module 2 based on the attribute data "information 1" of the module 1, and for the attribute data "information 3" of the module 1, no corresponding attribute data exists in the module 2, no assignment is performed.

In one embodiment, the method may further include: acquiring a first assignment parameter of the association module; acquiring a second assignment parameter of the functional module corresponding to the association module; judging whether the first assignment parameter is consistent with the second assignment parameter; and when the first assignment parameter is inconsistent with the second assignment parameter, assigning the second assignment parameter of the functional module to the associated module.

In this embodiment, the server may modify the assignment parameter of the associated module corresponding to the functional module based on the modification instruction sent by the terminal, for example, with reference to fig. 4, the server may modify the attribute data "information 1" of the module 2.

Further, the server may periodically obtain the first assignment parameter of the association module and obtain the second assignment parameter of the functional module having a correspondence with the association module, and determine whether the first assignment parameter is consistent with the second assignment parameter.

In this embodiment, when the first assignment parameter and the second assignment parameter are the same, the server may determine not to perform assignment processing, and retain the first assignment parameter in the association module.

In this embodiment, when the first assignment parameter is inconsistent with the second assignment parameter, the server may assign the second assignment parameter of the functional module to the association module, and adjust the assignment parameter modified by the association module to the assignment parameter of the corresponding functional module, so as to avoid inconsistency of the assignment parameters due to misoperation and the like, and maintain data consistency.

In one embodiment, before determining whether the first assignment parameter and the second assignment parameter are consistent, the method may further include: judging whether the second assignment parameter is empty; when the second assignment parameter is empty, the first assignment parameter of the associated module is reserved; and when the second assignment parameter is non-empty, continuously judging whether the first assignment parameter is consistent with the second assignment parameter, and when the first assignment parameter is inconsistent with the second assignment parameter, assigning the second assignment parameter of the functional module to the associated module.

In this embodiment, before the server performs consistency determination on the first assignment parameter of the association module and the second assignment parameter of the corresponding functional module, it may also determine whether the second assignment parameter is null.

In this embodiment, when the server determines that the second assignment parameter of the functional module is null, it determines that the functional module has not been assigned, and here, the server may retain the first assignment parameter of the associated module.

In this embodiment, when the server determines that the second assignment parameter of the functional module is non-empty, at this time, the server may continue to determine whether the first assignment parameter of the associated module is consistent with the second assignment parameter of the corresponding functional module, and when the first assignment parameter is inconsistent with the second assignment parameter, assign the second assignment parameter of the functional module to the associated module.

FIG. 7 is a flow chart illustrating another module association assignment in the present application, which is described in detail below in conjunction with FIG. 7.

Referring to fig. 7, after the server determines to "start" the design work of the control logic diagram, step 2 and step 3 may be performed, i.e., drag and drop the logical algorithm class "module" in the control logic diagram. Specifically, the drag-and-drop logic algorithm classes "module 1" and "module 2", respectively, may be included.

Further, the server may execute step 4, and connect corresponding inputs and outputs of the module 1 and the module 2 by using a module connection line, and combine the inputs and outputs into a fixed logical relationship, for example, the logical relationship may be a logical relationship shown in fig. 5, such as filtering after accessing the signal.

Further, the server may perform step 5, automatically assigning the associated attribute data 1 of module 1 to the attribute data 1 of module 2.

In this embodiment, the server may perform step 6, automatically periodically checking/manually triggering to check whether the associated attribute 1 data in the logical algorithm class modules (e.g., "module 1" and "module 2") are consistent.

In this embodiment, if the determination in step 6 is yes, the server may execute step 12 and end. If the judgment in the step 6 is 'no', returning to the step 5, and continuing to execute the step 5, namely, continuing to automatically assign the attribute data 1 of the module 1 to the attribute data 1 of the module 2.

In this embodiment, the server may also perform step 7, i.e. drag and drop the annotation class "module 3" in the control logic diagram, and box to include other logical control class modules.

In this embodiment, step 7 may be performed earlier than step 2 or later than step 2, which is not limited in this application.

In this embodiment, the associated annotation parameter created based on step 7 may be assigned to X1.

In this embodiment, the server may further execute step 71, drag and drop another annotation class "module 4" in the control logic diagram, and box-select a module including a logical computation class, and drag and drop a layer of "module 4" one layer higher or later than a layer of "module 3".

Further, the server may assign a value to X2 based on the associated annotation parameter created in step 71.

Further, the server may perform step 8 to determine which associated annotation parameter (X1 or X2) is assigned as output Y and assigned to module 1 and/or module 2 according to prescribed rules. Specifically, the corresponding output Y may be determined according to the sequence created by the modules 3 and 4, or the time sequence of the frame selection.

Further, the server may execute step 9 to automatically assign the associated attribute data 2 (i.e., "Y") of the comment class function module to the attribute data 2 of "module 1" or "module 2".

In this embodiment, the server may further execute step 10, to automatically and periodically check/manually trigger to check whether the comment class module is consistent with the associated attribute data 2 of each associated logical algorithm class module.

In this embodiment, if the determination result in step 10 is yes, the server may execute step 12 and end. If the determination result in the step 10 is "no", the server may return to perform the step 9, and automatically assign the associated attribute data 2 (i.e., "Y") of the comment-type function module to the attribute data 2 of the "module 1" or the "module 2".

In this embodiment, the server may further execute step 11, and in the whole processing process, when filling in/generating/modifying certain attribute data for the module, the corresponding process may be executed, and consistency determination is performed, so as to finally keep information consistent.

It should be understood that although the steps in the flowcharts of fig. 2 and 7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 7 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

In one embodiment, as shown in fig. 8, there is provided a module association assigning apparatus, including: an assignment instruction receiving module 100, a first assignment module 200, an association module determining module 300, and a second assignment module 400, wherein:

and the assignment instruction receiving module 100 is configured to receive an assignment instruction, where the assignment instruction carries module information of the assigned functional module and an assignment parameter.

And the first assignment module 200 is configured to determine a corresponding functional module based on the module information, and assign an assignment parameter to the functional module.

The association module determining module 300 is configured to obtain an association module having a corresponding association relationship with the function module according to a pre-established association relationship.

And a second assignment module 400, configured to assign the assignment parameters of the functional modules to the association modules based on the association relationship.

In one embodiment, the second assignment module 400 may include:

and the judging submodule is used for judging whether the module types of the functional module and the associated module which has the association relation with the functional module are consistent or not.

And the first assignment sub-module is used for determining that a front-back logic relationship exists between the functional module and the associated module when the module types are consistent, and assigning the assignment parameters of the functional module to the associated module through a module connecting line between the functional module and the associated module.

And the second assignment sub-module is used for determining that an inclusion relationship exists between the functional module and the association module when the module types are inconsistent, and assigning the assignment parameters of the functional module to the association module through the inclusion relationship between the functional module and the association module.

In one embodiment, the apparatus may further include:

and the module creation instruction acquisition module is used for acquiring a module creation instruction, and the module creation instruction is a text sentence instruction or a module selection instruction.

And the establishing module is used for determining the corresponding functional module and the associated module based on the module establishing instruction and establishing a module connecting line between the functional module and the associated module.

In one embodiment, the apparatus may further include:

and the target function module determining module is used for determining the function module corresponding to the inclusion relation with the latest establishment time as the target function module corresponding to the association module based on the establishment time of each inclusion relation between each function module and the association module when at least two function modules with the inclusion relation between the function modules and the association module exist.

In this embodiment, the second assigning module 400 is configured to assign the assignment parameter of the function module to the association module according to the inclusion relationship between the target function module and the association module.

In one embodiment, the apparatus may further include:

and the attribute data acquisition module is used for acquiring the attribute data of the association module before assigning the assignment parameters of the functional module to the association module based on the association relationship.

The first judgment module is used for judging whether the attribute data contains the parameter attribute of the assignment parameter; when the attribute data contains the parameter attribute of the assignment parameter, the assignment parameter of the functional module is assigned to the association module on the basis of the association relation; and when the attribute data does not contain the parameter attribute of the assignment parameter, the assignment processing is not carried out on the association module.

In one embodiment, the apparatus may further include:

and the first assignment parameter acquisition module is used for acquiring the first assignment parameters of the association module.

And the second assignment parameter acquisition module is used for acquiring the second assignment parameters of the functional modules which have corresponding relations with the association module.

The second judgment module is used for judging whether the first assignment parameters are consistent with the second assignment parameters; and when the first assignment parameter is inconsistent with the second assignment parameter, assigning the second assignment parameter of the functional module to the associated module.

In one embodiment, the apparatus may further include:

the third judging module is used for judging whether the second assignment parameter is null or not before judging whether the first assignment parameter is consistent with the second assignment parameter or not; when the second assignment parameter is empty, the first assignment parameter of the associated module is reserved; and when the second assignment parameter is non-empty, continuously judging whether the first assignment parameter is consistent with the second assignment parameter, and when the first assignment parameter is inconsistent with the second assignment parameter, assigning the second assignment parameter of the functional module to the associated module.

For the specific definition of the module association assignment device, reference may be made to the above definition of the module association assignment method, which is not described herein again. Each module in the module association assignment device can be wholly or partially implemented by software, hardware and a combination 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. 9. 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 data such as assignment instructions and assignment information. 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 module association assignment method.

Those skilled in the art will appreciate that the architecture shown in fig. 9 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.

In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: receiving an assignment instruction, wherein the assignment instruction carries module information and assignment parameters of an assigned functional module; determining a corresponding functional module based on the module information, and assigning the assignment parameters to the functional module; acquiring an association module corresponding to the functional module according to a pre-established association relationship; and assigning the assignment parameters of the functional modules to the association modules based on the association relationship.

In one embodiment, the assignment of the assignment parameter of the functional module to the association module based on the association relationship is implemented when the processor executes the computer program, and may include: judging whether the module types of the functional module and the associated module with the associated relationship are consistent or not; when the module types are consistent, determining that a front-back logic relationship exists between the functional module and the associated module, and assigning the assignment parameters of the functional module to the associated module through a module connecting line between the functional module and the associated module; and when the module types are not consistent, determining that an inclusion relationship exists between the functional module and the associated module, and assigning the assignment parameters of the functional module to the associated module through the inclusion relationship between the functional module and the associated module.

In one embodiment, the processor, when executing the computer program, realizes that the module connection line is established by the following way: acquiring a module creating instruction, wherein the module creating instruction is a text sentence instruction or a module selecting instruction; and determining a corresponding functional module and an associated module based on the module creating instruction, and establishing a module connecting line between the functional module and the associated module.

In one embodiment, the processor, when executing the computer program, may further implement the following steps: and when at least two functional modules with the hierarchical overlapping covering inclusion relation exist between the functional modules and the association module, determining the functional module corresponding to the inclusion relation with the latest establishment time as the target functional module of the corresponding association module based on the establishment time of each inclusion relation between each functional module and the association module.

In this embodiment, when executing the computer program, the processor assigns the assignment parameter of the functional module to the associated module through the inclusion relationship between the functional module and the associated module, and may include: and assigning the assignment parameters of the functional modules to the associated modules through the inclusion relationship between the target functional modules and the associated modules.

In one embodiment, when the processor executes the computer program, before assigning the assignment parameter of the functional module to the association module based on the association relationship, the following steps may be further implemented: acquiring attribute data of the associated module; judging whether the attribute data contains the parameter attribute of the assignment parameter; when the attribute data contains the parameter attribute of the assignment parameter, the assignment parameter of the functional module is assigned to the association module on the basis of the association relation; and when the attribute data does not contain the parameter attribute of the assignment parameter, the assignment processing is not carried out on the association module.

In one embodiment, the processor, when executing the computer program, may further implement the following steps: acquiring a first assignment parameter of the association module; acquiring a second assignment parameter of the functional module corresponding to the association module; judging whether the first assignment parameter is consistent with the second assignment parameter; and when the first assignment parameter is inconsistent with the second assignment parameter, assigning the second assignment parameter of the functional module to the associated module.

In one embodiment, before the processor executes the computer program to determine whether the first assignment parameter and the second assignment parameter are consistent, the following steps may be further implemented: judging whether the second assignment parameter is empty; when the second assignment parameter is empty, the first assignment parameter of the associated module is reserved; and when the second assignment parameter is non-empty, continuously judging whether the first assignment parameter is consistent with the second assignment parameter, and when the first assignment parameter is inconsistent with the second assignment parameter, assigning the second assignment parameter of the functional module to the associated module.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving an assignment instruction, wherein the assignment instruction carries module information and assignment parameters of an assigned functional module; determining a corresponding functional module based on the module information, and assigning the assignment parameters to the functional module; acquiring an association module corresponding to the functional module according to a pre-established association relationship; and assigning the assignment parameters of the functional modules to the association modules based on the association relationship.

In one embodiment, the computer program when executed by the processor for implementing assignment of assignment parameters of the functional modules to the association modules based on the association relationship may include: judging whether the module types of the functional module and the associated module with the associated relationship are consistent or not; when the module types are consistent, determining that a front-back logic relationship exists between the functional module and the associated module, and assigning the assignment parameters of the functional module to the associated module through a module connecting line between the functional module and the associated module; and when the module types are not consistent, determining that an inclusion relationship exists between the functional module and the associated module, and assigning the assignment parameters of the functional module to the associated module through the inclusion relationship between the functional module and the associated module.

In one embodiment, the computer program when executed by the processor implements the module connection established by: acquiring a module creating instruction, wherein the module creating instruction is a text sentence instruction or a module selecting instruction; and determining a corresponding functional module and an associated module based on the module creating instruction, and establishing a module connecting line between the functional module and the associated module.

In one embodiment, the computer program when executed by the processor may further implement the steps of: and when the number of the functional modules having the inclusion relationship with the association module is at least two, determining the functional module corresponding to the inclusion relationship with the latest establishment time as the target functional module of the corresponding association module based on the establishment time of each inclusion relationship between each functional module and the association module.

In this embodiment, when executed by the processor, the implementing of assigning the assignment parameter of the functional module to the associated module through the inclusion relationship between the functional module and the associated module may include: and assigning the assignment parameters of the functional modules to the associated modules through the inclusion relationship between the target functional modules and the associated modules.

In one embodiment, when executed by the processor, the computer program may further implement the following steps before assigning the assignment parameter of the functional module to the association module based on the association relationship: acquiring attribute data of the associated module; judging whether the attribute data contains the parameter attribute of the assignment parameter; when the attribute data contains the parameter attribute of the assignment parameter, the assignment parameter of the functional module is assigned to the association module on the basis of the association relation; and when the attribute data does not contain the parameter attribute of the assignment parameter, the assignment processing is not carried out on the association module.

In one embodiment, the computer program when executed by the processor may further implement the steps of: acquiring a first assignment parameter of the association module; acquiring a second assignment parameter of the functional module corresponding to the association module; judging whether the first assignment parameter is consistent with the second assignment parameter; and when the first assignment parameter is inconsistent with the second assignment parameter, assigning the second assignment parameter of the functional module to the associated module.

In one embodiment, the computer program when executed by the processor performs the following steps before determining whether the first assignment parameter and the second assignment parameter are consistent: judging whether the second assignment parameter is empty; when the second assignment parameter is empty, the first assignment parameter of the associated module is reserved; and when the second assignment parameter is non-empty, continuously judging whether the first assignment parameter is consistent with the second assignment parameter, and when the first assignment parameter is inconsistent with the second assignment parameter, assigning the second assignment parameter of the functional module to the associated module.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种基于思维导图和树状结构技术软件代码生成方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!