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

Intermodule notification callback method and module interaction structure

An inter-module and notification technology, applied in the field of information interaction, can solve problems such as affecting system stability, increasing coupling, and running errors, avoiding inconsistent definitions, reducing coupling, and being easy to maintain.

Inactive Publication Date: 2014-08-20
PHICOMM (SHANGHAI) CO LTD
View PDF5 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] 1) Every two interactive modules need to create a message queue or register a callback function, which is more complicated to implement
[0009] 2) The coupling between modules is increased. The modification of one module will lead to the modification of multiple related modules, which is difficult to maintain
[0010] 3) Between two interactive modules, if the interface definitions on both sides are inconsistent, it may cause runtime errors and affect the stability of the system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Intermodule notification callback method and module interaction structure
  • Intermodule notification callback method and module interaction structure
  • Intermodule notification callback method and module interaction structure

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] Specific embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

[0040] like image 3 As shown, the present invention discloses a module interaction structure, which includes several functional modules, namely: module A, module B, module C, module D, and module E, and the five functional modules are not connected to each other. The module interaction structure also includes a public message module F, which is respectively connected to the above five functional modules, and the five functional modules complete the interaction between the functional modules through the public message module F.

[0041] like Figure 4 As shown, the present invention discloses an inter-module notification callback method, which includes the following steps:

[0042] Step 1. Establish a public message module, and the public message module is respectively connected with each functional module. The common message module includes ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an intermodule notification callback method. The method includes the steps that a common information module is established, and the common information module is connected with all function modules respectively; callback functions of events or response events of all the function modules are registered in the common information module; after the common information module receives the information sent from other function modules, all the callback functions of the events which are registered in advance are called, and accordingly interaction amoung the function modules can be achieved. According to the intermodule notification callback method, module interaction work is completed by one independent common information module in a unified mode, coupling of a plurality of modules is lowered, and a software system can be maintained easily; interaction among the modules can be achieved more simply only through simple registration in the common information module; a header file of the common information module is directly cited in all the modules in which interaction is needed, the inconsistent definition condition among the modules is avoided, and the stability of the system is improved.

Description

technical field [0001] The invention relates to an information interaction technology, in particular to an inter-module notification callback method and a module interaction structure. Background technique [0002] In the software design of complex systems, multiple modules often need to cooperate and interact. The traditional method is to "create a message queue" or "register a callback function" between two modules that need to interact. [0003] like figure 1 As shown, for example, to call function Y of module B when event X occurs in module A. [0004] The method of "establishing a message queue" is: establish a message queue between module A and module B, and send a message to module B when an event X occurs in module A, and module B parses the message and calls the corresponding function. [0005] The method of "registering a callback function" is: module B first calls the registration function provided by module A to register function Y as a callback function, and t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/54
Inventor 付庆
Owner PHICOMM (SHANGHAI) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products