Method, device, equipment and readable storage medium for information synchronization between modules

By generating derivative modules in architectural design software and establishing correspondence relationships, and adopting two-way and one-way synchronization modes to realize information synchronization between homologous modules, solving the problem of module synchronization in design software, improving module reuse rate and reducing Management costs.

CN113377790BActive Publication Date: 2024-12-24GLODON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110637783.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-08
Publication Date
2024-12-24
Estimated Expiration
2041-06-08

AI Technical Summary

Technical Problem

During the design process of existing architectural design software, information synchronization cannot be achieved between homologous modules, resulting in high design repetition and management costs.

Method used

By generating derivative modules and establishing correspondence between meta-modules and derivative modules, two-way and one-way synchronization modes are adopted to realize information synchronization between modules, satisfying the information synchronization process in different scenarios.

Benefits of technology

Maximize the reuse rate of modules, reduce the repetition of design workload, and reduce the management cost of multiple modules in building models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113377790B_ABST
    Figure CN113377790B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and readable storage medium for synchronizing information between modules. The method comprises: generating a derived module according to a meta-module; wherein each component in the meta-module has a corresponding relationship with each component in the derived module; when the derived module is in a two-way synchronization mode and an editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes, the information of the target component in the derived module is synchronized to the meta-module; when the derived module is in a two-way synchronization mode, when the derived module exits the editing mode, the components whose synchronization attributes in the derived module are synchronized are determined, and the information of the determined components is synchronized to the meta-module; the present invention can realize information synchronization between homologous modules, maximize the reuse rate of modules, and reduce the repeated design workload.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment and readable storage medium for synchronizing information between modules. Background Art

[0002] In architectural design work, taking a house as an example, a house can be divided into several basic units according to the house type and the core tube. By grouping the basic units, the house type and the core tube become a whole, and by overall reuse, the assembly of the whole house can be realized. In the existing architectural design software, for example, the block in CAD (Computer Aided Design) software or the group in REVIT (software for building building information model BIM) has the ability to package multiple components into a whole. Although the whole reuse and synchronization can be achieved through blocks or groups, there are still the following disadvantages: during the design process, the same house type may undergo slight changes on different floors or different buildings. For such slight changes, the existing architectural design software can only save the block or group as a new block or group, and the original block or group does not have a synchronization relationship with the newly created block or group, which leads to the need to perform repetitive modification operations on each block or group of the same source in the design work; therefore, how to achieve the synchronization of information between blocks or groups of the same source to more effectively manage blocks or groups has become a technical problem that those skilled in the art need to solve urgently. Summary of the invention

[0003] The object of the present invention is to provide a method, device, equipment and readable storage medium for information synchronization between modules, which can realize information synchronization between homologous modules, maximize the reuse rate of modules, and reduce the workload of repeated design.

[0004] According to one aspect of the present invention, a method for synchronizing information between modules is provided, the method comprising:

[0005] Generate a derived module according to the meta-module; wherein each component in the meta-module has a corresponding relationship with each component in the derived module;

[0006] When the derived module is in a bidirectional synchronization mode and an editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes, the information of the target component in the derived module is synchronized to the meta-module;

[0007] When the derived module is in a bidirectional synchronization mode, when the derived module exits the edit mode, components with synchronization attributes in the derived module are determined, and information of the determined components is synchronized to the meta-module.

[0008] Optionally, when the derived module is in a bidirectional synchronization mode and an editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes, synchronizing the information of the target component in the derived module to the meta-module includes:

[0009] When it is detected that the synchronization attribute of the target component in the derived module changes from synchronization to non-synchronization, an associated module in the meta-module having a corresponding relationship with the target component in the derived module is determined, and information of the associated module in the meta-module is modified to information of the target component in the derived module.

[0010] Optionally, when the derived module is in a bidirectional synchronization mode and an editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes, synchronizing the information of the target component in the derived module to the meta-module includes:

[0011] When it is detected that the synchronization attribute of the target component in the derived module changes from asynchronous to synchronous, it is determined whether there is an associated component in the meta-module that has a corresponding relationship with the target component in the derived module;

