Search

CN-121996236-A - Multi-granularity interaction module plug-in method, device and storage medium

CN121996236ACN 121996236 ACN121996236 ACN 121996236ACN-121996236-A

Abstract

The invention provides a multi-granularity interactive module plug-in method, a device and a storage medium, and belongs to the field of oil and gas exploration and development. The method comprises the steps of S100, defining a multi-granularity plug-in specification, S200, obtaining a plug-in manager, defining functions of the plug-in manager, and S300, interacting loading of the plug-in. The invention is suitable for the application collaborative management of the increasingly complex integrated earthquake processing interpretation platform, can improve the convenience and efficiency of the platform, greatly improves the usability of the earthquake processing interpretation platform, further reduces the time of data processing, improves the timeliness of the data processing, and is a service for exploration and development of conventional oil gas and coal bed gas.

Inventors

  • ZHAO DEMING
  • HUANG SHAOHUA
  • ZHU ZHIHUI

Assignees

  • 中国石油化工股份有限公司
  • 中石化石油物探技术研究院有限公司

Dates

Publication Date
20260508
Application Date
20241107

Claims (10)

  1. 1. A multi-granularity interactive module plug-in method, comprising: S100, defining a multi-granularity plug-in specification; S200, acquiring a plug-in manager and defining functions of the plug-in manager; S300, loading the interaction plug-in.
  2. 2. The method of claim 1, wherein S100, defining the multi-granularity plug-in specification, comprises: different plug-in specifications are defined according to different interactive service requirements, namely different plug-in interfaces are defined according to the interactive service requirements of different applications; The plug-in interfaces include IPlugin interface classes, IView interface classes, IObjectTypeSupport interface classes, and IContextMenuExtension interface classes.
  3. 3. The method of claim 2, wherein the IPlugin interface classes include five interface function implementation requirements, each: void Integrate ()'s used for being automatically called by the main control platform before the main control interface is displayed after the plug-in is loaded; void AfterIntegrate ()'s used for being automatically called by the main control platform after the main control interface is displayed; void Dispose () for invocation when a plug-in is to be offloaded; QUuid GetID ()'s unique identity for answering the plug-in; QString GetMyInformation () const for replying to the description information of the plug-in.
  4. 4. The method of claim 2, wherein the IView interface class includes four classes of interfaces that require an entry of a plug-in to implement, respectively: The boot OpenView () is used for constructing a user interface of the plug-in and is integrated to a display area of the main control console; bool CloseView () triggering when the main control interface is closed, wherein the method is used for unloading the interface of the plug-in from the main control interface and releasing the memory, and also used for processing data storage before closing and closing of a non-mode dialog box; the call scenario is that a master console or other plug-in transmits a handle of CPAIObject data object model to the current plug-in hope that the current plug-in will present this data graphically or in form; bool active (Pai:: objectmodel:: CPAIObject) if multiple CPAIObject data are displayed on the interface of the plug-in, the interface function is used to place the specified CPAIObject data in an active state.
  5. 5. The method of claim 2, wherein the IObjectTypeSupport interface classes include an interface function required implementation class that: QList < QUuid > GetSupportTypeIDs () const for enumerating all supported object types.
  6. 6. The method of claim 2, wherein IContextMenuExtension comprises an interface function implementation-specific implementation, as follows: Bool Handle (pi:: objectmodel:: CPAIObject:, QMenu:) is used to add menu items to the context menu of the delivered object.
  7. 7. The method of claim 1, wherein defining a plug-in manager in S200 comprises: the functions of loading, registering, unloading and inquiring the plug-in are set.
  8. 8. The method of claim 1, wherein S300, the loading of the interactive plugin, the specific operations include: the corresponding plug-ins are loaded into the plug-in manager according to the defined multi-granularity plug-in specification.
  9. 9. A multi-granularity interactive module plug-in device, comprising: a first defining unit for defining a multi-granularity plug-in specification; A second definition unit, configured to obtain a plug-in manager and define functions of the plug-in manager; And the loading unit is used for loading the interactive plug-in.
  10. 10. A computer readable storage medium storing at least one program executable by a computer, the at least one program when executed by the computer causing the computer to perform the steps in the multi-granular interactive module plugin method according to any one of claims 1 to 8.

Description

Multi-granularity interaction module plug-in method, device and storage medium Technical Field The invention belongs to the field of oil and gas exploration and development, and particularly relates to a multi-granularity interactive module plug-in method, a device and a storage medium. Background Along with the increasing requirements of oil and gas exploration on the seismic exploration technology, the seismic processing interpretation platform is required to be difficult to meet the actual production requirement by a single means, so that the processing platform is required to integrate the characteristic functions of seismic imaging, multi-wave processing interpretation, pre-stack interpretation processing, construction modeling, seismic forward modeling and the like, integrate advanced software functions of future-oriented automatic and intelligent seismic processing interpretation method technologies, develop automatic processing, global interpretation and the like, and construct a seismic processing interpretation professional application software system which can adapt to the seismic exploration production application requirements of different exploration areas in China, so as to form a competitive software platform. The application requirements of the seismic processing and interpretation integration need to be capable of efficiently managing and organizing multiple subjects such as seismic prestack data, post-stack data, near-surface model data, velocity model data, logging data, borehole geological data, well-coupled section data, well-seismic calibration data, seismic horizon data, sedimentary interval data, reservoir characterization data and the like, the data have large differences in the aspects of subject scale, application scenes, graphic display and interactive operation, and the seismic processing and interpretation integration is realized, so that not only is the efficient management of massive seismic data needed, but also the efficient development of multiple subjects and multiple applications is needed. At present, mature earthquake processing interpretation platforms exist at home and abroad, but as various applications contained in the platforms are more and more, the difficulty of collaborative development of multiple subjects and multiple applications is increased, and a method for reliably guaranteeing independent development and on-demand application loading of each application program is needed. Disclosure of Invention The invention aims to solve the problems in the prior art, and provides a multi-granularity interactive module plug-in method, a device and a storage medium, which are suitable for efficient parallel development of increasingly complex integrated seismic processing interpretation platforms, can effectively reduce the coupling of each application, improve the portability and maintainability of each application program, can load corresponding functions according to the use requirements of users, improve the development efficiency and the operation smoothness of the seismic processing platforms, and serve the exploration and development of conventional oil gas and coalbed methane. The invention is realized by the following technical scheme: in a first aspect of the present invention, a method for providing a multi-granularity interactive module plug-in includes: S100, defining a multi-granularity plug-in specification; S200, acquiring a plug-in manager and defining functions of the plug-in manager; S300, loading the interaction plug-in. The invention further improves that: s100, defining a multi-granularity plug-in specification, wherein the specific operation comprises the following steps: different plug-in specifications are defined according to different interactive service requirements, namely different plug-in interfaces are defined according to the interactive service requirements of different applications; The plug-in interfaces include IPlugin interface classes, IView interface classes, IObjectTypeSupport interface classes, and IContextMenuExtension interface classes. The invention further improves that: The IPlugin interface classes include five interface functions that need to be implemented in an implementation class, which are: void Integrate ()'s used for being automatically called by the main control platform before the main control interface is displayed after the plug-in is loaded; void AfterIntegrate ()'s used for being automatically called by the main control platform after the main control interface is displayed; void Dispose () for invocation when a plug-in is to be offloaded; QUuid GetID ()'s unique identity for answering the plug-in; QString GetMyInformation () const for replying to the description information of the plug-in. The invention further improves that: The IView interface class comprises four interface functions, namely an inlet class of which plug-ins are needed to realize, and the four interface functions are respectively: The boot