Software module interaction method and device, computer equipment and readable storage medium

A technology of computer equipment and software modules, applied in the direction of program control device, execution paradigm, etc., can solve the problems of input manpower and time, application program can not run, low decoupling, etc.

Pending Publication Date: 2020-06-19
SHENZHEN GONGJIN ELECTRONICS CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These software modules generally use application program interfaces to directly interact with data, but when it is necessary to add, delete or modify software modules, the associated software modules need to re-update the calls between application program interfaces in order to Make the application program work normally. For example, when an application program needs to cut some software modules according to the market demand, if it is cut directly, the application program will not be able to run, and manpower needs to be invested again for the call of the application program interface between the software modules. update with time
That is to say, the cohesion between software modules in existing applications is high and the decoupling is low

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
  • Software module interaction method and device, computer equipment and readable storage medium
  • Software module interaction method and device, computer equipment and readable storage medium
  • Software module interaction method and device, computer equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] figure 1 It is a flow chart of a software module interaction method provided in Embodiment 1 of the present invention, and the method includes the following steps:

[0042] Step S11: In response to the start of the first software module, obtain the preset external interface value item of the first software module in the database, and subscribe the first software module to a change event of the external interface value item.

[0043] In the embodiment of the present invention, the cohesion of the application program can be reduced by establishing the external interface value item of the software module in the database, thereby improving the decoupling. Wherein, the value item of the external interface is established according to the application program interface API of the corresponding software module. Specifically, for example, an external interface A_API can be defined for the software module A, and a form TABLE corresponding to the external interface A_API can be est...

Embodiment 2

[0055] image 3 It is a flowchart of a software module interaction method provided in Embodiment 2 of the present invention, and the method includes the following steps:

[0056] Step S31: In response to the start of the first software module, obtain the preset external interface value item of the first software module in the database, and subscribe the first software module to a change event of the external interface value item.

[0057] This step is consistent with the above step S11, and will not be repeated here.

[0058] Step S32: When the external interface value item triggers a change, send a corresponding subscription change notification to the first software module, so that the first software module calls the corresponding changed external interface value item in the database.

[0059] This step is consistent with the above step S12, and will not be repeated here.

[0060] Step S33: Obtain the return value after the first software module calls the changed external i...

Embodiment 3

[0068] Figure 4 It is a flowchart of a software module interaction method provided in Embodiment 3 of the present invention, and the method includes the following steps:

[0069] Step S41: In response to the start of the first software module, obtain the preset external interface value item of the first software module in the database, and subscribe the first software module to a change event of the external interface value item.

[0070] This step is consistent with the above step S11, and will not be repeated here.

[0071] Step S42: When the preset external interface value item of the first software module in the database is not obtained, create a corresponding external interface value item in the database according to the application program interface of the first software module.

[0072] In the embodiment of the present invention, after the software module is started, when the computer device cannot obtain the external interface value item of the software module in the...

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 provides a software module interaction method and device, computer equipment and a readable storage medium. The software module interaction method comprises the steps that in response tostarting of a first software module, a preset external interface numerical item of the first software module in a database is acquired, and a change event of the external interface numerical item issubscribed for the first software module; and when the external interface numerical item triggers change, sending a corresponding subscription change notification to the first software module, so thatthe first software module calls the corresponding changed external interface numerical item in a database. The invention discloses a software module interaction method. When the software modules arecalled, the software modules can be called only by modifying the corresponding external interface data items in the database without setting application program interfaces of the software modules to perform direct data interaction, so that cohesiveness among the software modules in application programs can be reduced, and decoupling among the software modules is improved.

Description

technical field [0001] The present invention relates to the technical field of software, in particular to a software module interaction method, device, computer equipment and readable storage medium. Background technique [0002] Existing application programs generally have multiple functional modules, that is, multiple software modules. These software modules generally use application program interfaces to directly interact with data, but when it is necessary to add, delete or modify software modules, the associated software modules need to re-update the calls between application program interfaces in order to Make the application program work normally. For example, when an application program needs to cut some software modules according to the market demand, if it is cut directly, the application program will not be able to run, and manpower needs to be invested again for the call of the application program interface between the software modules. and time to update. That...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/448
CPCG06F9/449
Inventor 李中海
Owner SHENZHEN GONGJIN ELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products