[0012] If so, the information of the associated module in the meta-module is modified to the information of the target component in the derived module; if not, a new component is created in the meta-module according to the information of the target component in the derived module.

[0013] Optionally, after generating the derived module according to the meta-module, the method further includes:

[0014] When the derived module is in a bidirectional synchronization mode and an editing mode, when it is detected that the information of the target component in the meta-module changes, determining an associated module in the derived module that has a corresponding relationship with the target component in the meta-module;

[0015] If the synchronization attribute of the associated module in the derived module is synchronization, modifying the information of the associated module in the derived module to the information of the target component in the meta-module;

[0016] If the synchronization attribute of the associated module in the derived module is not synchronized, the information of the associated module in the derived module is not modified.

[0017] Optionally, after generating the derived module according to the meta-module, the method further includes:

[0018] When the derived module is in one-way synchronization mode and editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes from synchronization to non-synchronization, the editing attribute of the target component in the derived module is changed from non-editable to editable.

[0019] Optionally, after generating the derived module according to the meta-module, the method further includes:

[0020] When the derived module is in a one-way synchronization mode and an editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes from asynchronous to synchronous, it is determined whether there is an associated component in the meta-module that has a corresponding relationship with the target component in the derived module;

[0021] If so, modifying the information of the target component in the derived module to the information of the associated module in the meta-module, and modifying the editing attribute of the target component in the derived module from editable to non-editable;

[0022] If not, it is not allowed to change the synchronization attribute of the target component in the derived module from asynchronous to synchronous.

[0023] Optionally, after generating the derived module according to the meta-module, the method further includes:

[0024] When the derived module is in a one-way synchronization mode and an editing mode, when it is detected that the information of the target component in the meta-module changes, determining an associated module in the derived module that has a corresponding relationship with the target component in the meta-module;

[0025] If the synchronization attribute of the associated module in the derived module is synchronization, modifying the information of the associated module in the derived module to the information of the target component in the meta-module;

[0026] If the synchronization attribute of the associated module in the derived module is not synchronized, the information of the associated module in the derived module is not modified.

[0027] In order to achieve the above object, the present invention also provides an information synchronization device between modules, and the device specifically includes the following components:

[0028] A generation module, used to generate a derived module according to a meta-module; wherein each component in the meta-module has a corresponding relationship with each component in the derived module;

[0029] A synchronization module, used for synchronizing the information of the target component in the derived module to the meta-module when detecting that the synchronization attribute of the target component in the derived module changes when the derived module is in a bidirectional synchronization mode and an editing mode;

[0030] The exit module is used to determine the components with synchronization attributes in the derived module when the derived module is in a bidirectional synchronization mode and when the derived module exits the editing mode, and synchronize the information of the determined components to the meta-module.

[0031] In order to achieve the above-mentioned purpose, the present invention also provides a computer device, which specifically includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the information synchronization method between modules introduced above when executing the computer program.

[0032] In order to achieve the above object, the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the information synchronization method between modules introduced above are implemented.

[0033] The information synchronization method, device, equipment and readable storage medium between modules provided by the present invention create a derivative module for a meta-module, and establish a corresponding relationship between each component in the meta-module and each module in the derivative module, so as to realize the basis for information synchronization between the meta-module and the derivative module; in addition, a bidirectional synchronization mode and a unidirectional synchronization mode are set for the derivative module, and a synchronization attribute is set for each component in the derivative module, so as to better realize the information synchronization process in different scenarios and meet various business requirements in practical applications. The present invention can realize information synchronization between homologous modules, maximize the reuse rate of modules, reduce the design duplication workload, and reduce the management cost of multiple modules in the building model. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0035] Figure 1 An optional flowchart of the information synchronization method between modules provided in Example 1;

[0036] Figure 2 It is a schematic diagram of the synchronization process of the derivative module in the bidirectional synchronization mode in the first embodiment;

[0037] Figure 3 It is a schematic diagram of the synchronization process of the derivative module in the one-way synchronization mode in the first embodiment;

