Method for calling heterogenous environment interpretation module on well logging interpretation platform
By setting up an intermediate layer component management center and an interpretation module that encapsulates heterologous environments in the log interpretation platform, the problem that the platform cannot call the interpretation processing module developed by different source environments is solved, and efficient module calls and independent operation are achieved.
Patent Information
- Application Number
- CN202311248919.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-26
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2043-09-26
AI Technical Summary
The existing logging interpretation software platform cannot directly call the interpretation processing module developed in different source environments, resulting in the interpretation module being unable to be called.
By setting up the intermediate layer component management center, encapsulate the interpretation module and the operating environment in the heterologous environment, and develop intermediate layer components to achieve dynamic loading, avoiding the underlying architecture conflicts of the operating environment.
The logging interpretation platform calls the heterologous environment interpretation module, which improves the call success rate and efficiency, and enables the interpretation module to run independently of the original interpretation software platform environment.
Smart Images

Figure CN119722366A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of well logging interpretation platform development, and in particular to a method for calling a heterogeneous environment interpretation module on a well logging interpretation platform. Background Art
[0002] The logging interpretation software platform is an important tool for logging data interpretation. In addition to basic functions such as logging data decoding, crossplot analysis and graphical curve display, it also provides users with a large number of interpretation processing modules with different functions. These modules are divided into one-dimensional conventional data processing modules and two-dimensional array data processing modules according to the processing data type, providing users with calculation results of rock physical parameters such as shale content, porosity, permeability, saturation and formation P- and S-wave time difference. Its basic working principle is that according to the processing depth well section and its corresponding interpretation parameters input by the user, the module reads the logging curve data of the corresponding depth, combines it with the interpretation parameters, and calculates the output results such as rock physical parameters according to a specific calculation formula. The interpretation software platform automatically creates or updates the curves corresponding to these output results, and refreshes them in the curve graphical display interface. The interpretation software platform supports user input of multiple continuous depth sections. However, the interpretation module functions of the platform itself are fixed, so whether the user-defined interpretation module can be loaded has become an important criterion for measuring the flexibility and scalability of the software platform. In the custom module, users can specify input and output curves, specific interpretation parameters, and write calculation methods for a certain function to realize new interpretation processing functions.
[0003] At present, most logging interpretation software platforms provide the function of attaching and calling user-defined interpretation modules. In order to improve development efficiency and realize complex interpretation calculation functions, users have the need to attach and call interpretation modules developed in heterogeneous environments on interpretation software platforms. Since the development and operating environments of the original interpretation software platform and interpretation modules are from different sources, such as the software platform is a compiled environment, and the interpretation module is developed in an interpreted environment, when the software platform directly calls the interpretation module, there is a conflict between the underlying architecture of the operating environment between the software platform and the interpretation module, resulting in the inability to call the interpretation module. This is because the operation of the interpretation module requires the initialization and startup of the original operating environment and the initialization of the main function in the module in the operating environment. Summary of the invention
[0004] The purpose of the present invention is to provide a solution that can smoothly call interpretation processing modules developed in different source environments on a well logging interpretation software platform.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a method for calling a heterogeneous environment interpretation module on a well logging interpretation platform, comprising: setting an intermediate layer component management center, the interface of the intermediate layer component corresponds to the identifier of the corresponding well logging interpretation module; in the second type of platform where the well logging interpretation module runs, encapsulating the developed interpretation module and the second type of platform; developing the intermediate layer component and registering it in the management center; according to the interpretation module identifier corresponding to the developed intermediate layer component, loading the intermediate layer component through the current component interface of the management center to load the second type of platform and the interpretation module therein, thereby inputting the incoming information containing the data to be interpreted into the current well logging interpretation module; and the intermediate layer component feeds back the well logging interpretation results.
[0006] Preferably, the process of developing the middle layer component includes: creating an interface of the current middle layer component, and implementing dynamic loading of the well logging interpretation module and its operating environment in the interface function.
[0007] Preferably, the calling of the well logging interpretation module and the starting and exiting of the second type of platform are encapsulated in the interface function of the middle layer component.
[0008] Preferably, in the step of loading the middle layer component for operation and loading the second type platform and the interpretation module therein through the current component interface of the management center according to the interpretation module identifier corresponding to the developed middle layer component, thereby inputting the incoming information containing the data to be interpreted into the current well logging interpretation module, the step includes: searching the management center for the interface of the corresponding registered middle layer component according to the identifier of the well logging interpretation module to be called currently, loading the middle layer component for operation and starting the interface function of the middle layer component in the independent memory of the operating system through the searched middle layer component interface; the middle layer component obtains and processes the incoming information through the started interface function, thereby loading the current well logging interpretation module by starting the second type platform, so that the current well logging interpretation module obtains the data to be interpreted in the incoming information, and completes the calling of the well logging interpretation module by the first type platform.
[0009] Preferably, the incoming information includes: a first parameter, a second parameter, a third parameter, a fourth parameter and a calculation parameter, wherein the process of processing the incoming information includes: determining the currently called well logging interpretation module through the first parameter according to the interface function; determining the start and exit actions of the second type of platform through the second parameter according to the interface function; determining the handle of the well logging data currently input to the well logging interpretation module through the third parameter according to the interface function and reading it; determining the handle of the well logging interpretation result data currently calculated and output from the well logging interpretation module through the fourth parameter according to the interface function; and determining the interpretation parameters currently input to the well logging interpretation module through the calculation parameters according to the interface function.
[0010] Preferably, before loading the middle layer component for execution, the method further includes: allocating a first common memory for storing input logging curve data and a second common memory for storing logging interpretation results in the operating system independent memory; and storing the measured logging curve data in the current data to be interpreted into the first common memory.
[0011] Preferably, in the process of starting the interface function and calling the well logging interpretation module, it includes: after completing the call of the interface function of the middle layer component, using the handle of the first public memory and the second public memory and the interpretation parameters as the parameters to be transmitted of the interface function, thereby passing the parameters to be transmitted to the middle layer component; the middle layer component obtains the access right to the first public memory through the first public memory handle, thereby reading the current measured well logging curve data, and at the same time reads the interpretation parameters through the calculation parameters; the middle layer component starts the second type of platform through the second parameter; the middle layer component loads the current well logging interpretation module through the first parameter, and inputs the read current measured well logging curve data and the interpretation parameters into the current well logging interpretation module, so that the current well logging interpretation module performs well logging interpretation calculations.
[0012] Preferably, the process of feeding back logging results includes: the middle layer component obtaining logging interpretation results; the middle layer component obtaining access rights to the second public memory through a second public memory handle, thereby storing the logging interpretation results in the second public memory.
[0013] Preferably, the method further comprises: reading the well logging interpretation result, and automatically creating or updating the corresponding well logging interpretation curve, so as to update it in the curve graphical display interface.
[0014] Preferably, the method runs on a first type of platform, and the first type of platform and the second type of platform are platforms built in different source development environments, wherein the first type of platform is a well logging interpretation platform based on a compiled environment, and the second type of platform is a platform developed based on an interpretive environment, and the second type of platform is equipped with at least one well logging interpretation processing module.
[0015] Compared with the prior art, one or more embodiments of the above scheme may have the following advantages or beneficial effects:
[0016] The present invention proposes a method for calling a heterogeneous environment interpretation module in a well logging interpretation platform. The method comprises: in a heterogeneous environment, encapsulating the developed interpretation module and the necessary heterogeneous operating environment; developing a corresponding middle-layer component to realize the dynamic loading of the heterogeneous environment interpretation module and its operating environment; setting a middle-layer component management center in the interpretation software platform to store the corresponding relationship between the middle-layer component interface and the unique identifier GUID; registering the developed middle-layer component in the management center; the platform searches for the registered middle-layer component interface in the management center according to the GUID, and loads the middle-layer component in the independent memory of the operating system through the middle-layer component interface to run; the middle-layer component processes the input and output data common memory handles and other input parameters sent by the platform, reads the input well logging curve data and interpretation parameters sent by the platform, and loads the interpretation module to run after completing the initialization configuration of the encapsulated heterogeneous operating environment startup; the calculation result of the interpretation module is stored in the corresponding common memory in the middle-layer component through the output data common memory handle, and returned to the software platform for reading, and the platform creates, updates and graphically displays the output curve. The present invention can realize the calling of the heterogeneous environment interpretation module by the well logging interpretation platform. In addition, the present invention can make the heterogeneous environment interpretation module run independently from the original interpretation software platform environment, avoiding the underlying architecture conflict between the heterogeneous operating environment and the software platform operating environment, and improving the call success rate and call efficiency.
[0017] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0019] Figure 1 This is a schematic diagram of the overall steps of a method for calling a heterogeneous environment interpretation module on a well logging interpretation platform according to an embodiment of the present application.
[0020] Figure 2 This is a schematic diagram of the specific steps of the method for calling a heterogeneous environment interpretation module on a well logging interpretation platform according to an embodiment of the present application.
[0021] Figure 3 This is a schematic diagram of the steps for implementing data exchange in a method for calling a heterogeneous environment interpretation module on a well logging interpretation platform according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] The following will describe the implementation methods of the present invention in detail with reference to the accompanying drawings and embodiments, so that the implementation process of how the present invention applies technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly. It should be noted that as long as there is no conflict, the various embodiments of the present invention and the various features in the embodiments can be combined with each other, and the technical solutions formed are all within the protection scope of the present invention.
[0023] In addition, the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions. Also, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described can be performed in a sequence different from that here.
[0024] The terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments. Unless the context clearly indicates otherwise, the singular forms "one", "one" and "item" used herein are also intended to include plural numbers. It should also be understood that the terms "include" and / or "comprise" used herein specify the existence of stated features, integers, steps, operations, units and / or components, without excluding the existence or addition of one or more other features, integers, steps, operations, units, components and / or combinations thereof.
[0025] The logging interpretation software platform is an important tool for logging data interpretation. In addition to basic functions such as logging data decoding, crossplot analysis and graphical curve display, it also provides users with a large number of interpretation processing modules with different functions. These modules are divided into one-dimensional conventional data processing modules and two-dimensional array data processing modules according to the processing data type, providing users with calculation results of rock physical parameters such as shale content, porosity, permeability, saturation and formation P- and S-wave time difference. Its basic working principle is that according to the processing depth well section and its corresponding interpretation parameters input by the user, the module reads the logging curve data of the corresponding depth, combines it with the interpretation parameters, and calculates the output results such as rock physical parameters according to a specific calculation formula. The interpretation software platform automatically creates or updates the curves corresponding to these output results, and refreshes them in the curve graphical display interface. The interpretation software platform supports user input of multiple continuous depth sections. However, the interpretation module functions of the platform itself are fixed, so whether the user-defined interpretation module can be loaded has become an important criterion for measuring the flexibility and scalability of the software platform. In the custom module, users can specify input and output curves, specific interpretation parameters, and write calculation methods for a certain function to realize new interpretation processing functions.
[0026] At present, most logging interpretation software platforms provide the function of attaching and calling user-defined interpretation modules. In order to improve development efficiency and realize complex interpretation calculation functions, users have the need to attach and call interpretation modules developed in heterogeneous environments on interpretation software platforms. Since the development and operating environments of the original interpretation software platform and interpretation modules are from different sources, such as the software platform is a compiled environment, and the interpretation module is developed in an interpreted environment, when the software platform directly calls the interpretation module, there is a conflict between the underlying architecture of the operating environment between the software platform and the interpretation module, resulting in the inability to call the interpretation module. This is because the operation of the interpretation module requires the initialization and startup of the original operating environment and the initialization of the main function in the module in the operating environment.
[0027] Therefore, in order to solve one or more of the above technical problems, the present application proposes a method for a well interpretation platform to call a heterogeneous environment interpretation module. The method includes: in a heterogeneous environment, encapsulating the developed interpretation module and the necessary heterogeneous operating environment; developing corresponding middle-layer components to realize dynamic loading of the heterogeneous environment interpretation module and its operating environment; setting up a middle-layer component management center in the interpretation software platform to store the correspondence between the middle-layer component interface and the unique identifier GUID; registering the developed middle-layer component in the management center; the platform searches for the registered middle-layer component interface in the management center according to the GUID, and loads the middle-layer component in the independent memory of the operating system through the middle-layer component interface to run; the middle-layer component processes the input and output data common memory handles and other incoming parameters sent by the platform, reads the input logging curve data and interpretation parameters sent by the platform, and loads the interpretation module to run after completing the initialization configuration of the encapsulated heterogeneous operating environment. The calculation results of the interpretation module are stored in the corresponding common memory in the middle-layer component through the output data common memory handle, and returned to the software platform for reading, and the platform creates, updates and graphically displays the output curve. Finally, the platform implements the call to the heterogeneous environment interpretation module.
[0028] Figure 1 This is a schematic diagram of the overall steps of a method for calling a heterogeneous environment interpretation module on a well logging interpretation platform according to an embodiment of the present application. Figure 2 This is a schematic diagram of the specific steps of the method for calling a heterogeneous environment interpretation module on a well logging interpretation platform according to an embodiment of the present application. Figure 1 and Figure 2 The steps of the method for calling a heterogeneous environment interpretation module on a well logging interpretation platform (also referred to as a "heterogeneous environment interpretation module calling method") described in an embodiment of the present invention are described.
[0029] Before explaining the heterogeneous environment interpretation module calling method described in the embodiment of the present invention, it should be noted that the heterogeneous environment interpretation module calling method described in the embodiment of the present invention runs on the first type of platform as the calling subject. In the embodiment of the present invention, the first type of platform refers to the well logging interpretation (software) platform, which is a well logging interpretation platform based on a compiled environment (for example: a compiled QT C++ environment). The second type of platform refers to the development and operation environment to which the well logging interpretation processing module belongs. The platform is a platform developed based on an interpretive environment, and is equipped with at least one well logging interpretation processing module (for example: one or more well logging interpretation modules such as a dual induction resistivity inversion module).
[0030] like Figure 1As shown, in step S110, a middle layer component management center is set on the first type of platform (well logging interpretation software platform). The middle layer component management center stores at least one developed and registered middle layer component. Each middle layer component corresponds to a well logging interpretation processing module. In one embodiment, each middle layer component is provided with a middle layer component interface, and each middle layer component interface corresponds to the identifier of the corresponding well logging interpretation (processing) module.
[0031] The middle-layer component management center also stores a corresponding relationship between at least one middle-layer component interface and a unique identifier GUID.
[0032] Step S120, encapsulate the developed well logging interpretation module and the second type platform in the second type platform (ie, the heterogeneous operating environment) where the well logging interpretation module is running. Then, the process proceeds to step S130.
[0033] Step S130, developing an intermediate layer component and registering it in the management center, that is, developing an intermediate layer component corresponding to the newly added well logging interpretation module, and registering the developed intermediate layer component in the intermediate layer component management center.
[0034] In one embodiment, the process of developing the middle layer component includes: creating an interface of the current middle layer component, and implementing dynamic loading of the heterogeneous environment logging interpretation module and its operating environment in the interface function.
[0035] In addition, in the process of developing the middle layer component, the embodiment of the present invention also encapsulates the calling of the newly added well logging interpretation module and the starting and exiting of the heterogeneous operating environment in the interface function of the middle layer component.
[0036] Step S140, in the first type of platform, according to the interpretation module identifier corresponding to the developed middle-layer component, loads the middle-layer component to run through the current component interface in the middle-layer component management center, thereby loading the second type of platform and the interpretation module therein, and then inputs the incoming information containing the data to be interpreted into the current well logging interpretation module, so that the well logging interpretation module can carry out well logging interpretation and output corresponding well logging interpretation results.
[0037] In step S140, first, according to the identifier of the well logging interpretation module to be called, the interface of the corresponding registered middle-layer component is searched in the middle-layer component management center, and through the searched middle-layer component interface, the current middle-layer component is loaded in the independent memory of the operating system to run and start the interface function of the middle-layer component.
[0038] Before loading the middle layer component to run (i.e., before step S140), the heterogeneous environment interpretation module calling method described in the embodiment of the present invention further includes: in the operating system independent memory of the well logging interpretation software platform, a first common memory for storing input well logging curve data and a second common memory for storing well logging interpretation results are allocated; and then, the measured well logging curve data in the current data to be interpreted is stored in the first common memory. In the embodiment of the present invention, the data to be interpreted includes the measured well logging curve data and the interpretation parameters required for carrying out the well logging interpretation calculation.
[0039] Specifically, the well logging interpretation platform will search for the interface of the registered middle-layer component in the management center according to the pre-defined GUID identifier of the current well logging interpretation module, and first load the middle-layer component in the independent memory of the operating system through the searched middle-layer component interface, thereby starting the interface function corresponding to the current middle-layer component through the operation of the middle-layer component.
[0040] Then, in step S140, the current middle layer component will obtain the incoming information through the started interface function and process the incoming information, thereby loading the current well logging interpretation module by starting the second type of platform (i.e., starting the heterogeneous operating environment), so that the current well logging interpretation module obtains the data to be interpreted in the incoming information, thereby completing the call of the current well logging interpretation module by the first type of platform (well logging interpretation platform).
[0041] In one embodiment, the incoming information includes: a first parameter, a second parameter, a third parameter, a fourth parameter and a calculation parameter.
[0042] At this time, in the process of the middle layer component obtaining the incoming information and processing the incoming information, an embodiment of the present invention includes: the middle layer component determines the currently called well logging interpretation module according to the first parameter in the incoming information based on the started interface function; the middle layer component determines the start and exit actions of the heterogeneous operating environment according to the started interface function through the second parameter in the incoming information; the middle layer component determines the handle of the current well logging data (that is, the well logging data currently required to be input to the well logging interpretation module) according to the started interface function through the third parameter in the incoming information; determines the handle of the well logging interpretation result data currently calculated and output from the well logging interpretation module according to the started interface function through the fourth parameter in the incoming information; and determines the interpretation parameters currently input to the well logging interpretation module according to the started interface function through the calculation parameters.
[0043] In this way, the middle-layer component can process the incoming information such as the input and output data common memory handles sent by the well logging interpretation platform, thereby reading the input logging curve data and interpretation parameters sent by the platform, and then completing the startup of the encapsulated heterogeneous operating environment by reading the incoming information, and performing the initialization configuration of the heterogeneous operating environment for the main function in the current well logging interpretation module. Finally, the current well logging interpretation module is loaded and run, realizing the call of the heterogeneous environment interpretation module.
[0044] Further, in the process of starting the interface function and calling the current well logging interpretation module, an embodiment of the present invention includes: after completing the call of the interface function of the current middle layer component, using the handle of the first public memory, the handle of the second public memory and the interpretation parameters as the parameters to be transmitted of the interface function, thereby passing the current parameters to be transmitted to the middle layer component; then, the middle layer component obtains the access right to the first public memory through the first public memory handle, thereby reading the current measured well logging curve data, and reading the interpretation parameters by calculating the parameters; next, the middle layer component starts the second type of platform by reading the second parameter; finally, the middle layer component loads the current well logging interpretation module by reading the first parameter, and inputs the read current measured well logging curve data and interpretation parameters into the current well logging interpretation module, so that the current well logging interpretation module can carry out the current well logging interpretation calculation.
[0045] Therefore, after the current logging interpretation module is called and run, the logging interpretation result is output according to the current measured logging curve data and interpretation parameters obtained through the middle layer component, and then enters step S150.
[0046] In step S150, the current middle layer component feeds back the current well logging interpretation result to the first type of platform (ie, the well logging interpretation platform).
[0047] Specifically, in step S150, the middle layer component obtains the well logging interpretation result transmitted from the current well logging interpretation module (by reading the handle of the well logging interpretation result data currently calculated and output from the well logging interpretation module); then, the middle layer component obtains the access right to the second public memory in the well logging interpretation platform through the second public memory handle, thereby storing the well logging interpretation result in the second public memory.
[0048] In this way, step S150 will store the calculation results of the interpretation module into the corresponding public memory in the middle layer component through the output data public memory handle, so that due to the call of the middle layer component by the first type of well logging interpretation platform, the first type of software platform reads the current well logging interpretation results in the second public memory.
[0049] In addition, the current logging interpretation platform will automatically read the logging interpretation results in the second public memory, and automatically create or update the logging interpretation curve constructed by the current platform, so as to update the logging interpretation results in the curve graphical display interface.
[0050] The implementation process of the heterogeneous environment interpretation module calling method described above in the present invention is applied to a specific example. The steps of the heterogeneous environment interpretation module calling method involved are as follows:
[0051] Taking the well logging interpretation software platform of the compiled QT C++ environment as the calling subject, and the dual induction resistivity inversion module developed in the interpretation environment as the heterogeneous environment well logging interpretation module, the method of the calling subject adopting the method embodiment, and the specific method of loading the heterogeneous environment interpretation module and running it are introduced in detail.
[0052] Figure 2 A schematic diagram showing a flow chart of a method for calling a heterogeneous environment interpretation module of a well logging interpretation software platform provided by an embodiment of the present invention is shown. Figure 2 It can be seen that the method specifically includes the following steps:
[0053] Step S201, setting up a middle-layer component management center in the interpretation software platform to store the corresponding relationship between the middle-layer component interface and the unique identifier GUID.
[0054] Step S202: encapsulate the developed interpretation module and the necessary heterogeneous operating environment in the heterogeneous environment.
[0055] Step S203: middle layer component development.
[0056] In this step S203, a middle layer component interface is created, and dynamic loading of a heterogeneous environment interpretation module and its operating environment is implemented in the interface function.
[0057] Step S204: the middle-layer component is registered in the management center of the software platform.
[0058] Step S205: the software platform loads the middle layer component in the independent memory of the operating system for execution.
[0059] In this step S205, the platform searches for the registered middle-layer component interface in the management center according to the pre-defined GUID, loads the middle-layer component in the independent memory of the operating system through the middle-layer component interface, enables the middle-layer component to run independently of the software platform, and starts the middle-layer component interface function.
[0060] Step S206: the middle layer component loads the corresponding interpretation module and performs interpretation processing and calculation.
[0061] In this step S206, the middle-layer component interface first processes the input and output data common memory handles and other incoming parameters sent by the platform, reads the input logging curve data and interpretation parameters sent by the platform, then starts the encapsulated heterogeneous operating environment, initializes the operating environment of the main function in the interpretation module, and finally calls the heterogeneous environment interpretation module.
[0062] Step S207, the middle layer component stores the output result of the heterogeneous environment interpretation module into the corresponding public memory through the output data public memory handle, and returns it to the software platform for reading.
[0063] Figure 3 The present invention shows a flow chart of a data exchange method in which an interpretation software platform calls a heterogeneous environment interpretation module. The data exchange includes the software platform sending logging curve data and interpretation parameters to the heterogeneous environment interpretation module, and the heterogeneous environment interpretation module sending calculation output result data to the software platform.
[0064] Reference Figure 3 It can be seen that the data exchange method specifically includes the following steps:
[0065] Step S301, the explanation software platform opens up a common memory for input logging curve data and a common memory for output result data, and obtains handles of the two common memories.
[0066] Step S302, the interpretation software platform stores the input curve data into the developed input logging curve data common memory.
[0067] Step S303, the interpretation software platform calls the interface function of the middle layer component, and passes the two public memory handles and interpretation parameters as the parameters of the interface function to the middle layer component.
[0068] Step S304, the middle layer component obtains access rights to the public memory of the input well logging curve data through the public memory handle and reads the input data in. After starting the encapsulated heterogeneous operating environment, the input data and interpretation parameters are sent to the heterogeneous environment interpretation module and called to run.
[0069] Step S305, after the heterogeneous environment interpretation module completes the calculation, the result is returned to the middle layer component. The middle layer component obtains the access right to the public memory of the output result data through the public memory handle, stores the output result data, and returns it to the software platform.
[0070] Step S306, the software platform obtains access rights to the public memory of the output result data through the public memory handle, reads the output result data, and automatically creates or updates the curves corresponding to the output results, while refreshing the display on the curve graphical display interface.
[0071] The present invention discloses a method for calling a heterogeneous environment interpretation module on a well logging interpretation platform. The method comprises: in a heterogeneous environment, encapsulating a developed interpretation module and a necessary heterogeneous operating environment; developing a corresponding middle-layer component to realize dynamic loading of the heterogeneous environment interpretation module and its operating environment; setting a middle-layer component management center on the interpretation software platform to store the corresponding relationship between the middle-layer component interface and the unique identifier GUID; registering the developed middle-layer component in the management center; the platform searches for the registered middle-layer component interface in the management center according to the GUID, and loads the middle-layer component in the independent memory of the operating system through the middle-layer component interface to run; the middle-layer component processes the input and output data common memory handles and other input parameters sent by the platform, reads the input well logging curve data and interpretation parameters sent by the platform, and loads the interpretation module to run after completing the initialization configuration of the encapsulated heterogeneous operating environment startup; the calculation result of the interpretation module is stored in the corresponding common memory in the middle-layer component through the output data common memory handle, and returned to the software platform for reading, and the platform creates, updates and graphically displays the output curve. The present invention can realize the calling of the heterogeneous environment interpretation module by the well logging interpretation platform. In addition, the present invention can make the heterogeneous environment interpretation module run independently from the original interpretation software platform environment, avoiding the underlying architecture conflict between the heterogeneous operating environment and the software platform operating environment, and improving the call success rate and call efficiency.
[0072] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any person familiar with the technology within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0073] In the description of the present invention, unless otherwise specified, "plurality" means two or more than two; the orientations or positional relationships indicated by the terms "upper", "lower", "left", "right", "inner", "outer", "front end", "rear end", "head", "tail", etc. are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0074] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0075] It should be understood that the embodiments disclosed in the present invention are not limited to the specific structures, processing steps or materials disclosed herein, but should be extended to equivalent substitutions of these features understood by ordinary technicians in the relevant field. It should also be understood that the terms used herein are only used for the purpose of describing specific embodiments and are not meant to be limiting.
[0076] The "one embodiment" or "embodiment" mentioned in the specification means that the specific features, structures or characteristics described in conjunction with the embodiment are included in at least one embodiment of the present invention. Therefore, the phrases "one embodiment" or "embodiment" appearing in various places throughout the specification do not necessarily refer to the same embodiment.
[0077] Although the embodiments disclosed in the present invention are as above, the contents described are only embodiments adopted for facilitating the understanding of the present invention and are not intended to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present invention, but the patent protection scope of the present invention shall still be subject to the scope defined in the attached claims.
Claims
1. A method for calling a heterogeneous environment interpretation module on a well logging interpretation platform, characterized in that: include: Setting up an intermediate layer component management center, wherein the interface of the intermediate layer component corresponds to the identification of the corresponding well logging interpretation module; In the second type of platform on which the well logging interpretation module runs, the developed interpretation module and the second type of platform are packaged; Develop the middle-layer components and register them in the management center; According to the interpretation module identifier corresponding to the developed middle-layer component, the middle-layer component is loaded and operated through the current component interface of the management center to load the second type of platform and the interpretation module therein, so as to input the incoming information containing the data to be interpreted into the current well logging interpretation module; The logging interpretation result is fed back by the middle layer component.
2. The method according to claim 1, characterized in that The process of developing the middle layer component includes: creating an interface of the current middle layer component, and realizing dynamic loading of the well logging interpretation module and its operating environment in the interface function.
3. The method according to claim 2, characterized in that The calling of the well logging interpretation module and the starting and exiting of the second type of platform are all encapsulated in the interface function of the middle layer component.
4. The method according to any one of claims 1 to 3, characterized in that According to the interpretation module identifier corresponding to the developed middle-layer component, the middle-layer component is loaded and operated through the current component interface of the management center to load the second type platform and the interpretation module therein, thereby inputting the incoming information containing the data to be interpreted into the current well logging interpretation module, including: According to the identifier of the well logging interpretation module to be called, the management center searches for the interface of the corresponding registered middle-layer component, and through the searched middle-layer component interface, loads the middle-layer component in the independent memory of the operating system to run and starts the interface function of the middle-layer component; The intermediate layer component obtains and processes the incoming information through the started interface function, thereby starting the second type of platform to load the current well logging interpretation module, so that the current well logging interpretation module obtains the data to be interpreted in the incoming information, and completes the call of the well logging interpretation module by the first type of platform.
5. The method according to claim 4, characterized in that The incoming information includes: a first parameter, a second parameter, a third parameter, a fourth parameter and a calculation parameter, wherein the process of processing the incoming information includes: Determine the currently called well logging interpretation module according to the interface function through the first parameter; Determining the start and exit actions of the second type of platform through the second parameter according to the interface function; Determine the handle of the well logging data currently input to the well logging interpretation module through the third parameter according to the interface function and read it; Determine the handle of the well logging interpretation result data currently calculated and output from the well logging interpretation module through the fourth parameter according to the interface function; The interpretation parameters currently input to the well logging interpretation module are determined through the calculation parameters according to the interface function.
6. The method according to claim 5, characterized in that Before loading the middle layer component to run, the method further includes: A first common memory for storing input well logging curve data and a second common memory for storing well logging interpretation results are allocated in the independent memory of the operating system; The measured logging curve data in the current data to be interpreted is stored in the first shared memory.
7. The method according to claim 6, characterized in that The process of starting the interface function and calling the logging interpretation module includes: After completing the call of the interface function of the middle layer component, the handles of the first public memory and the second public memory and the interpretation parameters are used as the parameters to be transmitted of the interface function, thereby passing the parameters to be transmitted to the middle layer component; The middle layer component obtains the access right to the first public memory through the first public memory handle, thereby reading the current measured well logging curve data, and at the same time reads the interpretation parameter through the calculation parameter; The middle layer component starts the second type of platform through the second parameter; The middle layer component loads the current well logging interpretation module through the first parameter, and inputs the read current measured well logging curve data and the interpretation parameters into the current well logging interpretation module, so that the current well logging interpretation module performs well logging interpretation calculations.
8. The method according to claim 6 or 7, characterized in that: The process of feeding back logging results includes: Obtaining logging interpretation results from the intermediate layer component; The middle layer component obtains the access right to the second public memory through the second public memory handle, thereby storing the well logging interpretation result in the second public memory.
9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: The logging interpretation result is read, and the corresponding logging interpretation curve is automatically created or updated, so as to be updated in the curve graphical display interface.
10. The method according to claims 1 to 9, characterized in that: The method runs on a first type of platform, and the first type of platform and the second type of platform are platforms built in different source development environments, wherein the first type of platform is a well logging interpretation platform based on a compiled environment, and the second type of platform is a platform developed based on an interpretive environment, and the second type of platform is equipped with at least one well logging interpretation processing module.
Citation Information
Patent Citations
A method and apparatus for constructing a cross-platform software runtime environment
CN102289374A
Differentiation shielding method and system for multi-platform face recognition service interface and storage medium
CN111339345A
Intelligent well drilling parameter optimization method and device capable of being explained
CN115952656A
Reservoir fluid comprehensive discrimination method based on combined parameters in oil and gas reservoir
CN115961952A