[0038] Figure 4 This is an example diagram of the first process of information synchronization between the meta-module and the derived module in the first embodiment;

[0039] Figure 5 This is a diagram showing an example of a second process for synchronizing information between a meta-module and a derived module in the first embodiment;

[0040] Figure 6This is a diagram showing a third process example of information synchronization between a meta-module and a derived module in the first embodiment;

[0041] Figure 7 This is a fourth example flow chart of information synchronization between a meta-module and a derived module in the first embodiment;

[0042] Figure 8 This is a fifth example diagram of the information synchronization process between the meta-module and the derived module in the first embodiment;

[0043] Fig. 9 This is a sixth flow chart of information synchronization between a meta-module and a derived module in the first embodiment;

[0044] Fig.10 This is a schematic diagram of the module management directory tree in Example 1;

[0045] Fig.11 A schematic diagram of an optional structure of the information synchronization device between modules provided in the second embodiment;

[0046] Fig.12 A schematic diagram of an optional hardware architecture of a computer device provided in Example 3. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0048] Embodiment 1

[0049] The embodiment of the present invention provides a method for synchronizing information between modules. Figure 1 As shown, the method specifically comprises the following steps:

[0050] Step S101: generating a derived module according to a meta-module; wherein each component in the meta-module corresponds to each component in the derived module.

[0051] In this embodiment, the module is a building model module, for example, a block in CAD software, a group in REVIT software, and the module includes multiple components.

[0052] In addition, the derived module is created through the meta-module, and the meta-module and the derived module are in a master-slave relationship. In the initial state, the components in the derived module have a one-to-one correspondence with the components in the meta-module.

[0053] Step S102: When the derived module is in a bidirectional synchronization mode and an editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes, the information of the target component in the derived module is synchronized to the meta-module.

[0054] In this embodiment, a bidirectional synchronization mode and a unidirectional synchronization mode are set for the derived module, and a synchronization attribute (synchronous, asynchronous) is set for each component in the derived module; it should be noted that the bidirectional synchronization mode and the unidirectional synchronization mode are only for the derived module, and the meta-module does not have the bidirectional synchronization mode and the unidirectional synchronization mode. In addition, only the components in the derived module have the synchronization attribute, while the components in the meta-module do not have the synchronization attribute.

[0055] In the two-way synchronization mode, when the synchronization property of the target component in the derived module is synchronized, the editing operation (addition, modification, deletion) of the target component will be synchronized to the corresponding associated component in the meta-module, and the editing operation of the associated component in the meta-module will also be synchronized to the target component; when the synchronization property of the target component in the derived module is not synchronized, the editing operation of the target component will not be synchronized to the corresponding associated component in the meta-module, and the editing operation of the associated component in the meta-module will not be synchronized to the target component.

[0056] In one-way synchronization mode, when the synchronization property of the target component in the derived module is synchronized, editing operations (addition, modification, deletion) cannot be performed on the target component, but editing operations on the corresponding associated components in the meta-module will be synchronized to the target component; when the synchronization property of the target component in the derived module is not synchronized, editing operations (addition, modification, deletion) can be performed on the target component, and editing operations on the corresponding associated components in the meta-module will not be synchronized to the target component.

[0057] It can be seen that in the two-way synchronization mode, there is a situation where the information of the components in the meta-module is synchronized to the derived module, and there is also a situation where the information of the components in the derived module is synchronized to the meta-module. In the one-way synchronization mode, there is only a situation where the information of the components in the meta-module is synchronized to the derived module, and there is no situation where the information of the components in the derived module is synchronized to the meta-module.

[0058] Specifically, Figure 2 As shown, step S102 includes:

[0059] When it is detected that the synchronization attribute of the target component in the derived module changes from synchronization to non-synchronization, an associated module in the meta-module having a corresponding relationship with the target component in the derived module is determined, and information of the associated module in the meta-module is modified to information of the target component in the derived module.

[0060] When it is detected that the synchronization attribute of the target component in the derived module changes from asynchronous to synchronous, it is determined whether there is an associated component in the meta-module that has a corresponding relationship with the target component in the derived module; if so, the information of the associated module in the meta-module is modified to the information of the target component in the derived module; if not, a new component is created in the meta-module according to the information of the target component in the derived module.

[0061] In this embodiment, the synchronization attribute is both a parameter of the component and a real-time synchronization command; when the synchronization attribute of the target component in the derived module changes, a synchronization operation is immediately performed based on the current information of the target component in the derived module to modify the information of the corresponding associated module in the meta-module to the information of the target component in the derived module.

[0062] Furthermore, the method further comprises:

[0063] The same identity identification information is set for the components in the meta-module and the components in the derived module that have a corresponding relationship.

[0064] Therefore, when executing the step of determining whether there is an associated component in the meta-module that has a corresponding relationship with the target component in the derived module, the identity identification information of the target build in the derived module can be used to determine whether there is an associated component with the identity identification information in the meta-module, thereby avoiding repeated creation of a component in the meta-module that corresponds to the target component in the derived module.

[0065] It should be noted that for new components generated by adding, creating, mirroring, copying, and arraying in the derived module, these new components are created based on the derived module and there is no corresponding component in the meta-module. Therefore, when the derived module is in two-way synchronization mode and editing mode, the default synchronization attribute of the newly created component in the derived module is non-synchronous. If the user needs to modify the synchronization attribute of the newly created component in the derived module to synchronized, it is necessary to create a corresponding new component in the meta-module according to the information of the newly created component in the derived module.

[0066] Step S103: when the derived module is in a bidirectional synchronization mode and the derived module exits the editing mode, components with synchronization attributes in the derived module are determined, and information of the determined components is synchronized to the meta-module.

[0067] In this embodiment, if Figure 2As shown, exiting the edit mode is also a real-time synchronization command. When the derived module exits the edit mode, a synchronization operation is immediately performed according to the current information of the components with synchronization attributes in the derived module, so as to modify the information of the corresponding associated module in the meta-module to the information of the components with synchronization attributes in the derived module. It should also be noted that when the derived module exits the edit mode, if the synchronization attribute of the components in the derived module is not synchronized, the synchronization operation will not be performed on the corresponding modules in the meta-module.

[0068] Furthermore, after step S101, the method further includes:

[0069] When the derived module is in a bidirectional synchronization mode and an editing mode, when it is detected that the information of the target component in the meta-module changes, determining an associated module in the derived module that has a corresponding relationship with the target component in the meta-module;

[0070] If the synchronization attribute of the associated module in the derived module is synchronization, modifying the information of the associated module in the derived module to the information of the target component in the meta-module;

[0071] If the synchronization attribute of the associated module in the derived module is not synchronized, the information of the associated module in the derived module is not modified.

[0072] In this embodiment, one meta-module may correspond to multiple derived modules, but information synchronization operations will not be performed between multiple derived modules belonging to the same meta-module; therefore, when the derived module is in bidirectional synchronization mode and editing mode, there are two situations that may cause the information of the target component in the meta-module to change: 1) the user edits the meta-module; 2) the associated components in other derived modules that have a corresponding relationship with the target component synchronize their information to the target component in the meta-module, thereby causing the information of the target component in the meta-module to change.

[0073] It should be noted that, in actual applications, when the derived module is in bidirectional synchronization mode and editing mode, the synchronization property of the target component in the derived module can be first modified from synchronization to asynchronous, and then modified from asynchronous to synchronization; the synchronization property of the target component in the derived module can also be first modified from asynchronous to synchronization, and then modified from synchronization to asynchronous; no matter how the modification is made, the above method is applicable.

[0074] In addition, after step S101, Figure 3 As shown, the method also includes:

[0075] When the derived module is in one-way synchronization mode and editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes from synchronization to non-synchronization, the editing attribute of the target component in the derived module is changed from non-editable to editable.

[0076] When the derived module is in the one-way synchronization mode and the editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes from asynchronous to synchronous, it is determined whether there is an associated component in the meta-module that has a corresponding relationship with the target component in the derived module; if so, the information of the target component in the derived module is modified to the information of the associated module in the meta-module, and the editing attribute of the target component in the derived module is modified from editable to non-editable; if not, it is not allowed to change the synchronization attribute of the target component in the derived module from asynchronous to synchronous.

[0077] In this embodiment, in a one-way synchronization module, only the information of the components in the meta-module is synchronized to the derived module, and there is no situation where the information of the components in the derived module is synchronized to the meta-module. Therefore, the editing properties of the components with synchronization attributes in the derived module are all uneditable, while the editing properties of the components with non-synchronization attributes in the derived module are all editable. In addition, for the new components created in the derived module, since there is no corresponding associated component in the meta-module, the synchronization attribute of the components that only exist in the derived module can only be non-synchronization and cannot be synchronization.

[0078] Further, after step S101, the method further includes:

[0079] When the derived module is in a one-way synchronization mode and an editing mode, when it is detected that the information of the target component in the meta-module changes, determining an associated module in the derived module that has a corresponding relationship with the target component in the meta-module;

[0080] If the synchronization attribute of the associated module in the derived module is synchronization, modifying the information of the associated module in the derived module to the information of the target component in the meta-module;

[0081] If the synchronization attribute of the associated module in the derived module is not synchronized, the information of the associated module in the derived module is not modified.

[0082] The following, according to Figures 4 to 9 The flowchart shown in the figure exemplifies the information synchronization process between the components in the meta-module and the components in the derived modules in this embodiment:

[0083] Wherein, Y is a metamodule, Y1 and Y2 are derived modules of the metamodule; metamodule Y includes component A, component B and component C; derived module Y1 includes component a1, component b1 and component c1; derived module Y2 includes component a2, component b2 and component c2; wherein component A has a corresponding relationship with component a1 and component a2, component B has a corresponding relationship with component b1 and component b2, and component C has a corresponding relationship with component c1 and component c2. In derived module Y1, the synchronization attribute of component a1 is asynchronous, and the synchronization attribute of component b1 and component c1 is synchronous; in derived module Y2, the synchronization attribute of component b2 is asynchronous, and the synchronization attribute of component a2 and component c2 is synchronous.

[0084] like Figure 4 As shown, when the derived module Y1 and the derived module Y2 are in the unidirectional synchronization mode or the bidirectional synchronization mode, when the information of the component A in the meta-module Y is modified, since the synchronization attribute of the component a1 in the derived module Y1 is not synchronized, the information of the component a1 is not modified; since the synchronization attribute of the component a2 in the derived module Y2 is synchronized, the information of the component a2 needs to be modified.

[0085] like Figure 5 As shown, when the derived module Y1 and the derived module Y2 are in the unidirectional synchronization mode or the bidirectional synchronization mode, when the information of the component B in the meta-module Y is modified, since the synchronization attribute of the component b1 in the derived module Y1 is synchronous, the information of the component b1 needs to be modified; since the synchronization attribute of the component b2 in the derived module Y2 is asynchronous, the information of the component b2 is not modified.

[0086] like Figure 6 As shown, when the derived module Y1 and the derived module Y2 are in the unidirectional synchronization mode or the bidirectional synchronization mode, when the information of the component C in the meta-module Y is modified, since the synchronization attribute of the component c1 in the derived module Y1 is synchronization, the information of the component c1 needs to be modified; since the synchronization attribute of the component c2 in the derived module Y2 is synchronization, the information of the component c2 needs to be modified.

[0087] like Figure 7 As shown, when the derived module Y1 and the derived module Y2 are in the unidirectional synchronization mode or the bidirectional synchronization mode, when the information of the component a1 in the derived module Y1 is modified, since the synchronization attribute of the component a1 is not synchronized, the information of the component A in the meta-module is not modified; when the information of the component b2 in the derived module Y2 is modified, since the synchronization attribute of the component b2 is not synchronized, the information of the component B in the meta-module is not modified.

[0088] like Figure 8As shown, when the derived module Y1 and the derived module Y2 are in bidirectional synchronization mode, when the information of component b1 in the derived module Y1 is modified, since the synchronization attribute of component b1 is synchronization, the information of component B in the meta-module needs to be modified; when the information of component a2 in the derived module Y2 is modified, since the synchronization attribute of component a2 is synchronization, the information of component A in the meta-module needs to be modified.

[0089] like Fig. 9 As shown, when the derived module Y1 and the derived module Y2 are in bidirectional synchronization mode, when the information of component c1 in the derived module Y1 is modified, since the synchronization attribute of component c1 is synchronization, the information of component C in the meta-module needs to be modified; and since the information of component C in the meta-module is modified, the information of component c2 in the derived module Y2 also needs to be modified.

[0090] In addition, in this embodiment, a module management directory is formed according to the association relationship between the meta-module and the derived modules; Fig.10 It is a schematic diagram of the module management directory. In this embodiment, the modules include M-type modules (model modules) and T-type modules (annotation modules). Among them, the model module includes meta-module Y and corresponding derivative modules Y1 and derivative modules Y2. The module management directory tree can intuitively see the hierarchical relationship of the modules, reducing the user's management cost of the modules.

[0091] In this embodiment, a derivative module is created for the meta-module, and a corresponding relationship between each component in the meta-module and each module in the derivative module is established to realize the basis for information synchronization between the meta-module and the derivative module; in addition, a bidirectional synchronization mode and a unidirectional synchronization mode are set for the derivative module, and a synchronization attribute is set for each component in the derivative module to better realize the information synchronization process in different scenarios and meet various business requirements in practical applications. This embodiment can realize information synchronization between homologous modules, maximize the reuse rate of modules, reduce the design duplication workload, and reduce the management cost of multiple modules in the building model.

[0092] Embodiment 2

[0093] The embodiment of the present invention provides an information synchronization device between modules, such as Fig.11 As shown, the device specifically includes the following components:

[0094] A generating module 1101 is used to generate a derived module according to a meta-module; wherein each component in the meta-module has a corresponding relationship with each component in the derived module;

[0095] A synchronization module 1102 is used to synchronize the information of the target component in the derived module to the meta-module when it is detected that the synchronization attribute of the target component in the derived module changes when the derived module is in a bidirectional synchronization mode and an editing mode;

[0096] The exit module 1103 is used to determine the components with synchronization attributes in the derived module when the derived module is in the bidirectional synchronization mode and when the derived module exits the editing mode, and synchronize the information of the determined components to the meta-module.

[0097] Specifically, the synchronization module 1102 is used to:

[0098] When it is detected that the synchronization attribute of the target component in the derived module changes from synchronization to non-synchronization, determining the associated module in the meta-module that has a corresponding relationship with the target component in the derived module, and modifying the information of the associated module in the meta-module to the information of the target component in the derived module;

[0099] When it is detected that the synchronization attribute of the target component in the derived module changes from asynchronous to synchronous, it is determined whether there is an associated component in the meta-module that has a corresponding relationship with the target component in the derived module; if so, the information of the associated module in the meta-module is modified to the information of the target component in the derived module; if not, a new component is created in the meta-module according to the information of the target component in the derived module.

[0100] Furthermore, the device also includes:

[0101] A processing module is used to determine an associated module in the derived module that has a corresponding relationship with the target component in the meta-module when it is detected that the information of the target component in the meta-module changes when the derived module is in a two-way synchronization mode and an editing mode; if the synchronization attribute of the associated module in the derived module is synchronization, the information of the associated module in the derived module is modified to the information of the target component in the meta-module; if the synchronization attribute of the associated module in the derived module is non-synchronization, the information of the associated module in the derived module is not modified.

[0102] Furthermore, the device also includes:

[0103] The one-way module is used to change the editing property of the target component in the derived module from non-editable to editable when it is detected that the synchronization property of the target component in the derived module changes from synchronization to non-synchronization when the derived module is in one-way synchronization mode and editing mode.

[0104] Furthermore, the one-way module is also used for:

[0105] When the derived module is in the one-way synchronization mode and the editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes from asynchronous to synchronous, it is determined whether there is an associated component in the meta-module that has a corresponding relationship with the target component in the derived module; if so, the information of the target component in the derived module is modified to the information of the associated module in the meta-module, and the editing attribute of the target component in the derived module is modified from editable to non-editable; if not, it is not allowed to change the synchronization attribute of the target component in the derived module from asynchronous to synchronous.

[0106] Furthermore, the processing module is also used for:

[0107] When the derived module is in a one-way synchronization mode and an editing mode, when it is detected that the information of the target component in the meta-module has changed, an associated module in the derived module that has a corresponding relationship with the target component in the meta-module is determined; if the synchronization attribute of the associated module in the derived module is synchronization, the information of the associated module in the derived module is modified to the information of the target component in the meta-module; if the synchronization attribute of the associated module in the derived module is non-synchronization, the information of the associated module in the derived module is not modified.

[0108] Embodiment 3

[0109] This embodiment also provides a computer device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server or a server cluster composed of multiple servers) that can execute programs. Fig.12 As shown, the computer device 120 of this embodiment includes at least but not limited to: a memory 1201 and a processor 1202 that can be interconnected through a system bus. It should be noted that Fig.12 Only computer device 120 having components 1201 - 1202 is shown, but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0110] In this embodiment, the memory 1201 (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 1201 can be an internal storage unit of the computer device 120, such as a hard disk or memory of the computer device 120. In other embodiments, the memory 1201 can also be an external storage device of the computer device 120, such as a plug-in hard disk equipped on the computer device 120, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 1201 can also include both the internal storage unit of the computer device 120 and its external storage device. In this embodiment, the memory 1201 is generally used to store the operating system and various application software installed on the computer device 120. In addition, the memory 1201 can also be used to temporarily store various types of data that have been output or are to be output.

[0111] In some embodiments, the processor 1202 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 1202 is generally used to control the overall operation of the computer device 120 .

[0112] Specifically, in this embodiment, the processor 1202 is used to execute the program of the information synchronization method between modules stored in the memory 1201, and the program of the information synchronization method between modules implements the following steps when being executed:

[0113] Generate a derived module according to the meta-module; wherein each component in the meta-module has a corresponding relationship with each component in the derived module;

[0114] When the derived module is in a bidirectional synchronization mode and an editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes, the information of the target component in the derived module is synchronized to the meta-module;

[0115] When the derived module is in a bidirectional synchronization mode, when the derived module exits the edit mode, components with synchronization attributes in the derived module are determined, and information of the determined components is synchronized to the meta-module.

[0116] The specific implementation process of the above method steps can be found in the first embodiment, and this embodiment will not be repeated here.

[0117] Embodiment 4

[0118] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored. When the computer program is executed by a processor, the following method steps are implemented:

[0119] Generate a derived module according to the meta-module; wherein each component in the meta-module has a corresponding relationship with each component in the derived module;

[0120] When the derived module is in a bidirectional synchronization mode and an editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes, the information of the target component in the derived module is synchronized to the meta-module;

[0121] When the derived module is in a bidirectional synchronization mode, when the derived module exits the edit mode, components with synchronization attributes in the derived module are determined, and information of the determined components is synchronized to the meta-module.

[0122] The specific implementation process of the above method steps can be found in the first embodiment, and this embodiment will not be repeated here.

[0123] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0124] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.

[0126] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for synchronizing information between modules, characterized in that: The method comprises: Generate a derived module according to the meta-module; wherein each component in the meta-module has a corresponding relationship with each component in the derived module; When the derived module is in a bidirectional synchronization mode and an editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes, the information of the target component in the derived module is synchronized to the meta-module; When the derived module is in a bidirectional synchronization mode, when the derived module exits the edit mode, determining components in the derived module whose synchronization attributes are synchronization, and synchronizing information of the determined components to the meta-module; Wherein, after generating the derived module according to the meta-module, the method further comprises: When the derived module is in a bidirectional synchronization mode and an editing mode, when it is detected that the information of the target component in the meta-module changes, determining an associated module in the derived module that has a corresponding relationship with the target component in the meta-module; If the synchronization attribute of the associated module in the derived module is synchronization, modifying the information of the associated module in the derived module to the information of the target component in the meta-module; If the synchronization attribute of the associated module in the derived module is not synchronized, the information of the associated module in the derived module is not modified.

2. The information synchronization method between modules according to claim 1, characterized in that: The step of synchronizing the target component in the derived module to the meta-module when detecting that the synchronization attribute of the target component in the derived module changes when the derived module is in the bidirectional synchronization mode and the editing mode comprises: When it is detected that the synchronization attribute of the target component in the derived module changes from synchronization to non-synchronization, an associated module in the meta-module having a corresponding relationship with the target component in the derived module is determined, and information of the associated module in the meta-module is modified to information of the target component in the derived module.

3. The information synchronization method between modules according to claim 1, characterized in that: The step of synchronizing the target component in the derived module to the meta-module when detecting that the synchronization attribute of the target component in the derived module changes when the derived module is in the bidirectional synchronization mode and the editing mode comprises: When it is detected that the synchronization attribute of the target component in the derived module changes from asynchronous to synchronous, it is determined whether there is an associated component in the meta-module that has a corresponding relationship with the target component in the derived module; If so, the information of the associated module in the meta-module is modified to the information of the target component in the derived module; if not, a new component is created in the meta-module according to the information of the target component in the derived module.

4. The information synchronization method between modules according to claim 1, characterized in that: After generating the derived module according to the meta-module, the method further includes: When the derived module is in one-way synchronization mode and editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes from synchronization to non-synchronization, the editing attribute of the target component in the derived module is changed from non-editable to editable.

5. The information synchronization method between modules according to claim 1, characterized in that: After generating the derived module according to the meta-module, the method further includes: When the derived module is in a one-way synchronization mode and an editing mode, when it is detected that the synchronization attribute of the target component in the derived module changes from asynchronous to synchronous, it is determined whether there is an associated component in the meta-module that has a corresponding relationship with the target component in the derived module; If so, modifying the information of the target component in the derived module to the information of the associated module in the meta-module, and modifying the editing attribute of the target component in the derived module from editable to non-editable; If not, changing the synchronization attribute of the target component in the derived module from asynchronous to synchronous is not allowed.

6. The method for synchronizing information between modules according to claim 1, 4 or 5, characterized in that: After generating the derived module according to the meta-module, the method further includes: When the derived module is in a one-way synchronization mode and an editing mode, when it is detected that the information of the target component in the meta-module changes, determining an associated module in the derived module that has a corresponding relationship with the target component in the meta-module; If the synchronization attribute of the associated module in the derived module is synchronization, modifying the information of the associated module in the derived module to the information of the target component in the meta-module; If the synchronization attribute of the associated module in the derived module is not synchronized, the information of the associated module in the derived module is not modified.

7. An information synchronization device between modules, characterized in that: The device comprises: A generation module, used to generate a derived module according to a meta-module; wherein each component in the meta-module has a corresponding relationship with each component in the derived module; A synchronization module, used for synchronizing the information of the target component in the derived module to the meta-module when detecting that the synchronization attribute of the target component in the derived module changes when the derived module is in a bidirectional synchronization mode and an editing mode; An exit module, used for, when the derived module is in a bidirectional synchronization mode and the derived module exits the editing mode, determining components in the derived module whose synchronization attributes are synchronization, and synchronizing information of the determined components to the meta-module; Wherein, the device further comprises: A processing module is used to determine an associated module in the derived module that has a corresponding relationship with the target component in the meta-module when it is detected that the information of the target component in the meta-module changes when the derived module is in a two-way synchronization mode and an editing mode; if the synchronization attribute of the associated module in the derived module is synchronization, the information of the associated module in the derived module is modified to the information of the target component in the meta-module; if the synchronization attribute of the associated module in the derived module is non-synchronization, the information of the associated module in the derived module is not modified.

8. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.