JP7625149B2 - Module processing method, device and storage medium for use in foreground/background separation system - Google Patents
Module processing method, device and storage medium for use in foreground/background separation system Download PDFInfo
- Publication number
- JP7625149B2 JP7625149B2 JP2024537143A JP2024537143A JP7625149B2 JP 7625149 B2 JP7625149 B2 JP 7625149B2 JP 2024537143 A JP2024537143 A JP 2024537143A JP 2024537143 A JP2024537143 A JP 2024537143A JP 7625149 B2 JP7625149 B2 JP 7625149B2
- Authority
- JP
- Japan
- Prior art keywords
- module
- background
- target
- foreground
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2393—Updating materialised views
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
- Digital Computer Display Output (AREA)
- User Interface Of Digital Computer (AREA)
Description
本発明は、コンピュータ技術分野に関し、特に、フォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法、装置及び記憶媒体に関する。 The present invention relates to the field of computer technology, and in particular to a module processing method, device, and storage medium for use in a foreground/background separation system.
フォアグラウンドとバックグラウンドの分離システムとは、フォアグラウンドとバックグラウンドとが互いに独立しているシステムのことである。前記フォアグラウンドはインターフェース層を指してもよく、前記バックグラウンドは機能層を指してもよい。 A separate foreground/background system is one in which the foreground and background are independent of each other. The foreground may refer to the interface layer, and the background may refer to the functionality layer.
フォアグラウンドは、複数のモジュールを含むフローチャートを表示するインタラクティブインターフェース(interactive interface)を提供するために用いられ、該インタラクティブインターフェースにより、ユーザは特定のモジュールに対して操作をトリガすることができる。 The foreground is used to provide an interactive interface that displays a flowchart containing multiple modules and allows the user to trigger operations on specific modules.
バックグラウンドは、該操作に対応するデータ論理機能を実行し、データ記憶機能を提供するために用いられる。 The background is used to perform the data logic functions corresponding to the operation and provide data storage functions.
ユーザがフォアグラウンドで、あるモジュールに対して操作をトリガした後、通常、ユーザが該操作を取り消す必要があったり、該操作を取り消した後に該操作を再実行する必要があったりするシナリオがよく存在する。 After a user triggers an operation on a module in the foreground, there are often scenarios where the user needs to cancel the operation or re-run the operation after canceling it.
上記シナリオにおいて、どのように該操作を取り消すか、又はやり直すかは、フォアグラウンドとバックグラウンドのデータの同期に関わる可能性があるため、ユーザがフォアグラウンドとバックグラウンドの分離システムにおいてモジュールに対する操作の取り消し又はやり直しを実現できるような、フォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法の検討が求められている。 In the above scenario, how to undo or redo the operation may involve synchronization of foreground and background data, so there is a need to consider a module processing method for use in a separate foreground/background system that allows users to undo or redo operations on modules in the separate foreground/background system.
本発明の実施例は、フォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法、装置及び記憶媒体を提供し、フォアグラウンドとバックグラウンドの分離システムにおけるユーザ操作の取り消し又はやり直しを実現することができる。 Embodiments of the present invention provide a module processing method, device, and storage medium for use in a foreground/background separation system, and can realize the undo or redo of a user operation in the foreground/background separation system.
第1の態様によれば、フォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法であって、前記フォアグラウンドとバックグラウンドの分離システムはフォアグラウンドとバックグラウンドとを含み、前記フォアグラウンドにはインタラクティブインターフェースが表示され、前記インタラクティブインターフェースは複数のモジュールを表示するために用いられ、前記バックグラウンドにはデータセンターが配置され、前記データセンターは各前記複数のモジュールのモジュールデータを記憶するために用いられ、前記モジュールデータは前記モジュールの表示方式、前記モジュールの機能データ及び前記モジュールと各他のモジュールとの間の論理関係を含み、
目標モジュールに対する目標操作に応答して、前記フォアグラウンドが前記目標操作に基づいて、前記バックグラウンドが前記データセンターにおける前記目標モジュールに対応するデータを更新するように制御し、前記フォアグラウンドが更新後の前記目標モジュールに対応する前記データに基づいて前記インタラクティブインターフェースを更新するステップであって、前記目標モジュールは、前記複数のモジュールのうちの1つ又は複数のモジュールである、ステップと、
前記目標操作に対する取り消し命令が検出された場合、前記フォアグラウンドが前記取り消し命令に基づいて、前記バックグラウンドが前記データセンターにおける前記目標モジュールに対応する前記データを復元するように制御し、前記フォアグラウンドが復元後の前記目標モジュールに対応する前記データに基づいて、前記インタラクティブインターフェースを更新するステップと、を含む、フォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法が提供される。
According to a first aspect, there is provided a module processing method for a foreground/background separation system, the foreground/background separation system including a foreground and a background, an interactive interface is displayed in the foreground, the interactive interface is used to display a plurality of modules, a data center is disposed in the background, the data center is used to store module data of each of the plurality of modules, the module data includes a display method of the module, function data of the module, and a logical relationship between the module and each of the other modules;
In response to a target operation on a target module, the foreground controls the background to update data corresponding to the target module in the data center based on the target operation, and the foreground updates the interactive interface based on the data corresponding to the updated target module, the target module being one or more of the multiple modules;
When a cancellation command for the target operation is detected, the foreground controls the background to restore the data corresponding to the target module in the data center based on the cancellation command, and the foreground updates the interactive interface based on the data corresponding to the target module after restoration.
第2の態様によれば、フォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理装置であって、前記フォアグラウンドとバックグラウンドの分離システムはフォアグラウンドとバックグラウンドとを含み、前記フォアグラウンドにはインタラクティブインターフェースが表示され、前記インタラクティブインターフェースは複数のモジュールを表示するために用いられ、前記バックグラウンドにはデータセンターが配置され、前記データセンターは各前記複数のモジュールのモジュールデータを記憶するために用いられ、前記モジュールデータは前記モジュールの表示方式、前記モジュールの機能データ及び前記モジュールと各他のモジュールとの間の論理関係を含み、
目標モジュールに対する目標操作に応答して、前記フォアグラウンドに前記目標操作に基づいて、前記バックグラウンドが前記データセンターにおける前記目標モジュールに対応するデータを更新するように制御させ、前記フォアグラウンドに更新後の前記目標モジュールに対応する前記データに基づいて前記インタラクティブインターフェースを更新させるための第1の制御モジュールであって、前記目標モジュールは、前記複数のモジュールのうちの1つ又は複数のモジュールである、第1の制御モジュールと、
前記目標操作に対する取り消し命令が検出された場合、前記フォアグラウンドに前記取り消し命令に基づいて、前記バックグラウンドが前記データセンターにおける前記目標モジュールに対応する前記データを復元するように制御させ、前記フォアグラウンドに復元後の前記目標モジュールに対応する前記データに基づいて、前記インタラクティブインターフェースを更新させるための第2の制御モジュールと、を含む、フォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理装置が提供される。
According to a second aspect, there is provided a module processing device for use in a foreground/background separation system, the foreground/background separation system including a foreground and a background, an interactive interface is displayed in the foreground, the interactive interface is used to display a plurality of modules, a data center is disposed in the background, the data center is used to store module data of each of the plurality of modules, the module data includes a display method of the module, function data of the module, and a logical relationship between the module and each of the other modules;
a first control module for, in response to a target operation on a target module, controlling the foreground to control the background to update data corresponding to the target module in the data center based on the target operation, and foreground to update the interactive interface based on the data corresponding to the updated target module, the target module being one or more of the plurality of modules;
A module processing device for use in a foreground and background separation system is provided, the module processing device including: when a cancellation command for the target operation is detected, a second control module for causing the foreground to control the background to restore the data corresponding to the target module in the data center based on the cancellation command, and for causing the foreground to update the interactive interface based on the data corresponding to the restored target module.
第3の態様によれば、プロセッサと、
プロセッサ実行可能命令を記憶するためのメモリと、を含む、フォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理装置であって、
前記プロセッサは、上記第1の態様により提供されるフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法におけるいずれかのステップを実行するように構成される、フォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理装置が提供される。
According to a third aspect, there is provided a method for controlling a multi-threaded data transfer system comprising:
a memory for storing processor executable instructions, said memory comprising:
There is provided a module processing device for use in a foreground/background separation system, wherein the processor is configured to execute any of the steps of the module processing method for use in a foreground/background separation system provided by the first aspect above.
第4の態様によれば、コンピュータ可読記憶媒体であって、前記コンピュータ可読記憶媒体に命令が記憶され、前記命令がプロセッサによって実行されると、上記第1の態様により提供されるフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法におけるいずれかのステップが実施される、コンピュータ可読記憶媒体が提供される。 According to a fourth aspect, there is provided a computer-readable storage medium having instructions stored therein, the instructions being executed by a processor to perform any of the steps in the module processing method for use in the foreground/background separation system provided by the first aspect.
第5の態様によれば、命令を含むコンピュータプログラム製品であって、前記命令がコンピュータ上で実行されると、前記コンピュータに上記第1の態様により提供されるフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法におけるいずれかのステップを実行させる、コンピュータプログラム製品が提供される。 According to a fifth aspect, there is provided a computer program product including instructions which, when executed on a computer, cause the computer to perform any of the steps of a module processing method for use in a foreground/background separation system provided by the first aspect above.
本発明の実施例により提供される技術的解決策がもたらす有益な効果は、少なくとも以下を含む。 The beneficial effects of the technical solutions provided by the embodiments of the present invention include at least the following:
本発明の実施例により提供されるフォアグラウンドとバックグラウンドの分離システムにおいて、バックグラウンドのデータセンターに記憶されたモジュールデータは、モジュールの表示方式、モジュールの機能データ及びモジュール間の論理関係を含み、即ち、バックグラウンドにフォアグラウンドデータとバックグラウンドデータとが同時に記憶されている。これから分かるように、本発明の実施例では、バックグラウンドが全てのデータのデータセンターとして機能している。このように、フォアグラウンドが、目標モジュールに対する目標操作を検出した場合、フォアグラウンドとバックグラウンドのデータを更新するようにバックグラウンドを制御し、目標操作が取り消される場合、同様にフォアグラウンドとバックグラウンドのデータを更新するようにバックグラウンドを制御することにより、目標操作の実行中又は目標操作の取り消し中にフォアグラウンドのインタラクティブインターフェースに表示される内容、及びフォアグラウンドとバックグラウンドのデータ間の一致性を保証することができる。
本発明の実施例における技術的解決策をより明確に説明するために、以下、実施例の説明に使用する必要がある図面を簡単に説明し、明らかに、以下の説明における図面は本発明のいくつかの実施例に過ぎず、当業者にとって、創造的な労働なしにこれらの図面に基づいて他の図面を得ることができる。
In the foreground and background separation system provided by the embodiment of the present invention, the module data stored in the data center of the background includes the display manner of the module, the function data of the module, and the logical relationship between the modules, that is, the foreground data and the background data are stored simultaneously in the background. As can be seen, in the embodiment of the present invention, the background functions as the data center of all data. In this way, when the foreground detects a target operation on a target module, it controls the background to update the foreground and background data, and when the target operation is canceled, it controls the background to update the foreground and background data in the same way, thereby ensuring the consistency between the content displayed on the foreground interactive interface during the execution of the target operation or the cancellation of the target operation, and the foreground and background data.
In order to more clearly describe the technical solutions in the embodiments of the present invention, the following will briefly describe the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without creative efforts.
本発明の実施例の目的、技術的解決策及び利点をより明確にするために、以下、図面を参照しながら本発明の実施形態をさらに詳細に説明する。 To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in more detail below with reference to the drawings.
フォアグラウンドとバックグラウンドの分離システムにおいて、フォアグラウンドは、ソフトウェアのインターフェース表示を行い、ユーザが操作できるインタラクティブインターフェースを提供するために用いられ、バックグラウンドは、具体的な機能論理及び記録データを提供する。典型的なC/S(client/server、クライアント/サーバ)、B/S(browser/server、ブラウザ/サーバ)システムは、いずれもフォアグラウンドとバックグラウンドの分離システムに属する。 In a foreground/background separation system, the foreground is used to display the software interface and provide an interactive interface that the user can operate, while the background provides specific functional logic and recorded data. Typical C/S (client/server) and B/S (browser/server) systems both belong to the foreground/background separation system.
現在、マシンビジョン業界又は他の業界では、いくつかの異なる機能モジュール(機能モジュールは機能ユニットとも呼ばれる)を予め抽出し、これらの機能モジュールを組み合わせることによってある特定の組み合わせ機能を実現する。機能モジュールを一定の順序に並べ、それらの間の関係を設定するプロセスは、プロセス設定である。プロセス設定機能を提供するソフトウェアは、プロセス設定システムである。プロセス設定システムのフォアグラウンドにより提供されるインタラクティブインターフェースは、通常、グラフィカルなフローチャートであることを考慮すると、プロセス設定システムはグラフィカルプロセス設定システムとも呼ばれる。 Currently, in the machine vision industry or other industries, several different functional modules (functional modules are also called functional units) are extracted in advance, and a certain combination function is realized by combining these functional modules. The process of arranging the functional modules in a certain order and setting the relationships between them is process setting. The software that provides the process setting function is a process setting system. Considering that the interactive interface provided by the foreground of the process setting system is usually a graphical flowchart, the process setting system is also called a graphical process setting system.
プロセス設定システムは、典型的なフォアグラウンドとバックグラウンドの分離システムである。本発明の実施例により提供されるモジュール処理方法は、プロセス設定システムに適用され得る。オプションで、本発明の実施例により提供されるモジュール処理方法は、他のフォアグラウンドとバックグラウンドの分離システムにも適用することができ、本発明の実施例はこれについて限定しない。 The process setting system is a typical foreground and background separation system. The module processing method provided by the embodiment of the present invention may be applied to the process setting system. Optionally, the module processing method provided by the embodiment of the present invention may also be applied to other foreground and background separation systems, and the embodiment of the present invention is not limited in this regard.
以下の説明を容易にするために、ここでは、本発明の実施例に関わる2つの概念を簡単に説明する。 To facilitate the following discussion, we will briefly explain two concepts related to the embodiments of the present invention.
取り消し(アンドゥ):ユーザがソフトウェアシステムとインタラクションする時、ユーザのニーズにより、ソフトウェアの状態を最後の操作の前の状態に戻すことは、1回の取り消しである。取り消しは直列化することができ、即ち、複数回取り消して、複数回の操作の前の状態に戻すことができる。 Undo: When a user interacts with a software system, it is up to the user's needs to restore the state of the software to the state before the last operation, which is a single undo. Undo can be serialized, i.e., multiple undos can be performed to restore the state before multiple operations.
やり直し(リドゥ):取り消しとは逆に、ソフトウェアが取り消しによりある状態に到達した場合、ユーザのニーズにより、ソフトウェア状態を最後の取り消しの前の状態に進めることはやり直しである。やり直しも直列化することができ、即ち、複数回やり直して、複数回取り消される前の状態を復元する。 Redo: The opposite of undo, if the software has reached a certain state through undo, redo is to advance the software state to the state before the last undo, at the user's request. Redo can also be serialized, i.e. redo multiple times to restore the state before multiple undos.
取り消し又はやり直しの目的は、ソフトウェアの状態を最後の操作から前のN個の操作までの間のいずれかの操作後の状態にリセットすることであり、即ち、ユーザが自分の行動を元に戻す機会を与えることである。 The purpose of Undo or Redo is to reset the state of the software to the state it was in after any operation between the last operation and the previous N operations, i.e. to give the user a chance to undo their actions.
フォアグラウンドとバックグラウンドの分離システムにおいて、フォアグラウンドは、ユーザが操作できるインタラクティブインターフェースを提供し、バックグラウンドは、データ論理機能及び記憶を提供する。このようなシステムにおいて、如何に取り消し又はやり直しを実現するとともに、フォアグラウンドとバックグラウンドのデータの同期を保証するか、及び、プロセス設定システムが単一の機能モジュールの変更が複数の機能モジュールの変更を引き起こす場合に、如何にユーザがトリガした操作の取り消し又はやり直しを実現するかは、いずれも現在の研究のホットトピックである。本発明の実施例により提供されるモジュール処理方法は、上記2つの技術を実現することができ、具体的な実現方式は、後続の実施例で詳細に説明する。 In a foreground/background separated system, the foreground provides an interactive interface that users can operate, and the background provides data logic functions and storage. In such a system, how to realize undo or redo while ensuring synchronization of foreground and background data, and how to realize undo or redo of user-triggered operations when the process configuration system allows a change in a single functional module to cause changes in multiple functional modules are all hot topics of current research. The module processing method provided by the embodiment of the present invention can realize the above two techniques, and the specific implementation method will be described in detail in the subsequent embodiment.
図1は、本発明の実施例により提供されるフォアグラウンドとバックグラウンドの分離システムのアーキテクチャ概略図である。図1に示すように、該フォアグラウンドとバックグラウンドの分離システムはフォアグラウンドとバックグラウンドとを含む。 Figure 1 is an architectural schematic diagram of a foreground and background separation system provided by an embodiment of the present invention. As shown in Figure 1, the foreground and background separation system includes a foreground and a background.
ここで、フォアグラウンドにより提供されるインタラクティブインターフェースには、モジュール1とモジュール2、及びモジュール1とモジュール2との間の接続関係が表示される。同時に、モジュール1は具体的な表示方式に基づいて表示され、モジュール2も具体的な表示方式に基づいて表示される。図1には、モジュール2の表示方式が例示され、該表示方式は、具体的に、モジュール2の左上隅の位置座標が(200、300)であることと、モジュール2の高さ(height)が30であることと、モジュール2の幅(width)が90であることと、モジュール2の色(color)がオレンジであることを含む。
Here, the interactive interface provided by the
上記モジュール1とモジュール2の表示方式はフォアグラウンドデータと呼ばれ得る。ここで、フォアグラウンドデータは、インターフェースデータとも呼ばれる。
The display methods of the
バックグラウンドは、具体的な論理機能を提供する。図1に示すように、バックグラウンドには、以下のコードが記憶されている。
(プロセス0:
モジュール1の機能データ
モジュール2の機能データ
接続関係:モジュール1がモジュール2を指す)。
The background provides the concrete logical functions. As shown in Figure 1, the following codes are stored in the background:
(Process 0:
Functional data of
該コードが示す意味は、フォアグラウンドに表示されるのは1つのフローチャートであり、該フローチャートは2つの機能モジュールを含み、それぞれモジュール1及びモジュール2であり、接続関係はモジュール1がモジュール2を指すことであり、即ち、モジュール1の出力は、モジュール2の入力である。
What this code means is that what is displayed in the foreground is one flowchart, which contains two functional modules,
上記コードにおけるモジュール1の機能データは、モジュール1の内部実行ロジックを示し、該内部実行ロジックはモジュール1の入力に基づいてどのようにモジュール1の出力を得るかを示すために用いられる。モジュール2の機能データは、モジュール2の内部実行ロジックを示し、該内部実行ロジックはモジュール2の入力に基づいてどのようにモジュール2の出力を得るかを示すために用いられる。上記コードは、通常、バックグラウンドデータと呼ばれ、即ち、本発明の実施例では、バックグラウンドデータは、フォアグラウンドのインタラクティブインターフェースに表示される複数のモジュールのうちの各モジュールの機能データ及び複数のモジュール間の論理関係を示す。ここで、バックグラウンドデータは基礎データ(underlying data)とも呼ばれ、バックグラウンドは基礎層(underlying layer)とも呼ばれる。
The function data of
図1に示すように、フォアグラウンドのインタラクティブインターフェースに2つのモジュールが配置され、ここで、モジュール2の左上隅は座標(200、300)にあり、幅は90であり、高さは30であり、色はオレンジである。バックグラウンドはモジュール間の論理関係及び各モジュールの機能データを記憶する。モジュール2が削除される場合、バックグラウンドにとって、バックグラウンドデータからモジュール2の機能データが減るだけでなく、接続関係も1つ減ることになる。取り消し操作を行う場合、バックグラウンドでモジュール2の機能データ、及びモジュール2とモジュール1との間の接続関係を復元する必要があることに加えて、削除操作の前の状態に完全に復元するためにフォアグラウンドのインタラクティブインターフェースにおける位置、長さ、幅、色も復元しなければならない。
As shown in Figure 1, two modules are placed in the foreground interactive interface, where the upper left corner of module 2 is at coordinates (200, 300), the width is 90, the height is 30, and the color is orange. The background stores the logical relationships between the modules and the function data of each module. If module 2 is deleted, for the background, not only will the function data of module 2 be reduced from the background data, but one connection relationship will also be reduced. When performing the undo operation, in addition to needing to restore the function data of module 2 and the connection relationship between module 2 and
このようなシナリオにおいて、フォアグラウンドデータをフォアグラウンドに記憶し、バックグラウンドデータをバックグラウンドに記憶すると、削除操作を取り消す際に、フォアグラウンドでフォアグラウンドデータを、バックグラウンドで機能データと論理関係をそれぞれ復元する必要があり、このように、フォアグラウンドとバックグラウンドのデータの不整合を招きやすい。従って、本発明の実施例では、全てのデータを唯一のセンターに記憶するように設定し、該センターはバックグラウンドである。このように、フォアグラウンドデータもバックグラウンドに記憶され、取り消す際には、バックグラウンドに記憶されたデータを復元し、フォアグラウンドがバックグラウンドからフォアグラウンドデータを取得すればよい。即ち、フォアグラウンドは、バックグラウンドからフォアグラウンドデータを取得して表示するだけに用いられ、データの記憶を行わないため、データの不整合が生じる可能性があるという問題を解決する。本発明の実施例では、フォアグラウンドデータ及びバックグラウンドデータがいずれもバックグラウンドに記憶されているため、後の説明の便宜上、バックグラウンドに記憶されたデータをモジュールデータと総称する。即ち、モジュールデータは、フォアグラウンドデータとバックグラウンドデータとを含む。具体的には、いずれかのモジュールのモジュールデータは、該モジュールの表示方式、該モジュールの機能データ及び該モジュールと各他のモジュールとの間の論理関係を含む。 In such a scenario, if the foreground data is stored in the foreground and the background data is stored in the background, when canceling the delete operation, the foreground data and the functional data and the logical relationship must be restored in the foreground and in the background, respectively, which is likely to cause inconsistency between the foreground and background data. Therefore, in the embodiment of the present invention, all data is set to be stored in a single center, which is the background. In this way, the foreground data is also stored in the background, and when canceling, the data stored in the background is restored, and the foreground retrieves the foreground data from the background. That is, the foreground is only used to retrieve and display the foreground data from the background, and does not store data, which solves the problem that data inconsistency may occur. In the embodiment of the present invention, since both the foreground data and the background data are stored in the background, for the convenience of the following explanation, the data stored in the background is collectively referred to as module data. That is, the module data includes foreground data and background data. Specifically, the module data of any module includes the display method of the module, the functional data of the module, and the logical relationship between the module and each of the other modules.
なお、図1に示すフォアグラウンドとバックグラウンドの分離システムは一例に過ぎず、本発明の実施例に係るフォアグラウンドとバックグラウンドの分離システムを限定するものではない。 Note that the foreground/background separation system shown in FIG. 1 is merely an example and does not limit the foreground/background separation system according to an embodiment of the present invention.
図2は、本発明の実施例により提供されるフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法のフローチャートである。該方法はフォアグラウンドとバックグラウンドとを含むフォアグラウンドとバックグラウンドの分離システムに適用される。フォアグラウンドにはインタラクティブインターフェースが表示され、インタラクティブインターフェースは複数のモジュールを表示するために用いられる。バックグラウンドにはデータセンターが配置され、該データセンターは複数のモジュールのうちの各モジュールのモジュールデータを記憶するために用いられ、いずれかのモジュールのモジュールデータは、該モジュールの表示方式、該モジュールの機能データ及び該モジュールと各他のモジュールとの間の論理関係を含む。具体的には、図2に示すように、該方法は以下のステップを含む。 Figure 2 is a flow chart of a module processing method for a foreground/background separation system provided by an embodiment of the present invention. The method is applied to a foreground/background separation system including a foreground and a background. An interactive interface is displayed in the foreground, and the interactive interface is used to display a plurality of modules. A data center is disposed in the background, and the data center is used to store module data of each module among the plurality of modules, and the module data of any module includes a display method of the module, function data of the module, and a logical relationship between the module and each of the other modules. Specifically, as shown in Figure 2, the method includes the following steps:
ステップ201において、目標モジュールに対する目標操作に応答して、フォアグラウンドが目標操作に基づいて、バックグラウンドがデータセンターにおける目標モジュールに対応するデータを更新するように制御し、フォアグラウンドが更新後の目標モジュールに対応するデータに基づいてインタラクティブインターフェースを更新し、目標モジュールは、複数のモジュールのうちの1つ又は複数のモジュールであり、目標操作は、目標モジュールに対する任意の操作である。
In
ここで、目標モジュールに対応するデータは、データセンターにおける目標モジュールのモジュールデータ、及び他のモジュールのモジュールデータにおける目標モジュールに関連するデータを含み、これについて後に詳しく説明し、ここでは説明しない。 Here, the data corresponding to the target module includes the module data of the target module in the data center and data related to the target module in the module data of other modules, which will be described in more detail later and will not be described here.
上記目標操作は、目標モジュールに対する削除操作であってもよく、目標モジュールに対する追加操作であってもよく、又は目標モジュールの表示色などの属性に対する変更操作であってもよい。ここで、削除操作とは、具体的に、インタラクティブインターフェースに表示される目標モジュールを削除することを指し、追加操作とは、具体的に、インタラクティブインターフェースに目標モジュールを追加することを指す。 The above-mentioned target operation may be a delete operation on the target module, an add operation on the target module, or a change operation on an attribute of the target module, such as its display color. Here, the delete operation specifically refers to deleting a target module displayed in the interactive interface, and the add operation specifically refers to adding a target module to the interactive interface.
例示的に、目標操作が目標モジュールに対する削除操作である場合、ステップ201は具体的に、フォアグラウンドが目標操作に基づいて、バックグラウンドがデータセンターにおける目標モジュールのモジュールデータ、及び他のモジュールのモジュールデータにおける目標モジュールに関連するデータを削除するように制御し、データが削除されたデータセンターに基づいてインタラクティブインターフェースを再表示することを指す。 Exemplarily, when the target operation is a delete operation on the target module, step 201 specifically refers to controlling the foreground to delete the module data of the target module in the data center and the data related to the target module in the module data of other modules based on the target operation, and redisplaying the interactive interface based on the data center from which the data is deleted.
別の例として、目標操作が目標モジュールに対する追加操作である場合、ステップ201は、具体的に、フォアグラウンドが目標操作に基づいて、バックグラウンドがデータセンターに目標モジュールのモジュールデータを追加して他のモジュールのモジュールデータに目標モジュールに関連するデータを追加するように制御し、データが追加されたデータセンターに基づいてインタラクティブインターフェースを再表示することを指す。 As another example, when the target operation is an add operation for a target module, step 201 specifically refers to controlling the foreground to add module data of the target module to a data center and add data related to the target module to the module data of other modules based on the target operation, and redisplaying the interactive interface based on the data center to which the data is added.
1つの可能な実施形態では、インタラクティブインターフェースには、モジュール削除コントロール及びモジュール追加コントロールが表示され、フォアグラウンドが、該モジュール削除コントロール及びモジュール追加コントロールに対するユーザの選択操作を検出すると、目標モジュールに対する目標操作を検出したと決定してもよく、この時、ステップ201により目標操作を実行することができる。
In one possible embodiment, the interactive interface displays a module remove control and a module add control, and when the foreground detects a user selection operation on the module remove control and module add control, it may determine that a target operation on a target module has been detected, at which point the target operation can be executed by
フォアグラウンドは、該目標操作を検出した後、目標操作に基づいて、バックグラウンドを制御してデータセンターにおける目標モジュールに対応するデータを更新し、更新後のデータセンターにおける目標モジュールに対応するデータに基づいて、インタラクティブインターフェースを更新することにより、インタラクティブインターフェース、フォアグラウンドとバックグラウンドのデータの一致性を実現する。 After detecting the target operation, the foreground controls the background based on the target operation to update the data corresponding to the target module in the data center, and updates the interactive interface based on the updated data corresponding to the target module in the data center, thereby achieving consistency of the interactive interface, foreground and background data.
上記目標モジュールに対応するデータは、目標モジュールのモジュールデータ、及び他のモジュールのモジュールデータにおける目標モジュールに関連するデータを含む。ここで、目標モジュールのモジュールデータは、目標モジュールの機能データ、目標モジュールの表示方式、及び目標モジュールと各他のモジュールとの間の論理関係を含む。目標モジュールの機能データは、目標モジュールの内部実行ロジックを示し、該内部実行ロジックは、目標モジュールの入力に基づいてどのように目標モジュールの出力を得るかを示す。目標モジュールの表示方式は、例えば、目標モジュールの表示位置、表示サイズ、表示色などを含む。各他のモジュールのモジュールデータにおける目標モジュールに関連するデータは、該他のモジュールと目標モジュールとの間の論理関係を含む。 The data corresponding to the target module includes module data of the target module and data related to the target module in the module data of the other modules. Here, the module data of the target module includes functional data of the target module, a display method of the target module, and a logical relationship between the target module and each other module. The functional data of the target module indicates the internal execution logic of the target module, and the internal execution logic indicates how to obtain an output of the target module based on an input of the target module. The display method of the target module includes, for example, a display position, a display size, a display color, etc. of the target module. The data related to the target module in the module data of each other module includes a logical relationship between the other module and the target module.
1つの可能な実施形態では、目標モジュールと各他のモジュールとの間の論理関係は、目標モジュールと他のモジュールとの間の接続関係を含む。該接続関係は、インタラクティブインターフェース上の目標モジュールと該他のモジュールとの間の接続線関係を示し、該接続線関係は、具体的に、フローチャートの実行プロセスにおける目標モジュールと該他のモジュールとの間の実行順序を示す。例えば、目標モジュールが図1に示すモジュール1であり、他のモジュールがモジュール2である場合、目標モジュールと他のモジュールとの接続関係は、まずモジュール1の内部実行ロジックを実行し、次にモジュール2の内部実行ロジックを実行することを示すものであってもよい。
In one possible embodiment, the logical relationship between the goal module and each other module includes a connection relationship between the goal module and the other modules. The connection relationship indicates a connection line relationship between the goal module and the other modules on the interactive interface, and the connection line relationship specifically indicates the execution order between the goal module and the other modules in the execution process of the flowchart. For example, if the goal module is
図3は、本発明の実施例により提供されるフローチャートの概略図であり、フォアグラウンドとバックグラウンドの分離システムがプロセス設定システムである場合、フォアグラウンドで見られるフローチャートは、通常、図3に示される。図3に示すフローチャートにおける各モジュール間の接続関係は、実行順序のみを表し、モジュールとモジュールとの間にデータ交換があり、前のモジュールの出力は、後のモジュールの入力又はパラメータとして演算に参加する必要があり、そうでなければ、このプロセスは意味がない。入出力とモジュール自体のパラメータを加えると、実際のフローチャートは図3に示すフローチャートより複雑になる。 Figure 3 is a schematic diagram of a flowchart provided by an embodiment of the present invention. When the foreground and background separation system is a process setting system, the flowchart seen in the foreground is usually shown in Figure 3. The connection relationship between each module in the flowchart shown in Figure 3 represents only the execution order, and there is data exchange between modules, and the output of the previous module must participate in the operation as the input or parameter of the subsequent module, otherwise this process is meaningless. When inputs and outputs and parameters of the modules themselves are added, the actual flowchart will be more complicated than the flowchart shown in Figure 3.
図4は、本発明の実施例により提供される別のフローチャートの概略図である。図4に示すように、モジュールとモジュールとの間には、接続関係に加えて、内部の複雑なパラメータ、入力、出力の間の購読関係がある。例えば、あるモジュールの内部パラメータは、実行順序における前のモジュールの出力であってもよく、該モジュールの出力は、実行順序における次のモジュールの内部パラメータであってもよく、又は、あるモジュールの出力は、実行順序における次のモジュールの入力であってもよい。即ち、あるモジュールは、前のあるモジュールの入力又は出力を購読する可能性がある。従って、フローチャートは非常に複雑な単方向ネットワークである。あるモジュールを削除する時、モジュール自身に影響するだけでなく、フローチャートにおける全ての後続モジュールとそれ、及びその先行モジュールとの購読関係にも影響する。 Figure 4 is a schematic diagram of another flowchart provided by an embodiment of the present invention. As shown in Figure 4, in addition to the connection relationships between modules, there are subscription relationships between internal complex parameters, inputs, and outputs. For example, the internal parameters of a module may be the output of a previous module in the execution order, and the output of the module may be the internal parameters of a next module in the execution order, or the output of a module may be the input of a next module in the execution order. That is, a module may subscribe to the input or output of a previous module. Therefore, a flowchart is a very complex unidirectional network. When a module is deleted, it not only affects the module itself, but also affects the subscription relationships between all subsequent modules in the flowchart and it and its predecessor modules.
従って、別の1つの可能な実施形態では、目標モジュールと各他のモジュールとの間の論理関係は、上記目標モジュールと該他のモジュールとの間の接続関係に加えて、目標モジュールと該他のモジュールとの間の購読関係をさらに含み得る。該購読関係は、目標モジュールの内部パラメータ、入力のうちの少なくとも1つと該他のモジュールの出力との間の関連関係、及び/又は、目標モジュールの出力と該他のモジュールの内部パラメータ、入力のうちの少なくとも1つとの間の関連関係、及び/又は、目標モジュールの入力と該他のモジュールの出力との間の関連関係を示す。 Thus, in another possible embodiment, the logical relationship between the goal module and each other module may further include a subscription relationship between the goal module and the other module in addition to the connection relationship between the goal module and the other module. The subscription relationship indicates an association relationship between at least one of the internal parameters, inputs of the goal module and the output of the other module, and/or an association relationship between the output of the goal module and at least one of the internal parameters, inputs of the other module, and/or an association relationship between the input of the goal module and the output of the other module.
即ち、本発明の実施例では、いずれかのモジュールについて、該モジュールと該他のモジュールとの間の論理関係は、該モジュールと該他のモジュールとの間の接続関係、及び該モジュールと該他のモジュールとの間の購読関係を含む。該接続関係は、表示インターフェース上の該モジュールと該他のモジュールとの間の接続線関係を示す。購読関係は、該モジュールの内部パラメータと該他のモジュールの出力との間の関連関係、及び/又は、該モジュールの出力と該他のモジュールの内部パラメータとの間の関連関係、及び/又は、該モジュールの出力と該他のモジュールの入力との間の関連関係、及び/又は、該モジュールの入力と該他のモジュールの出力との間の関連関係を示す。即ち、購読関係は、該モジュールの内部パラメータ、入力のうちの少なくとも1つと該他のモジュールの出力との間の関連関係、及び/又は、該モジュールの出力と該他のモジュールの内部パラメータ、入力のうちの少なくとも1つとの間の関連関係を示す。 That is, in an embodiment of the present invention, for any module, the logical relationship between the module and the other module includes a connection relationship between the module and the other module, and a subscription relationship between the module and the other module. The connection relationship indicates a connection line relationship between the module and the other module on a display interface. The subscription relationship indicates an association relationship between an internal parameter of the module and an output of the other module, and/or an association relationship between an output of the module and an input of the other module, and/or an association relationship between an input of the module and an output of the other module. That is, the subscription relationship indicates an association relationship between at least one of the internal parameters or inputs of the module and the output of the other module, and/or an association relationship between the output of the module and at least one of the internal parameters or inputs of the other module.
なお、各モジュールの内部パラメータは、1つであってもよいし、複数であってもよい。また、各モジュールの出力は1つ又は複数であってもよいし、各モジュールの入力は1つ又は複数であってもよい。上記関連関係は、上位概念的な関連関係であり、具体的な1つのパラメータと他の具体的なパラメータとの間の関連関係を含んでもよく、複数のパラメータのそれぞれと他のパラメータとの間の関連関係を含んでもよい。例えば、目標モジュールの内部パラメータと他のモジュールの出力との間の関連関係とは、他のあるモジュールの1つの出力が目標モジュールの1つの内部パラメータであること、又は、他のあるモジュールの2つの出力がそれぞれ目標モジュールの2つの内部パラメータであること、又は、他の2つのモジュールのそれぞれの1つの出力がそれぞれ目標モジュールの2つの内部パラメータのうちの1つであることであってもよい。上記は単なる例に過ぎず、本発明の実施例に係る関連関係を限定するものではない。 Note that the number of internal parameters of each module may be one or more. Also, the number of outputs of each module may be one or more, and the number of inputs of each module may be one or more. The above-mentioned association relationship is a higher-level association relationship, and may include an association relationship between one specific parameter and another specific parameter, or may include an association relationship between each of the multiple parameters and another parameter. For example, the association relationship between the internal parameter of the target module and the output of the other module may be that one output of another module is one internal parameter of the target module, or that two outputs of another module are two internal parameters of the target module, or that one output of each of the two other modules is one of the two internal parameters of the target module. The above is merely an example, and does not limit the association relationship according to the embodiment of the present invention.
ステップ202において、目標操作に対する取り消し命令が検出された場合、フォアグラウンドが取り消し命令に基づいて、バックグラウンドがデータセンターにおける目標モジュールに対応するデータを復元するように制御し、フォアグラウンドが復元後の目標モジュールに対応するデータに基づいて、インタラクティブインターフェースを更新する。
In
1つの可能な実施形態において、インタラクティブインターフェースには取り消し操作コントロールが表示され、フォアグラウンドが該取り消し操作コントロールに対するユーザの選択操作を検出すると、目標操作に対する取り消し命令を検出したと決定してもよく、この場合、ステップ202により目標操作に対する取り消しプロセスを実行することができる。
In one possible embodiment, the interactive interface displays an undo operation control, and when the foreground detects a user selection operation on the undo operation control, it may determine that an undo command for the target operation has been detected, in which case an undo process for the target operation may be performed by
目標操作が目標モジュールに対する削除操作である場合、上記ステップ202は具体的に、フォアグラウンドが取り消し命令に基づいて、バックグラウンドがデータセンターに目標モジュールに対応するデータを再追加するように制御することを指す。
When the target operation is a delete operation for the target module, the
目標操作が目標モジュールに対する追加操作である場合、上記ステップ202は具体的に、フォアグラウンドが取り消し命令に基づいて、バックグラウンドがデータセンターから目標モジュールに対応するデータを削除するように制御することを指す。
When the target operation is an add operation to the target module, the
本発明の実施例では、ステップ201及びステップ202は、具体的には、フォアグラウンドを操作中心としてもよいし、バックグラウンドを操作中心としてもよい。ここで、フォアグラウンドを中心とするとは、フォアグラウンドで目標操作を実行する各具体的な操作を記録することを指し、バックグラウンドを中心とするとは、バックグラウンドで目標操作を実行する各具体的な操作を記録することを指し、つまり、両者の違いは、具体的な操作を記録するファイルがフォアグラウンドに保存されるかバックグラウンドに保存されるかである。以下、2つの実現方式に分けてそれぞれ説明する。
In an embodiment of the present invention,
(1)フォアグラウンドを中心とする (1) Focus on the foreground
この場合、上記ステップ201の実現プロセスは、フォアグラウンドが目標操作に基づいて、バックグラウンドに1つ又は複数の第1のデータ更新命令を送信し、1つ又は複数の第1のデータ更新命令のうちのいずれか1つの第1のデータ更新命令は、バックグラウンドに、前記目標モジュールに対応するデータのうちの一部のデータを更新するように指示するために用いられ、フォアグラウンドが該1つ又は複数の第1のデータ更新命令の送信に基づいて操作記録を生成することであってもよい。
In this case, the implementation process of
例えば、目標操作がモジュール削除又はモジュール追加である場合、フォアグラウンドがバックグラウンドに第1の論理関係更新命令及び第1のモジュール更新命令を送信し、第1の論理関係更新命令及び第1のモジュール更新命令を送信する操作記録を生成する。第1の論理関係更新命令は、バックグラウンドに、目標操作に基づいてデータセンターの各他のモジュールのモジュールデータにおける該他のモジュールと目標モジュールとの論理関係を更新するように指示するために用いられ、第1のモジュール更新命令は、バックグラウンドに、目標操作に基づいてデータセンターにおける目標モジュールのモジュールデータを更新するように指示するために用いられる。 For example, if the target operation is a module deletion or a module addition, the foreground sends a first logical relationship update command and a first module update command to the background, and generates an operation record for sending the first logical relationship update command and the first module update command. The first logical relationship update command is used to instruct the background to update the logical relationship between the other modules and the target module in the module data of each other module in the data center based on the target operation, and the first module update command is used to instruct the background to update the module data of the target module in the data center based on the target operation.
なお、上記操作記録は、各第1のデータ更新命令の送信順序、及び各命令によって指示されたデータ変更状況を示すために用いられる。 The operation record is used to indicate the order in which each first data update command was sent and the data change status indicated by each command.
この場合、上記ステップ202の実現プロセスは、フォアグラウンドが操作記録によって指示された目標操作の逆操作に基づいて、バックグラウンドに1つ又は複数の第2のデータ更新命令を送信し、1つ又は複数の第2のデータ更新命令のうちのいずれか1つの第2のデータ更新命令は、バックグラウンドに、各他のモジュールのモジュールデータにおける該他のモジュールと目標モジュールとの間の論理関係を目標操作が実行される前の状態に復元するように指示するか、又は目標モジュールのモジュールデータを目標操作が実行される前の状態に復元するように指示するために用いられることであってもよい。
In this case, the realization process of
例えば、目標操作がモジュール削除又はモジュール追加であるシナリオでは、フォアグラウンドは、操作記録によって指示された目標操作の逆操作に基づいてバックグラウンドに第2の論理関係更新命令及び第2のモジュール更新命令を送信する。第2の論理関係更新命令は、バックグラウンドに、データセンターの各他のモジュールのモジュールデータにおける目標モジュールと該他のモジュールとの間の論理関係を目標操作が実行される前の状態に復元するように指示するために用いられ、第2のモジュール更新命令は、バックグラウンドに、データセンターにおける目標モジュールのモジュールデータを目標操作が実行される前の状態に復元するように指示するために用いられ、これにより、この後、フォアグラウンドがバックグラウンドから更新後の目標モジュールに対応するデータを取得し、更新後の目標モジュールに対応するデータに基づいてインタラクティブインターフェースを更新することができる。 For example, in a scenario where the target operation is a module deletion or a module addition, the foreground sends a second logical relationship update command and a second module update command to the background based on the inverse operation of the target operation indicated by the operation record. The second logical relationship update command is used to instruct the background to restore the logical relationship between the target module and each other module in the module data of the other modules in the data center to the state before the target operation was executed, and the second module update command is used to instruct the background to restore the module data of the target module in the data center to the state before the target operation was executed, so that the foreground can then obtain data corresponding to the updated target module from the background and update the interactive interface based on the data corresponding to the updated target module.
具体的に、目標操作が目標モジュールに対する削除操作である場合、目標操作を実行する時、フォアグラウンドは、バックグラウンドにまず第1の論理関係更新命令を送信し、次に第1のモジュール更新命令を送信する。このように、バックグラウンドがまず各他のモジュールのモジュールデータにおける目標モジュールと該他のモジュールとの間の論理関係を削除し、次に目標モジュールのモジュールデータを削除するように制御することができ、まず第1の論理関係更新命令を送信し、次に第1のモジュール更新命令を送信する操作記録を生成する。目標操作を取り消す場合、上記操作記録によって指示された目標操作の逆操作に基づいて、フォアグラウンドは、バックグラウンドにまず第2のモジュール更新命令を送信し、次に第2の論理関係更新命令を送信する。このように、バックグラウンドがまずデータセンターにおける目標モジュールのモジュールデータを復元し、次に各他のモジュールのモジュールデータにおける目標モジュールと該他のモジュールとの間の論理関係を復元するように制御することができる。 Specifically, when the target operation is a delete operation on the target module, when executing the target operation, the foreground first sends a first logical relationship update command to the background, and then sends a first module update command. In this way, the background can be controlled to first delete the logical relationship between the target module and the other modules in the module data of each other module, and then delete the module data of the target module, and generate an operation record of first sending the first logical relationship update command and then sending the first module update command. When canceling the target operation, based on the reverse operation of the target operation indicated by the operation record, the foreground first sends a second module update command to the background, and then sends a second logical relationship update command. In this way, the background can be controlled to first restore the module data of the target module in the data center, and then restore the logical relationship between the target module and the other modules in the module data of each other module.
同様に、目標操作が目標モジュールに対する追加操作である場合、目標操作を実行する時、フォアグラウンドは、バックグラウンドにまず第1のモジュール更新命令を送信し、次に第1の論理関係更新命令を送信する。このように、バックグラウンドがまずデータセンターに目標モジュールのモジュールデータを追加し、次にデータセンターの各他のモジュールのモジュールデータに目標モジュールと該他のモジュールとの間の論理関係を追加するように制御することができ、まず第1のモジュール更新命令を送信し、次に第1の論理関係更新命令を送信する操作記録を生成する。目標操作を取り消す場合、前記操作記録によって指示された目標操作の逆操作に基づいて、フォアグラウンドは、バックグラウンドにまず第2の論理関係更新命令を送信し、次に第2のモジュール更新命令を送信する。このように、バックグラウンドがまずデータセンターの各他のモジュールのモジュールデータにおける目標モジュールと該他のモジュールとの間の論理関係を削除し、次にデータセンターにおける目標モジュールのモジュールデータを削除するように制御することができる。 Similarly, if the target operation is an add operation for the target module, when executing the target operation, the foreground first sends a first module update command to the background, and then sends a first logical relationship update command. In this way, the background can be controlled to first add module data of the target module to the data center, and then add logical relationships between the target module and the other modules to the module data of each other module in the data center, and generate an operation record that first sends a first module update command and then sends a first logical relationship update command. When canceling the target operation, based on the reverse operation of the target operation indicated by the operation record, the foreground first sends a second logical relationship update command to the background, and then sends a second module update command. In this way, the background can be controlled to first delete the logical relationships between the target module and the other modules in the module data of each other module in the data center, and then delete the module data of the target module in the data center.
上記の順序で命令を送信する目的は、フォアグラウンドが目標操作を取り消す際に、完全に目標操作の逆操作に基づいて実現することができ、目標操作が実行される前の状態に戻れなくなることを避けるためである。 The purpose of sending commands in the above order is to allow the foreground to cancel the target operation based entirely on the inverse of the target operation, avoiding the inability to return to the state before the target operation was executed.
例えば、目標操作が図1に示すモジュール2に対する削除操作である場合、フォアグラウンドを中心とすると、ステップ201及びステップ202の具体的なプロセスは以下の通りである。
For example, if the target operation is a delete operation on module 2 shown in FIG. 1, the specific process of
目標操作を実行する時、以下のいくつかのプロセスを含む。 When performing a target operation, several processes are involved:
1)フォアグラウンドはバックグラウンドにモジュールデータ取得命令を送信し、フォアグラウンドはバックグラウンドから送信された目標モジュールに対応するデータを受信し、該目標モジュールに対応するデータは目標モジュールのモジュールデータ、及び各他のモジュールのモジュールデータにおける目標モジュールに関連するデータを含む。 1) The foreground sends a module data acquisition command to the background, and the foreground receives data corresponding to the target module sent from the background, and the data corresponding to the target module includes the module data of the target module and data related to the target module in the module data of each other module.
2)フォアグラウンドは、取得された目標モジュールに対応するデータを分析し、目標モジュールを削除するために、まず各他のモジュールのモジュールデータにおける目標モジュールと該他のモジュールとの間の論理関係を削除し、次に目標モジュールのモジュールデータを削除する必要があると決定する。該分析結果に基づいて、フォアグラウンドはバックグラウンドに接続線削除命令を送信し、即ち、上記第1の論理関係更新命令を送信して、データセンターにおける該他のモジュールのモジュールデータにおける目標モジュールと該他のモジュールとの間の論理関係を削除するようにバックグラウンドに指示し、該第1の論理関係更新命令の送信に対応する操作記録を生成し、後続の説明の便宜上、該操作記録を第1の操作記録と称する。ここで、バックグラウンドは、論理関係を削除する際に、まず目標モジュールに関連する接続データを他の記憶場所にバックアップし、即ち、目標モジュールと各他のモジュールとの間の論理関係をバックアップしてから、バックグラウンドデータにおける目標モジュールに関連する接続データを削除することにより、削除されたデータを後で迅速に復元できるようにする。 2) The foreground analyzes the acquired data corresponding to the target module, and determines that in order to delete the target module, it is necessary to first delete the logical relationship between the target module and the other modules in the module data of each other module, and then delete the module data of the target module. Based on the analysis result, the foreground sends a connection line deletion command to the background, i.e., sends the above-mentioned first logical relationship update command to instruct the background to delete the logical relationship between the target module and the other modules in the module data of the other modules in the data center, and generates an operation record corresponding to the sending of the first logical relationship update command, and for the convenience of the following description, the operation record is referred to as the first operation record. Here, when deleting the logical relationship, the background first backs up the connection data related to the target module to another storage location, i.e., backs up the logical relationship between the target module and each other module, and then deletes the connection data related to the target module in the background data, so that the deleted data can be quickly restored later.
3)フォアグラウンドは、バックグラウンドにモジュール削除命令を送信し、即ち、上記第1のモジュール更新命令を送信して、目標モジュールのモジュールデータを削除するようにバックグラウンドに指示し、該第1のモジュール更新命令の送信に対応する操作記録を生成し、後続の説明の便宜上、該操作記録を第2の操作記録と称する。ここで、バックグラウンドは、目標モジュールのモジュールデータを削除する際に、バックグラウンドが目標モジュールのモジュールデータを他の記憶場所にバックアップしてから、バックグラウンドデータにおける目標モジュールのモジュールデータを削除することにより、削除されたデータを後で迅速に復元できるようにする。 3) The foreground sends a module deletion command to the background, i.e., sends the above-mentioned first module update command to instruct the background to delete the module data of the target module, and generates an operation record corresponding to the sending of the first module update command, which is referred to as a second operation record for the convenience of the following explanation. Here, when deleting the module data of the target module, the background backs up the module data of the target module to another memory location and then deletes the module data of the target module in the background data, so that the deleted data can be quickly restored later.
目標操作を取り消す場合、以下のいくつかのプロセスを含む。 Canceling a target operation involves several processes:
1)第1の操作記録は第2の操作記録の前に生成されるため、上記目標操作の逆操作を実現するために、フォアグラウンドはまず第2の操作記録に基づいてバックグラウンドにモジュールインポート命令を送信し、即ち、上記第2のモジュール更新命令を送信して、バックグラウンドにデータセンターに目標モジュールのモジュールデータを追加するように指示する。 1) Because the first operation record is generated before the second operation record, in order to realize the inverse operation of the above target operation, the foreground first sends a module import command to the background based on the second operation record, i.e., sends the above second module update command, instructing the background to add the module data of the target module to the data center.
2)その後、フォアグラウンドは、第1の操作記録に基づいて、バックグラウンドにモジュール1とモジュール2の接続構築命令を送信し、即ち、上記第2の論理関係更新命令を送信して、バックグラウンドにデータセンターの各他のモジュールのモジュールデータに目標モジュールと該他のモジュールとの間の論理関係を追加するように指示する。
2) Then, based on the first operation record, the foreground sends a connection establishment command between
3)フォアグラウンドは、バックグラウンドから、目標モジュールのモジュールデータにおける目標モジュールの表示方式であるモジュールインターフェースデータを取得し、取得された表示方式に基づいて、インタラクティブインターフェースに目標モジュールを再表示する。 3) The foreground retrieves from the background module interface data, which is the display format of the goal module in the module data of the goal module, and redisplays the goal module in the interactive interface based on the retrieved display format.
上記プロセス全体は、フォアグラウンドが主導するもので、バックグラウンドが受動的に応答して、データ取得、インポートのための基本インターフェースを提供する。 The entire process above is driven by the foreground, with the background responding passively and providing the basic interface for data acquisition and import.
現時点では、フォアグラウンドからバックグラウンドへの命令の送信は、バックグラウンドのインターフェースを呼び出すことによって実現されるものであり、即ち、バックグラウンドは一連のインターフェースを提供する。フォアグラウンドが命令を送信する必要がある場合、バックグラウンドのあるインターフェースを呼び出して該命令を送信し、バックグラウンドがある具体的な操作を実行するように制御する。例えば、バックグラウンドが論理関係削除インターフェース及びモジュール削除インターフェースを提供し、このようなシナリオでは、目標操作がモジュール削除である場合、フォアグラウンドからバックグラウンドに送信された第1の論理関係更新命令は、該論理関係削除インターフェースを呼び出すことにより実現され得、フォアグラウンドからバックグラウンドに送信された第1のモジュール更新命令は、該モジュール削除インターフェースを呼び出すことにより実現され得る。 Currently, sending a command from the foreground to the background is realized by invoking an interface of the background, that is, the background provides a set of interfaces. When the foreground needs to send a command, it calls an interface of the background to send the command and controls the background to perform a specific operation. For example, the background provides a logical relationship deletion interface and a module deletion interface. In such a scenario, if the target operation is module deletion, the first logical relationship update command sent from the foreground to the background can be realized by invoking the logical relationship deletion interface, and the first module update command sent from the foreground to the background can be realized by invoking the module deletion interface.
上記フォアグラウンドを中心とする実現方式では、フォアグラウンドは、具体的な操作の手順や影響範囲について最もよく知っており、バックグラウンドはインターフェースのみを提供し、具体的な業務に関わる必要がないため、取り消しプロセスにおいてシステムがより安定しやすい。 In the above foreground-centric implementation method, the foreground is the one that knows best about the specific operation procedures and scope of impact, while the background only provides an interface and does not need to be involved in specific tasks, making the system more stable during the cancellation process.
(2)バックグラウンドを中心とする (2) Focus on the background
この場合、上記ステップ201の実現プロセスは、フォアグラウンドが目標操作に基づいてインタラクティブインターフェースを更新し、そしてフォアグラウンドがバックグラウンドに更新命令を送信し、該更新命令は、バックグラウンドに、目標操作に基づいてデータセンターの各他のモジュールのモジュールデータにおける該他のモジュールと目標モジュールとの間の論理関係、及びデータセンターにおける目標モジュールのモジュールデータを更新するように指示するために用いられることであってもよい。同時にバックグラウンドは上記の各操作に対応する操作記録を生成する。
In this case, the implementation process of the
それに応じて、上記ステップ202の実現プロセスは、フォアグラウンドがバックグラウンドに復元命令を送信し、該復元命令は、バックグラウンドに、ローカルに記憶された操作記録によって指示された目標操作の逆操作に基づいて、データセンターの各他のモジュールのモジュールデータにおける該他のモジュールと目標モジュールとの間の論理関係、及びデータセンターにおける目標モジュールのモジュールデータを、目標操作が実行される前の状態に復元するように指示するために用いられることであってもよい。フォアグラウンドは、バックグラウンドから更新後の目標モジュールのモジュールデータにおける表示方式を取得し、更新後の表示方式に基づいてインタラクティブインターフェースを更新する。
Accordingly, the implementation process of the
例えば、目標操作が図1に示すモジュール2に対する削除操作である場合、バックグラウンドを中心とすると、ステップ201及びステップ202の具体的なプロセスは以下の通りである。
For example, if the target operation is a delete operation on module 2 shown in FIG. 1, the specific process of
目標操作を実行する時、以下のいくつかのプロセスを含む。 When performing a target operation, several processes are involved:
1)フォアグラウンドは、モジュールクリーンアップ命令を検出すると、まずインタラクティブインターフェース上の目標モジュールを削除し、次にバックグラウンドに目標モジュールの識別子を含むモジュール削除命令を送信する。 1) When the foreground detects a module cleanup command, it first deletes the target module on the interactive interface, and then sends a module deletion command including the identifier of the target module to the background.
2)バックグラウンドは、モジュール削除命令を受信した後、まず各他のモジュールのモジュールデータにおける目標モジュールに関連する接続データを他の記憶場所にバックアップし、次にデータセンターにおける各他のモジュールのモジュールデータにおける目標モジュールに関連する接続データを削除し、該接続データの削除操作に対応する操作記録を生成し、第3の操作記録としてマークする。ここで、各他のモジュールのモジュールデータにおける目標モジュールに関連する接続データは、目標モジュールと該他のモジュールとの間の論理関係を示す。 2) After receiving a module deletion command, the background first backs up the connection data related to the target module in the module data of each other module to another storage location, then deletes the connection data related to the target module in the module data of each other module in the data center, generates an operation record corresponding to the deletion operation of the connection data, and marks it as a third operation record. Here, the connection data related to the target module in the module data of each other module indicates the logical relationship between the target module and the other module.
3)バックグラウンドが目標モジュールのモジュールデータを他の記憶場所にバックアップし、データセンターにおける目標モジュールのモジュールデータを削除し、該モジュールデータの削除操作に対応する操作記録を生成し、第4の操作記録としてマークする。 3) The background backs up the module data of the target module to another storage location, deletes the module data of the target module in the data center, generates an operation record corresponding to the deletion operation of the module data, and marks it as the fourth operation record.
目標操作を取り消す時、以下のいくつかのプロセスを含む。 When cancelling a target operation, several processes are involved:
1)フォアグラウンドはバックグラウンドに取り消し命令を送信する。 1) The foreground sends a cancel command to the background.
2)バックグラウンドが操作記録をクエリーし、上記第4の操作記録に基づいて、最後の操作がモジュールのモジュールデータを削除することを特定し、モジュールのモジュールデータの削除の逆操作を実行し、即ち、バックアップされたデータから目標モジュールのモジュールデータをデータセンターにインポートする。 2) The background queries the operation records, and based on the fourth operation record, determines that the last operation is to delete the module data of the module, and performs the inverse operation of deleting the module data of the module, i.e., imports the module data of the target module from the backed up data to the data center.
3)バックグラウンドが操作記録をクエリーし、上記第3の操作記録に基づいて、モジュールデータを削除する前の操作はモジュール接続データを削除することを特定し、モジュール接続データの削除の逆操作を実行し、即ち、バックアップされたデータから各他のモジュールのモジュールデータにおける目標モジュールに関連する接続データをデータセンターに追加する。 3) The background queries the operation records, and based on the third operation records, determines that the operation before deleting the module data is to delete the module connection data, and performs the reverse operation of deleting the module connection data, i.e., adds the connection data related to the target module in the module data of each other module from the backed up data to the data center.
4)バックグラウンドはフォアグラウンドに取り消しが完了したことを通知し、フォアグラウンドはバックグラウンドから最新の目標モジュールの表示方式を取得し、インタラクティブインターフェースを更新する。 4) The background notifies the foreground that the cancellation is complete, and the foreground retrieves the latest target module display state from the background and updates the interactive interface.
プロセス全体は、フォアグラウンドから送信される命令によって駆動され、バックグラウンドが全てのデータ記録及び逆操作を提供してデータの削除と復元を実現する。フォアグラウンドはデータのクエリー及び更新を行う。なお、上記フォアグラウンドを中心とする実現方式では、フォアグラウンドは、具体的な操作の手順や影響範囲について最もよく知っており、開発者が目標操作の実際の処理状況を常に把握し、目標操作の実際の処理状況を制御することに便利である。従って、本発明の実施例が適用される時、フォアグラウンドを中心とする実現方式を採用することが好ましい。 The whole process is driven by commands sent from the foreground, and the background provides all data recording and reverse operations to realize data deletion and restoration. The foreground queries and updates data. In addition, in the above foreground-centric implementation method, the foreground is most familiar with the specific operation procedures and scope of impact, which is convenient for developers to always grasp and control the actual processing status of the target operation. Therefore, when an embodiment of the present invention is applied, it is preferable to adopt the foreground-centric implementation method.
また、上記の目的モジュールに対応するデータを削除する実際の実現方式は、さまざまな方法が考えられる。図4に示すように、実際のフローチャートは非常に複雑であり、この場合、目標操作が目標モジュールに対する削除操作である場合、このような複雑な関係での取り消しややり直しに対応するために、比較的複雑な削除を行ってから取り消すシナリオに対して、2種類のポリシーがある。 In addition, there are various possible methods for actually deleting the data corresponding to the above-mentioned target module. As shown in Figure 4, the actual flowchart is very complicated. In this case, when the target operation is a delete operation on the target module, there are two types of policies for the scenario of performing a relatively complicated delete and then canceling it in order to deal with the cancellation and redoing in such a complicated relationship.
1)仮削除ポリシー。目標操作に基づいて目標モジュールを削除する際に、この目標モジュールのモジュールデータは削除マークが付けられるだけで、実際に削除せず、そして各他のモジュールと削除される目標モジュールとの間の論理関係をクリーンアップする。目標操作を取り消す際に、削除マークを除去し、データセンターにおける各他のモジュールと該目標モジュールとの間の論理関係を復元する。 1) Temporary deletion policy. When deleting a target module based on a target operation, the module data of the target module is only marked for deletion, but is not actually deleted, and the logical relationships between each other module and the deleted target module are cleaned up. When canceling the target operation, the deletion mark is removed, and the logical relationships between each other module in the data center and the target module are restored.
即ち、仮削除ポリシーでは、上記フォアグラウンドが目標操作に基づいてバックグラウンドに1つ又は複数の第1のデータ更新命令を順次送信する具体的な実現方式は、フォアグラウンドがバックグラウンドにまず第1の論理関係更新命令を送信し、次に第1のモジュール更新命令を送信した後、バックグラウンドが第1の論理関係更新命令を受信した時に、バックグラウンドが各他のモジュールのモジュールデータにおける該他のモジュールと目標モジュールとの間の論理関係を削除し、バックグラウンドが第1のモジュール更新命令を受信した時に、データセンターにおける目標モジュールのモジュールデータに削除マークを追加することであってもよい。 That is, in the provisional deletion policy, a specific implementation method in which the foreground sequentially sends one or more first data update commands to the background based on the target operation may be that the foreground first sends a first logical relationship update command to the background, then sends a first module update command, and then when the background receives the first logical relationship update command, the background deletes the logical relationship between the other module and the target module in the module data of each other module, and when the background receives the first module update command, a deletion mark is added to the module data of the target module in the data center.
それに応じて、フォアグラウンドが操作記録によって指示された目標操作の逆操作に基づいてバックグラウンドに1つ又は複数の第2のデータ更新命令を順次送信する具体的な実現方式は、操作記録によって指示された目標操作の逆操作に基づいて、フォアグラウンドがバックグラウンドにまず第2のモジュール更新命令を送信し、次に第2の論理関係更新命令を送信し、バックグラウンドが第2のモジュール更新命令を受信した時、目標モジュールのモジュールデータの削除マークを削除し、バックグラウンドが第2の論理関係更新命令を受信した時、各他のモジュールのモジュールデータに該他のモジュールと目標モジュールとの間の論理関係を追加することであってもよい。 Accordingly, a specific implementation manner of the foreground sequentially sending one or more second data update commands to the background based on the inverse operation of the target operation instructed by the operation record may be that the foreground first sends a second module update command to the background, and then sends a second logical relationship update command based on the inverse operation of the target operation instructed by the operation record, and when the background receives the second module update command, it deletes the deletion mark in the module data of the target module, and when the background receives the second logical relationship update command, it adds the logical relationship between the other module and the target module to the module data of each of the other modules.
2)エクスポート・インポートポリシー。目標操作に基づいて目標モジュールを削除する際に、この目標モジュールに対応するデータをエクスポートし、次に該目標モジュールに対応するデータをクリーンアップする。取り消す際に、該目標モジュールのモジュールデータをインポートし、前にエクスポートしたデータに基づいて各他のモジュールと該目標モジュールとの間の接続及び購読関係を復元する。即ち、データを削除する際に、まず関連するデータをエクスポートし、次にデータセンターにおける関連データを直接削除する。 2) Export-import policy. When deleting a goal module based on a goal operation, export the data corresponding to the goal module, and then clean up the data corresponding to the goal module. When canceling, import the module data of the goal module, and restore the connection and subscription relationship between each other module and the goal module based on the previously exported data. That is, when deleting data, export the related data first, and then directly delete the related data in the data center.
即ち、エクスポート・インポートポリシーでは、フォアグラウンドが目標操作に基づいてバックグラウンドに1つ又は複数の第1のデータ更新命令を順次送信する具体的な実現方式は、フォアグラウンドがバックグラウンドにまず第1の論理関係更新命令を送信し、次に第1のモジュール更新命令を送信して、バックグラウンドがまずデータセンターの各他のモジュールのモジュールデータにおける目標モジュールと該他のモジュールとの間の論理関係を削除し、次に目標モジュールのモジュールデータを削除するように制御することであってもよい。 That is, in the export-import policy, a specific implementation manner in which the foreground sequentially sends one or more first data update commands to the background based on the target operation may be that the foreground first sends a first logical relationship update command to the background, and then sends a first module update command, so that the background first deletes the logical relationship between the target module and the other modules in the module data of each other module in the data center, and then deletes the module data of the target module.
それに応じて、フォアグラウンドが操作記録によって指示された目標操作の逆操作に基づいてバックグラウンドに1つ又は複数の第2のデータ更新命令を順次送信する具体的な実現方式は、操作記録によって指示された目標操作の逆操作に基づいて、フォアグラウンドがバックグラウンドにまず第2のモジュール更新命令を送信し、次に第2の論理関係更新命令を送信して、バックグラウンドがまずデータセンターにおける目標モジュールのモジュールデータを復元し、次に各他のモジュールのモジュールデータにおける目標モジュールと該他のモジュールとの間の論理関係を復元するように制御することであってもよい。 Accordingly, a specific implementation method of the foreground sequentially sending one or more second data update commands to the background based on the inverse operation of the target operation instructed by the operation record may be to control the foreground to first send a second module update command to the background and then send a second logical relationship update command based on the inverse operation of the target operation instructed by the operation record, so that the background first restores the module data of the target module in the data center, and then restores the logical relationship between the target module and the other modules in the module data of each of the other modules.
また、上記仮削除ポリシーでは、フォアグラウンドとバックグラウンドのデータの同期のため、1つのモジュールを削除した後、フォアグラウンドとバックグラウンドがマーク削除のみを行うと、フローチャート全体を実行する際に、マーク削除モジュールに対して特別な処理を行ってそれを無視し、実行をトリガしないようにする必要がある。このような特殊なデータが多くなると、前フォアグラウンドとバックグラウンドのデータの保守性に影響を与え、不安定になる。従って、本発明の実施例が適用される時、エクスポート・インポートポリシーを採用して目標モジュールを削除することが好ましい。 In addition, in the above temporary deletion policy, in order to synchronize foreground and background data, if the foreground and background only delete marks after deleting one module, special processing must be performed on the mark deletion module to ignore it and not trigger execution when executing the entire flowchart. If such special data becomes too large, it will affect the maintainability of the foreground and background data and cause instability. Therefore, when an embodiment of the present invention is applied, it is preferable to adopt an export/import policy to delete the target module.
また、上記エクスポート・インポートポリシーでは、削除されたデータを後で迅速に復元しやすくするために、フォアグラウンドは、バックグラウンドにまず第1の論理関係更新命令を送信し、次に第1のモジュール更新命令を送信する前に、フォアグラウンドは、バックグラウンドがデータセンターにおける前記目標モジュールに対応するデータをエクスポートして参照記憶位置にバックアップするように制御してもよい。この後、フォアグラウンドは、バックグラウンドにまず第2のモジュール更新命令を送信し、次に第2の論理関係更新命令を送信した後、受信した第2のモジュール更新命令に応答して、バックグラウンドは、参照記憶位置から目標モジュールのモジュールデータをデータセンターにインポートし、受信した第2の論理関係更新命令に応答して、バックグラウンドは、参照記憶位置から目標モジュールと各他のモジュールとの間の論理関係をデータセンターにインポートする。 In addition, in the above export-import policy, in order to facilitate rapid restoration of deleted data later, the foreground may first send a first logical relationship update command to the background, and then before sending the first module update command, the foreground may control the background to export data corresponding to the target module in the data center and back it up to a reference storage location. After this, the foreground first sends a second module update command to the background, and then after sending the second logical relationship update command, in response to the received second module update command, the background imports the module data of the target module from the reference storage location to the data center, and in response to the received second logical relationship update command, the background imports the logical relationships between the target module and each of the other modules from the reference storage location to the data center.
また、本発明の実施例では、目標操作がモジュール削除操作である場合、複数のモジュールに対して同じ目標操作を同時に行ってもよく、即ち、一括削除操作を行うシナリオが存在する。一括削除操作を行う場合、ステップ201及びステップ202における目標モジュールの数は複数である。
In addition, in an embodiment of the present invention, when the target operation is a module deletion operation, the same target operation may be performed simultaneously on multiple modules, i.e., a scenario exists in which a bulk deletion operation is performed. When a bulk deletion operation is performed, the number of target modules in
このようなシナリオでは、上記目標操作の実行及び目標操作の取り消しを実現するために、同様に2種類のポリシーがあってもよい。1つは操作を中心とするものであり、もう1つはデータを中心とするものである。 In such a scenario, there may be two policies to achieve the execution and cancellation of the target operations: one is operation-centric and the other is data-centric.
第1のポリシー:操作を中心とする。 First policy: Focus on operations.
ここで、操作を中心とするとは、複数の目標モジュールに対する目標操作を実行する際に、目標操作を複数の、単一のモジュールに対するサブ操作に分割することを指し、即ち、各サブ操作は1つのモジュールのみに対するものであり、そして、複数のサブ操作の実行順序に従ってこの複数のサブ操作を順次実行することにより、複数の目標モジュールに対する目標操作を実現する。複数の目標モジュールに対する目標操作を実行する際に、1つのサブ操作を実行するごとに、該サブ操作に対する1つの操作記録を生成して記憶する。この複数の目標モジュールに対する目標操作を取り消す場合、記憶された操作記録によって指示されたサブ操作の逆操作に従って取り消しを完成する。 Here, operation-centric refers to dividing a target operation into multiple sub-operations for a single module when executing a target operation for multiple target modules; that is, each sub-operation is for only one module, and the target operation for multiple target modules is realized by sequentially executing the multiple sub-operations according to the execution order of the multiple sub-operations. When executing target operations for multiple target modules, each time a sub-operation is executed, an operation record for that sub-operation is generated and stored. When canceling a target operation for multiple target modules, the cancellation is completed by following the reverse operation of the sub-operation indicated by the stored operation record.
操作を中心とするポリシーでは、上記フォアグラウンドがバックグラウンドにまず第1の論理関係更新命令を送信する具体的な実現方式は、フォアグラウンドがバックグラウンドに購読関係削除命令Aを送信し、購読関係削除命令Aは、バックグラウンドに、各目標モジュールに対して、後実行モジュールと、前実行モジュール及び目標モジュールのそれぞれとの間の購読関係を削除するように指示するために用いられ、後実行モジュールは、フォアグラウンドに表示されたフローチャートにおいて目標モジュールの後に実行されるモジュールであり、前実行モジュールは、フローチャートにおいて目標モジュールの前に実行されるモジュールであり、フォアグラウンドがバックグラウンドに購読関係削除命令Bを送信し、購読関係削除命令Bは、バックグラウンドに、複数の目標モジュール間の購読関係を削除するように指示するために用いられ、フォアグラウンドがバックグラウンドに購読関係削除命令Cを送信し、購読関係削除命令Cは、バックグラウンドに、各目標モジュールと前実行モジュールとの間の購読関係を削除するように指示するために用いられ、フォアグラウンドがバックグラウンドに接続関係削除命令Aを送信し、接続関係削除命令Aは、バックグラウンドに、後実行モジュールと各目標モジュールのそれぞれとの間の接続関係を削除するように指示するために用いられ、フォアグラウンドがバックグラウンドに接続関係削除命令Bを送信し、接続関係削除命令Bは、バックグラウンドに、複数の目標モジュール間の接続関係を削除するように指示するために用いられ、フォアグラウンドがバックグラウンドに接続関係削除命令Cを送信し、接続関係削除命令Cは、バックグラウンドに、各目標モジュールと前実行モジュールとの間の接続関係を削除するように指示するために用いられてもよい。 In the operation-centric policy, the specific implementation manner in which the foreground first sends the first logical relationship update command to the background is as follows: the foreground sends a subscription relationship deletion command A to the background, and the subscription relationship deletion command A is used to instruct the background to delete the subscription relationships between the post-execution module and each of the post-execution module and the target module, the post-execution module being a module executed after the target module in the flowchart displayed in the foreground, and the pre-execution module being a module executed before the target module in the flowchart; the foreground sends a subscription relationship deletion command B to the background, and the subscription relationship deletion command B is used to instruct the background to delete the subscription relationships between multiple target modules; The foreground may send a subscription relationship deletion command C to the background, which is used to instruct the background to delete the subscription relationship between each goal module and the previous execution module, the foreground may send a connection relationship deletion command A to the background, which is used to instruct the background to delete the connection relationship between the next execution module and each of the goal modules, the foreground may send a connection relationship deletion command B to the background, which is used to instruct the background to delete the connection relationship between multiple goal modules, and the foreground may send a connection relationship deletion command C to the background, which is used to instruct the background to delete the connection relationship between each goal module and the previous execution module.
フォアグラウンドは、上記実現方式で第1の論理関係更新命令を送信した後、バックグラウンドに第1のモジュール更新命令を送信して、バックグラウンドが複数の目標モジュールのそれぞれのモジュールデータにおける残りのデータを削除するように制御する。 After sending the first logical relationship update command in the above implementation method, the foreground sends a first module update command to the background, controlling the background to delete remaining data in the module data of each of the multiple target modules.
即ち、操作を中心とするポリシーでは、フォアグラウンドは、まず複数の目標モジュール間、及び複数の目標モジュールのうちの各目標モジュールと各他のモジュールとの間の購読関係及び接続線関係を分析し、複数の第1の論理関係更新命令によってこれらの購読関係及び接続線関係を削除し、次に各目標モジュールのモジュールデータを削除する。 In other words, in the operation-centric policy, the foreground first analyzes the subscription relationships and connection line relationships between multiple target modules and between each target module and each other module among the multiple target modules, deletes these subscription relationships and connection line relationships by multiple first logical relationship update commands, and then deletes the module data of each target module.
第2のポリシー:データを中心とする。 Second policy: Data is at the center.
データを中心とするとは、複数の目標モジュールに対する目標操作を実行する際に、複数の目標モジュールをまとめて扱い、この時、この複数の目標モジュールを削除する必要がある場合、この複数の目標モジュールのモジュールデータをまとめて削除し、次に、この複数の目標モジュールにおけるエッジ目標モジュールと他のモジュールとの間の論理関係を更新する。エッジ目標モジュールは、複数の目標モジュールのうち、他のモジュールとの間に論理関係が存在する目標モジュールである。モジュールデータの更新及び論理関係の更新時に同様に操作記録を生成し、この複数の目標モジュールに対する目標操作を取り消す際に、記憶された操作記録によって指示された目標操作の逆操作に従って取り消しを完成する。 Data-centric means that when executing a target operation on multiple target modules, the multiple target modules are treated as a whole, and if it is necessary to delete the multiple target modules at this time, the module data of the multiple target modules is deleted as a whole, and then the logical relationships between the edge target modules and other modules in the multiple target modules are updated. An edge target module is a target module among the multiple target modules that has a logical relationship with other modules. An operation record is generated in the same way when updating the module data and the logical relationships, and when canceling a target operation on the multiple target modules, the cancellation is completed by following the reverse operation of the target operation instructed by the stored operation record.
データを中心とするポリシーでは、フォアグラウンドがバックグラウンドにまず第1の論理関係更新命令を送信し、次に第1のモジュール更新命令を送信する具体的な実現方式は、フォアグラウンドがバックグラウンドに第1の購読関係削除命令を送信し、第1の購読関係削除命令は、バックグラウンドに、各他のモジュールのモジュールデータにおける該他のモジュールとエッジ目標モジュールとの間の購読関係を削除するように指示するために用いられ、フォアグラウンドがバックグラウンドに第1の接続関係削除命令を送信し、第1の接続関係削除命令は、バックグラウンドに、各他のモジュールのモジュールデータにおける該他のモジュールとエッジ目標モジュールとの間の接続関係を削除するように指示するために用いられ、フォアグラウンドがバックグラウンドに第1のモジュール削除命令を送信し、第1のモジュール削除命令は、バックグラウンドに、複数の目標モジュールのモジュールデータを削除するように指示するために用いられることであってもよい。 In the data-centric policy, the specific implementation manner of the foreground first sending the first logical relationship update command to the background and then sending the first module update command may be: the foreground sending the first subscription relationship delete command to the background, the first subscription relationship delete command is used to instruct the background to delete the subscription relationship between the other module and the edge target module in the module data of each other module; the foreground sending the first connection relationship delete command to the background, the first connection relationship delete command is used to instruct the background to delete the connection relationship between the other module and the edge target module in the module data of each other module; the foreground sending the first module delete command to the background, the first module delete command is used to instruct the background to delete the module data of multiple target modules.
即ち、データを中心とするポリシーでは、フォアグラウンドは、複数の目標モジュールにおけるエッジ目標モジュールと他のモジュールとの間の購読関係及び接続線関係を分析し、複数の第1の論理関係更新命令によってこれらの購読関係及び接続線関係を削除し、次に各目標モジュールのモジュールデータを削除すればよい。各目標モジュール内部の購読関係又は接続線関係を1つずつ削除する必要がないため、目標操作に必要な時間が節約される。 In other words, in the data-centric policy, the foreground analyzes the subscription relationships and connection line relationships between edge target modules and other modules in multiple target modules, deletes these subscription relationships and connection line relationships through multiple first logical relationship update commands, and then deletes the module data of each target module. Since there is no need to delete the subscription relationships or connection line relationships inside each target module one by one, the time required for target operations is saved.
図5は、本発明の実施例により提供されるモジュールを削除する概略図であり、削除操作、追加操作の取り消し、削除操作のやり直しなどに適用される。図5に示すように、フローチャートにおけるモジュール2~モジュール5を削除する際に、2種類のポリシーがある。 Figure 5 is a schematic diagram of deleting a module provided by an embodiment of the present invention, which applies to a delete operation, canceling an add operation, redoing a delete operation, etc. As shown in Figure 5, there are two types of policies when deleting modules 2 to 5 in the flowchart.
一、操作を中心として、一括操作を単一のモジュールに対するサブ操作の組み合わせに分解し、各サブ操作は具体的に以下の通りである。 1. Focusing on the operation, we break down the bulk operation into a combination of sub-operations for a single module, and each sub-operation is specifically as follows:
1)モジュール6~10とモジュール1~5との購読関係を順次削除し、即ち、モジュール6~10のそれぞれとモジュール1~5のそれぞれとの間の購読関係をそれぞれ削除する。
1) Delete the subscription relationships between modules 6 to 10 and
2)モジュール3~5とモジュール1~2との購読関係を順次削除し、即ち、モジュール3~5のそれぞれとモジュール1~2のそれぞれとの間の購読関係をそれぞれ削除する。 2) Delete the subscription relationships between modules 3-5 and modules 1-2 in sequence, i.e., delete the subscription relationships between each of modules 3-5 and each of modules 1-2.
3)モジュール2とモジュール1との購読関係を削除する。
3) Delete the subscription relationship between module 2 and
4)モジュール6とモジュール3との接続線、モジュール7とモジュール4との接続線、モジュール8とモジュール5との接続線を順次削除し、即ち、モジュール6とモジュール3との間の接続関係、モジュール7とモジュール4との間の接続関係、モジュール8とモジュール5との間の接続関係をそれぞれ削除する。
4) Sequentially delete the connection lines between
5)モジュール3~5とモジュール2との接続線を順次削除し、即ち、モジュール3~5のそれぞれとモジュール2との間の接続関係をそれぞれ削除する。
5) Sequentially delete the connection lines between
6)モジュール2とモジュール1との接続線を削除し、即ち、モジュール2とモジュール1との間の接続関係を削除する。
6) Delete the connection line between module 2 and
7)モジュール3~5を順次に削除し、即ち、モジュール3~5のそれぞれのモジュールデータを削除する。
7) Delete
8)モジュール2を削除し、即ち、モジュール2のモジュールデータを削除する。 8) Delete module 2, i.e., delete the module data for module 2.
取り消す際に、8)から1)の順序で逆方向に実行して、モジュールデータ、接続関係、購読関係を1つずつ追加することにより、モジュール2~モジュール5に対する削除操作の取り消しを実現する。 When canceling, execute steps 8) to 1) in the reverse order to add module data, connection relationships, and subscription relationships one by one, thereby canceling the deletion operations for modules 2 to 5.
二、データを中心とする一括インポート・エクスポートポリシー。 Second, a data-centric bulk import/export policy.
1)データセンターにおけるモジュール2~5のそれぞれのモジュールデータをまとめて扱ってエクスポートして参照位置にバックアップする。 1) Collect the module data from modules 2 to 5 in the data center, export it, and back it up to a reference location.
2)モジュール6~10のモジュールデータにおける、モジュール1~5との間の購読関係を削除し、操作記録を生成する。即ち、モジュール6~10をまとめて扱い、モジュール1~5もまとめて扱い、モジュール6~10全体のモジュールデータにおける、モジュール1~5全体との間の購読関係を削除し、該購読関係は、具体的に、モジュール2~5におけるエッジモジュール3/4/5と他のモジュール6~10との間の購読関係である。
2) In the module data of modules 6-10, the subscription relationships between modules 1-5 are deleted, and an operation record is generated. That is, modules 6-10 are treated as a whole, and modules 1-5 are also treated as a whole, and in the module data of all modules 6-10, the subscription relationships between modules 1-5 as a whole are deleted, and specifically, these subscription relationships are the subscription relationships between
3)他のモジュールのモジュールデータにおける、モジュール2~5との間の接続関係を削除し、モジュール2~5のそれぞれのモジュールデータを削除し、操作記録を生成する。 3) Delete the connections between modules 2 to 5 in the module data of other modules, delete the module data of modules 2 to 5, and generate an operation record.
取り消し時 When cancelled
1)モジュール2~5のそれぞれのモジュールデータをまとめてインポートする。 1) Import the module data for modules 2 to 5 all at once.
2)操作記録により他のモジュールとモジュール2~5との接続線を復元する。具体的には、モジュール1のモジュールデータにおける、モジュール2~5との間の接続関係、及びモジュール6~10のいずれかのモジュールのモジュールデータにおける、モジュール2~5との間の接続関係を含む。
2) The connection lines between other modules and modules 2 to 5 are restored based on the operation records. Specifically, this includes the connection relationships between modules 2 to 5 in the module data of
3)操作記録によりモジュール6~10とモジュール1~5との購読関係を復元する。具体的には、モジュール1のモジュールデータにおける、モジュール2~5との間の購読関係、及びモジュール6~10のいずれかのモジュールのモジュールデータにおける、モジュール2~5との間の購読関係を含む。
3) The subscription relationships between modules 6-10 and modules 1-5 are restored based on the operation records. Specifically, this includes the subscription relationships between modules 2-5 in the module data of
上記の一つ目のポリシーでは、一括操作を複数の単一操作に変換することの問題点は、処理順序が取り消し順序を決定し、順序が間違っている場合、接続関係を復元する際にモジュールがまだ復元されていないことになると、エラーが発生する。全てが復元されたとしても、あるモジュールとモジュールとの間の接続関係が欠落している可能性があるため、フローチャートを前の状態に完全に復元することができない。上記の二つ目のポリシーでは、一括インポート・エクスポートポリシーは、まとめてエクスポートされた全体と周辺との関係を記録すればよく、エクスポートされた全体の内部の関係は、エクスポートされたモジュールのモジュールデータに含まれている。取り消し又はやり直しを行う際に、まずモジュールのモジュールデータをインポートし、各他のモジュールと該全体との周辺関係を復元すればよい。 In the first policy above, the problem with converting a bulk operation into multiple single operations is that the processing order determines the undo order, and if the order is wrong, an error will occur when restoring the connections if the modules have not been restored yet. Even if everything is restored, the flowchart cannot be fully restored to its previous state because the connections between some modules may be missing. In the second policy above, the bulk import/export policy only needs to record the relationships between the exported whole and its surroundings, and the internal relationships of the exported whole are included in the module data of the exported module. When undoing or redoing, the module data of the module can be imported first, and the surrounding relationships of each other module to the whole can be restored.
また、本発明の実施例では、一つ目のポリシーの操作を中心とするポリシーは、単一のモジュールのデータが変更される取り消しややり直しシナリオに適用される。例えば、あるモジュールの位置又は色を変更した後、位置又は色の変更の逆操作を実行することは、最も経済的で効率的な方法である。 Also, in an embodiment of the present invention, the policy centered on the operation of the first policy applies to undo and redo scenarios where the data of a single module is changed. For example, after changing the position or color of a module, performing the reverse operation of the position or color change is the most economical and efficient way.
従って、1つの可能な実施形態では、目標モジュールの数が1つである場合、フォアグラウンドが、目標操作に基づいてバックグラウンドに1つ又は複数の第1のデータ更新命令を送信する前に、フォアグラウンドは目標操作を1つ又は複数のサブ操作に分割してもよい。このシナリオでは、上記の1つ又は複数の第1のデータ更新命令は、1つ又は複数のサブ操作にそれぞれ対応し、バックグラウンドは、1つ又は複数のサブ操作に基づいて目標操作を完了する。即ち、目標操作を複数のサブ操作に分割し、そして、この複数のサブ操作を順次実行し、操作記録を生成することで、この後、この複数のサブ操作の操作記録に基づいて目標操作を取り消すことができる。 Thus, in one possible embodiment, when the number of target modules is one, before the foreground sends one or more first data update commands to the background based on the target operation, the foreground may divide the target operation into one or more sub-operations. In this scenario, the one or more first data update commands correspond to one or more sub-operations, respectively, and the background completes the target operation based on the one or more sub-operations. That is, by dividing the target operation into multiple sub-operations, and sequentially executing the multiple sub-operations to generate an operation record, the target operation can then be canceled based on the operation records of the multiple sub-operations.
オプションで、取り消し操作の後に、ユーザは、該取り消し操作を取り消してもよく、即ち、該操作を改めて実行する。この場合、図6に示すステップ203により上記のやり直しプロセスを実現することができる。
Optionally, after the undo operation, the user may undo the undo operation, i.e., perform the operation again. In this case, the redo process described above can be realized by
ステップ203において、目標操作に対するやり直し命令が検出された場合、フォアグラウンドが目標操作に基づいて、バックグラウンドがデータセンターにおける目標モジュールに対応するデータを更新するように制御し、フォアグラウンドが更新後の目標モジュールに対応するデータに基づいてインタラクティブインターフェースを更新する。
In
ステップ203の具体的な実現方式は、ステップ201の実現方式と実質的に同じであり、ここでは説明を省略する。
The specific implementation method of
以上のように、本発明の実施例により提供されるフォアグラウンドとバックグラウンドの分離システムにおいて、バックグラウンドのデータセンターに記憶されたモジュールデータは、モジュールの表示方式、モジュールの機能データ及びモジュール間の論理関係を含み、即ち、バックグラウンドにフォアグラウンドデータとバックグラウンドデータとが同時に記憶されている。これから分かるように、本発明の実施例では、バックグラウンドが全てのデータのデータセンターとして機能している。このように、フォアグラウンドが、目標モジュールに対する目標操作を検出した場合、フォアグラウンドとバックグラウンドのデータを更新するようにバックグラウンドを制御し、目標操作が取り消される場合、同様にフォアグラウンドとバックグラウンドのデータを更新するようにバックグラウンドを制御することにより、目標操作の実行中又は目標操作の取り消し中にフォアグラウンドのインタラクティブインターフェースに表示される内容、及びフォアグラウンドとバックグラウンドのデータ間の一致性を保証することができる。 As described above, in the foreground/background separation system provided by the embodiment of the present invention, the module data stored in the background data center includes the display method of the module, the functional data of the module, and the logical relationship between the modules, i.e., foreground data and background data are stored simultaneously in the background. As can be seen from this, in the embodiment of the present invention, the background functions as a data center for all data. In this way, when the foreground detects a target operation on a target module, it controls the background to update the foreground and background data, and when the target operation is canceled, it controls the background to similarly update the foreground and background data, thereby ensuring the consistency between the content displayed on the foreground interactive interface during the execution of the target operation or the cancellation of the target operation, and the foreground and background data.
以下、本発明の実施例により提供される各技術的効果をまとめて説明する。 The technical effects provided by the embodiments of the present invention are summarized below.
本発明の実施例の革新的な点は、フォアグラウンドとバックグラウンドの分離システムの取り消し又はやり直しに対していくつかの現実的で実現可能なポリシーを提案することである。 The innovation of the present embodiment is that it proposes some realistic and feasible policies for undoing or redoing a foreground/background separation system.
1)フォアグラウンドとバックグラウンドのいずれにもデータがある場合、データ単一センターポリシーを採用することができ、バックグラウンドで全てのデータを記憶する。 1) If you have data in both the foreground and background, you can adopt a data single center policy and store all data in the background.
2)フォアグラウンドとバックグラウンドが分離している場合、操作記録について、フォアグラウンドを中心としてもよい。取り消し又はやり直し時に、フォアグラウンドが取り消しプロセス全体を主導する。 2) If the foreground and background are separate, the foreground may be the center of the operation record. When undoing or redoing, the foreground will lead the entire undo process.
3)複雑で、関係が多いフローチャートに対して、削除・取り消しシナリオでは、仮削除ポリシーではなく、データのエクスポート・インポート方式を採用することができる。 3) For complex and highly interrelated flowcharts, the deletion/cancellation scenario can adopt a data export/import approach instead of a temporary deletion policy.
4)複雑で、関係が多いフローチャートに対して、データを一括して削除・取り消しする場合、操作組み合わせ方式ではなく、データのエクスポート・インポート方式を採用することができる。 4) When deleting or canceling data collectively in a complex flowchart with many relationships, you can use the data export/import method instead of the operation combination method.
5)フローチャートにおいて、単一データ変更について、操作を中心とするポリシーを採用することができる。 5) In a flowchart, you can adopt an operation-centric policy for single data changes.
以上のポリシーにより、フォアグラウンドとバックグラウンドの分離システムの取り消し又はやり直しをより良く実現し、実現の複雑さ、メモリ消費量、システム安定性をバランスさせることができる。 The above policies allow for better undo/redo support for a separate foreground/background system, balancing implementation complexity, memory consumption, and system stability.
上述した全てのオプションの技術的解決策は、任意の組み合わせに従って本発明のオプションの実施例を形成することができ、本発明の実施例ではこれを一々説明しない。 All the optional technical solutions described above can be combined in any way to form optional embodiments of the present invention, which will not be described one by one in the embodiments of the present invention.
図7は、本発明の実施例により提供されるフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理装置の構造概略図であり、該装置は、ソフトウェア、ハードウェア、又はそれらの組み合わせによって実現され得る。該装置はフォアグラウンドとバックグラウンドとを含むフォアグラウンドとバックグラウンドの分離システムに適用される。フォアグラウンドにはインタラクティブインターフェースが表示され、インタラクティブインターフェースは複数のモジュールを表示するために用いられる。バックグラウンドにはデータセンターが配置され、データセンターは複数のモジュールのうちの各モジュールのモジュールデータを記憶するために用いられ、いずれかのモジュールのモジュールデータは、該モジュールの表示方式、該モジュールの機能データ及び該モジュールと各他のモジュールとの間の論理関係を含む。 Figure 7 is a structural schematic diagram of a module processing device used in a foreground/background separation system provided by an embodiment of the present invention, which may be realized by software, hardware, or a combination thereof. The device is applied to a foreground/background separation system including a foreground and a background. An interactive interface is displayed in the foreground, and the interactive interface is used to display a plurality of modules. A data center is disposed in the background, and the data center is used to store module data of each module among the plurality of modules, and the module data of any module includes the display method of the module, the function data of the module, and the logical relationship between the module and each of the other modules.
図7に示すように、該装置700は、以下のモジュールを含む。 As shown in FIG. 7, the device 700 includes the following modules:
第1の制御モジュール701は、目標モジュールに対する目標操作に応答して、フォアグラウンドに前記目標操作に基づいて、前記バックグラウンドが前記データセンターにおける前記目標モジュールに対応するデータを更新するように制御させ、フォアグラウンドに更新後の前記目標モジュールに対応するデータに基づいて前記インタラクティブインターフェースを更新させるために用いられ、前記目標モジュールは、前記複数のモジュールのうちの1つ又は複数のモジュールであり、前記目標操作が前記目標モジュールに対する任意の操作である。
The
第2の制御モジュール702は、前記目標操作に対する取り消し命令が検出された場合、フォアグラウンドに前記取り消し命令に基づいて、前記バックグラウンドが前記データセンターにおける前記目標モジュールに対応するデータを復元するように制御させ、フォアグラウンドに復元後の前記目標モジュールに対応するデータに基づいて、前記インタラクティブインターフェースを更新させるために用いられる。
The
上記装置に基づいて、1つの可能な実施形態では、図7に示すように、該装置は、さらに、前記目標操作に対するやり直し命令が検出された場合、フォアグラウンドに前記目標操作に基づいて、前記バックグラウンドがデータセンターにおける前記目標モジュールに対応するデータを更新するように制御させ、フォアグラウンドに更新後の前記目標モジュールに対応するデータに基づいて前記インタラクティブインターフェースを更新させるための第3の制御モジュール703を含む。
Based on the above device, in one possible embodiment, as shown in FIG. 7, the device further includes a
上記装置に基づき、1つの可能な実施形態では、前記第1の制御モジュールは、
フォアグラウンドに前記目標操作に基づいて、前記バックグラウンドに1つ又は複数の第1のデータ更新命令を送信させ、
フォアグラウンドに、前記1つ又は複数のデータ更新命令の送信に基づいて操作記録を生成させるために用いられ、前記1つ又は複数の第1のデータ更新命令のうちのいずれか1つの第1のデータ更新命令は、前記バックグラウンドに、前記目標モジュールに対応するデータのうちの一部のデータを更新するように指示するために用いられ、
それに応じて、前記第2の制御モジュールは、
フォアグラウンドに前記操作記録によって指示された目標操作の逆操作に基づいて、前記バックグラウンドに1つ又は複数の第2のデータ更新命令を順次送信させるために用いられ、前記1つ又は複数の第2のデータ更新命令のうちのいずれか1つの第2のデータ更新命令は、前記バックグラウンドに、前記データセンターにおける前記目標モジュールに対応するデータのうちの一部のデータを前記目標操作が実行される前の状態に復元するように指示するために用いられる。
Based on the above device, in one possible embodiment, the first control module comprises:
causing the foreground to send one or more first data update instructions to the background based on the target operation;
A first data update command is used to instruct the foreground to generate an operation record based on the transmission of the one or more data update commands, and any one of the one or more first data update commands is used to instruct the background to update a part of data corresponding to the target module;
In response, the second control module:
The second data update command is used to cause the foreground to sequentially send one or more second data update commands to the background based on an inverse operation of a target operation instructed by the operation record, and any one of the one or more second data update commands is used to instruct the background to restore a portion of the data corresponding to the target module in the data center to a state before the target operation was executed.
上記装置に基づいて、1つの可能な実施形態では、前記目標操作が前記目標モジュールに対する追加操作である場合、前記第1の制御モジュールは、
フォアグラウンドに、前記バックグラウンドにまず第1のモジュール更新命令を送信させ、次に第1の論理関係更新命令を送信させて、前記バックグラウンドがまず前記データセンターに前記目標モジュールのモジュールデータを追加し、次に各他のモジュールのモジュールデータに前記目標モジュールと前記他のモジュールとの間の論理関係を追加するように制御させるために用いられ、
それに応じて、前記第2の制御モジュールは、
フォアグラウンドに前記操作記録によって指示された目標操作の逆操作に基づいて、前記バックグラウンドにまず第2の論理関係更新命令を送信させ、次に第2のモジュール更新命令を送信させて、前記バックグラウンドがまず前記データセンターの各他のモジュールのモジュールデータにおける前記目標モジュールと前記他のモジュールとの間の論理関係を削除し、次に前記データセンターにおける前記目標モジュールのモジュールデータを削除するように制御させるために用いられる。
Based on the above device, in one possible embodiment, if the target operation is an add operation for the target module, the first control module:
The foreground is used to make the background first send a first module update command, and then send a first logical relationship update command, so that the background first adds module data of the target module to the data center, and then adds logical relationships between the target module and the other modules to the module data of each other module;
In response, the second control module:
It is used to cause the foreground to first send a second logical relationship update command to the background based on the inverse operation of the target operation instructed by the operation record, and then send a second module update command, so as to control the background to first delete the logical relationship between the target module and the other modules in the module data of each other module in the data center, and then delete the module data of the target module in the data center.
上記装置に基づいて、1つの可能な実施形態では、前記目標操作が前記目標モジュールに対する削除操作である場合、前記第1の制御モジュールは、
フォアグラウンドに、前記バックグラウンドにまず第1の論理関係更新命令を送信させ、次に第1のモジュール更新命令を送信させて、前記バックグラウンドがまず前記データセンターの各他のモジュールのモジュールデータにおける前記目標モジュールと前記他のモジュールとの間の論理関係を削除し、次にデータセンターにおける前記目標モジュールのモジュールデータを削除するように制御させるために用いられ、
それに応じて、前記第2の制御モジュールは、
フォアグラウンドに前記操作記録によって指示された目標操作の逆操作に基づいて、前記バックグラウンドにまず第2のモジュール更新命令を送信させ、次に第2の論理関係更新命令を送信させて、前記バックグラウンドがまず前記データセンターにおける前記目標モジュールのモジュールデータを復元し、次に各他のモジュールのモジュールデータにおける前記目標モジュールと前記他のモジュールとの間の論理関係を復元するように制御させるために用いられる。
Based on the above device, in one possible embodiment, if the target operation is a delete operation on the target module, the first control module:
The foreground is used to make the background first send a first logical relationship update command, and then send a first module update command, so that the background first deletes the logical relationship between the target module and the other modules in the module data of each other module in the data center, and then deletes the module data of the target module in the data center;
In response, the second control module:
It is used to cause the foreground to first send a second module update command and then send a second logical relationship update command based on the inverse operation of the target operation instructed by the operation record, so as to control the background to first restore the module data of the target module in the data center, and then restore the logical relationships between the target module and the other modules in the module data of each other module.
上記装置に基づいて、1つの可能な実施形態では、前記目標操作が前記目標モジュールに対する削除操作である場合、前記第1の制御モジュールは、
フォアグラウンドに、バックグラウンドにまず第1の論理関係更新命令を送信させ、次に第1のモジュール更新命令を送信させて、前記バックグラウンドが前記第1の論理関係更新命令を受信した時にデータセンターの各他のモジュールのモジュールデータにおける前記他のモジュールと前記目標モジュールとの間の論理関係を削除するように制御させ、前記バックグラウンドが前記第1のモジュール更新命令を受信した時に前記データセンターにおける前記目標モジュールのモジュールデータに削除マークを追加するように制御させるために用いられ、
それに応じて、前記第2の制御モジュールは、
フォアグラウンドに前記操作記録によって指示された目標操作の逆操作に基づいて、前記バックグラウンドにまず第2のモジュール更新命令を送信させ、次に第2の論理関係更新命令を送信させて、前記バックグラウンドが前記第2のモジュール更新命令を受信した時にデータセンターにおける前記目標モジュールのモジュールデータの削除マークを削除するように制御させ、前記バックグラウンドが前記第2の論理関係更新命令を受信した時にデータセンターの各他のモジュールのモジュールデータに前記他のモジュールと前記目標モジュールとの間の論理関係を追加するように制御させるために用いられる。
Based on the above device, in one possible embodiment, if the target operation is a delete operation on the target module, the first control module:
The foreground is used to control the background to first send a first logical relationship update command, and then send a first module update command, so as to delete the logical relationship between the other modules and the target module in the module data of each other module in the data center when the background receives the first logical relationship update command, and to control the background to add a deletion mark to the module data of the target module in the data center when the background receives the first module update command;
In response, the second control module:
This is used to cause the foreground to first send a second module update command and then send a second logical relationship update command based on the inverse operation of the target operation instructed by the operation record, to control the background to delete a deletion mark in the module data of the target module in the data center when the background receives the second module update command, and to control the background to add a logical relationship between the other modules and the target module to the module data of each other module in the data center when the background receives the second logical relationship update command.
上記装置に基づいて、1つの可能な実施形態では、前記装置は、さらに、
前記フォアグラウンドが、バックグラウンドにまず前記第1の論理関係更新命令を送信し、次に前記第1のモジュール更新命令を送信する前に、前記フォアグラウンドに、前記バックグラウンドが前記データセンターにおける前記目標モジュールに対応するデータをエクスポートして参照記憶位置にバックアップするように制御させるためのエクスポートモジュールであって、前記目標モジュールに対応するデータは、前記目標モジュールのモジュールデータ、及び各他のモジュールのモジュールデータにおける前記目標モジュールと前記他のモジュールとの間の論理関係を含む、エクスポートモジュールと、
前記フォアグラウンドが、前記バックグラウンドにまず前記第2のモジュール更新命令を送信し、次に前記第2の論理関係更新命令を送信した後、受信した前記第2のモジュール更新命令に応答して、前記バックグラウンドに、前記参照記憶位置から前記目標モジュールのモジュールデータを前記データセンターにインポートさせ、受信した前記第2の論理関係更新命令に応答して、前記バックグラウンドに、前記参照記憶位置から前記目標モジュールと各前記他のモジュールとの間の前記論理関係を前記データセンターにインポートさせるためのインポートモジュールと、を含む。
Based on the above device, in one possible embodiment, the device further comprises:
an export module for causing the foreground to control the background to first send the first logical relationship update command to the background, and then, before sending the first module update command, to export data corresponding to the target module in the data center and back it up to a reference storage location, the data corresponding to the target module including module data of the target module and logical relationships between the target module and the other modules in the module data of each of the other modules;
The foreground includes an import module for first transmitting the second module update command to the background, and then transmitting the second logical relationship update command, and then, in response to the received second module update command, causing the background to import module data of the target module from the reference memory location to the data center, and, in response to the received second logical relationship update command, causing the background to import the logical relationships between the target module and each of the other modules from the reference memory location to the data center.
前述の装置に基づいて、1つの可能な実施形態では、前記複数のモジュールのうちのいずれかのモジュールと各他のモジュールとの間の論理関係は、いずれかのモジュールと各他のモジュールとの間の接続関係、及び前記いずれかのモジュールと前記各他のモジュールとの間の購読関係を含む。前記接続関係は、前記インタラクティブインターフェース上の前記いずれかのモジュールと各他のモジュールとの間の接続線関係を示し、前記購読関係は、前記いずれかのモジュールの内部パラメータ、入力のうちの少なくとも1つと各他のモジュールの出力との間の関連関係、及び/又は、前記いずれかのモジュールの出力と各他のモジュールの内部パラメータ、入力のうちの少なくとも1つとの間の関連関係を示す。 Based on the above-mentioned device, in one possible embodiment, the logical relationship between any one of the multiple modules and each of the other modules includes a connection relationship between any one of the multiple modules and each of the other modules, and a subscription relationship between any one of the multiple modules and each of the other modules. The connection relationship indicates a connection line relationship between any one of the multiple modules and each of the other modules on the interactive interface, and the subscription relationship indicates an association relationship between at least one of the internal parameters or inputs of any one of the multiple modules and an output of each of the other modules, and/or an association relationship between the output of any one of the multiple modules and at least one of the internal parameters or inputs of each of the other modules.
上記装置に基づいて、1つの可能な実施形態では、前記目標モジュールの数が複数である場合、前記第1の制御モジュールは、
前記フォアグラウンドに、前記バックグラウンドに第1の購読関係削除命令を送信させ、
前記フォアグラウンドに、前記バックグラウンドに第1の接続関係削除命令を送信させ、
前記フォアグラウンドに、前記バックグラウンドに第1のモジュール削除命令を送信させるために用いられ、
前記第1の購読関係削除命令は、前記バックグラウンドに、各他のモジュールのモジュールデータにおける前記他のモジュールとエッジ目標モジュールとの間の購読関係を削除するように指示するために用いられ、前記エッジ目標モジュールは、複数の目標モジュールのうち、前記他のモジュールとの間に論理関係が存在する目標モジュールであり、
前記第1の接続関係削除命令は、前記バックグラウンドに、各他のモジュールのモジュールデータにおける前記他のモジュールとエッジ目標モジュールとの間の接続関係を削除するように指示するために用いられ、
前記第1のモジュール削除命令は、前記バックグラウンドに、前記複数の目標モジュールのモジュールデータを削除するように指示するために用いられる。
Based on the above device, in one possible embodiment, when the number of the target modules is plural, the first control module:
causing the foreground to send a first subscription relationship deletion command to the background;
causing the foreground to transmit a first connection relationship deletion command to the background;
used to cause the foreground to send a first module removal command to the background;
The first subscription relationship deletion command is used to instruct the background to delete a subscription relationship between the other module and an edge target module in the module data of each other module, and the edge target module is a target module among a plurality of target modules that has a logical relationship with the other module;
The first connection relationship deletion command is used to instruct the background to delete a connection relationship between the other module and an edge target module in the module data of each other module;
The first module deletion command is used to instruct the background to delete module data of the plurality of target modules.
上記装置に基づいて、1つの可能な実施形態では、前記目標モジュールの数が複数である場合、前記第1の制御モジュールは、
前記フォアグラウンドに前記バックグラウンドに購読関係削除命令Aを送信させ、
前記フォアグラウンドに前記バックグラウンドに購読関係削除命令Bを送信させ、
前記フォアグラウンドに前記バックグラウンドに購読関係削除命令Cを送信させ、
前記フォアグラウンドに前記バックグラウンドに接続関係削除命令Aを送信させ、
前記フォアグラウンドに前記バックグラウンドに接続関係削除命令Bを送信させ、
前記フォアグラウンドに前記バックグラウンドに接続関係削除命令Cを送信させ、
前記フォアグラウンドに前記バックグラウンドに第1のモジュール削除命令を送信させるために用いられ、
前記購読関係削除命令Aは、前記バックグラウンドに、各前記目標モジュールに対して、後実行モジュールと、前実行モジュール及び前記目標モジュールのそれぞれとの間の購読関係を削除するように指示するために用いられ、前記後実行モジュールは、前記フォアグラウンドに表示されたフローチャートにおいて前記目標モジュールの後に実行されるモジュールであり、前記前実行モジュールは、フローチャートにおいて前記目標モジュールの前に実行されるモジュールであり、
前記購読関係削除命令Bは、前記バックグラウンドに、複数の目標モジュール間の購読関係を削除するように指示するために用いられ、
前記購読関係削除命令Cは、前記バックグラウンドに、各前記目標モジュールと前記前実行モジュールとの間の購読関係を削除するように指示するために用いられ、
前記接続関係削除命令Aは、前記バックグラウンドに、後実行モジュールと各前記目標モジュールのそれぞれとの間の接続関係を削除するように指示するために用いられ、
前記接続関係削除命令Bは、前記バックグラウンドに、前記複数の目標モジュール間の接続関係を削除するように指示するために用いられ、
前記接続関係削除命令Cは、前記バックグラウンドに、各前記目標モジュールと前記前実行モジュールとの間の接続関係を削除するように指示するために用いられ、
前記第1のモジュール削除命令は、前記複数の目標モジュールのモジュールデータにおける残りのデータを削除するように指示するために用いられる。
Based on the above device, in one possible embodiment, when the number of the target modules is plural, the first control module:
causing the foreground to transmit a subscription deletion command A to the background;
causing the foreground to transmit a subscription deletion command B to the background;
causing the foreground to transmit a subscription deletion command C to the background;
causing the foreground to transmit a connection relationship deletion command A to the background;
causing the foreground to transmit a connection relationship deletion command B to the background;
having the foreground transmit a connection relationship deletion command C to the background;
used to cause the foreground to send a first module removal command to the background;
The subscription relationship deletion command A is used to instruct the background to delete, for each of the target modules, a subscription relationship between a post-execution module and each of the target modules, the post-execution module being a module executed after the target module in a flowchart displayed in the foreground, and the pre-execution module being a module executed before the target module in a flowchart;
The subscription relationship deletion command B is used to instruct the background to delete a subscription relationship between multiple target modules;
The subscription relationship deletion command C is used to instruct the background to delete the subscription relationship between each of the target modules and the previous execution module;
The connection relationship deletion command A is used to instruct the background to delete the connection relationship between the post-execution module and each of the target modules;
the connection relationship deletion command B is used to instruct the background to delete the connection relationships between the plurality of target modules;
The connection relationship deletion command C is used to instruct the background to delete the connection relationship between each of the target modules and the previous execution module;
The first module deletion command is used to instruct to delete remaining data in the module data of the plurality of target modules.
以上のように、本発明の実施例により提供されるフォアグラウンドとバックグラウンドの分離システムにおいて、バックグラウンドのデータセンターに記憶されたモジュールデータは、モジュールの表示方式、モジュールの機能データ及びモジュール間の論理関係を含み、即ち、バックグラウンドにフォアグラウンドデータとバックグラウンドデータとが同時に記憶されている。これから分かるように、本発明の実施例では、バックグラウンドが全てのデータのデータセンターとして機能している。このように、フォアグラウンドが、目標モジュールに対する目標操作を検出した場合、フォアグラウンドとバックグラウンドのデータを更新するようにバックグラウンドを制御し、目標操作が取り消される場合、同様にフォアグラウンドとバックグラウンドのデータを更新するようにバックグラウンドを制御することにより、目標操作の実行中又は目標操作の取り消し中にフォアグラウンドのインタラクティブインターフェースに表示される内容、及びフォアグラウンドとバックグラウンドのデータ間の一致性を保証することができる。 As described above, in the foreground/background separation system provided by the embodiment of the present invention, the module data stored in the background data center includes the display method of the module, the functional data of the module, and the logical relationship between the modules, i.e., foreground data and background data are stored simultaneously in the background. As can be seen from this, in the embodiment of the present invention, the background functions as a data center for all data. In this way, when the foreground detects a target operation on a target module, it controls the background to update the foreground and background data, and when the target operation is canceled, it controls the background to similarly update the foreground and background data, thereby ensuring the consistency between the content displayed on the foreground interactive interface during the execution of the target operation or the cancellation of the target operation, and the foreground and background data.
なお、上記実施例により提供されるフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理装置は、モジュールに対する操作を処理する際に、上記の各機能モジュールの分割のみを例として説明し、実際の応用では、必要に応じて上記機能を異なる機能モジュールに割り当てて実現し、即ち、デバイスの内部構造を異なる機能モジュールに分割して、上記の全部又は一部の機能を実現する。また、上記実施例により提供されるフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理装置とフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法の実施例は同様の考え方に属し、その具体的な実現プロセスは方法の実施例に詳述されているので、ここでは説明を省略する。 The module processing device used in the foreground/background separation system provided in the above embodiment is described as an example only of the division of each of the above functional modules when processing operations on the modules. In actual applications, the above functions are assigned to different functional modules as necessary, that is, the internal structure of the device is divided into different functional modules to realize all or part of the above functions. In addition, the module processing device used in the foreground/background separation system provided in the above embodiment and the embodiment of the module processing method used in the foreground/background separation system belong to the same concept, and the specific realization process is described in detail in the embodiment of the method, so the description will be omitted here.
図8は、本発明の実施例により提供される端末800の構造概略図である。前述の実施例におけるフォアグラウンドは、図8に示される構造によって実現され得る。該端末800は、スマートフォン、タブレットコンピュータ、MP3プレーヤー(Moving Picture Experts Group Audio Layer III、動画専門家集団による圧縮規格のオーディオレイヤ3)、MP4(Moving Picture Experts Group Audio Layer IV、動画専門家集団による圧縮規格のオーディオレイヤ4)プレーヤー、ノート型パソコン、又はデスクトップパソコンであってもよい。端末800は、ユーザデバイス、携帯端末、ラップトップ端末、デスクトップ端末などの他の名称で呼ばれることもある。 Figure 8 is a structural schematic diagram of a terminal 800 provided by an embodiment of the present invention. The foreground in the above embodiment can be realized by the structure shown in Figure 8. The terminal 800 can be a smartphone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV) player, a notebook computer, or a desktop computer. The terminal 800 can also be called by other names such as a user device, a mobile terminal, a laptop terminal, a desktop terminal, etc.
通常、端末800は、プロセッサ801とメモリ802とを含む。
Typically, the terminal 800 includes a processor 801 and a
プロセッサ801は、例えば、4コアプロセッサ、8コアプロセッサなど、1つ又は複数の処理コアを含み得る。プロセッサ801は、DSP(Digital Signal Processing、デジタル・シグナル・プロセッシング)、FPGA(Field-Programmable Gate Array、フィールド・プログラマブル・ゲート・アレイ)、PLA(Programmable Logic Array、プログラマブル・ロジック・アレイ)のうち少なくとも1つのハードウェアの形態で実現され得る。プロセッサ801は、メインプロセッサとコプロセッサとをさらに含み得、メインプロセッサは、ウェイク状態のデータを処理するためのプロセッサであり、CPU(Central Processing Unit、中央処理装置)とも呼ばれ、コプロセッサは、待機状態のデータを処理するための低消費電力プロセッサである。いくつかの実施例では、プロセッサ801に、ディスプレイに表示されるコンテンツのレンダリング及び描きを担うためのGPU(Graphics Processing Unit)を有し得る。いくつかの実施例では、プロセッサ801は、機械学習に関連する計算動作を処理するためのAI(Artificial Intelligence、アーティフィシャル・インテリジェンス)プロセッサをさらに含み得る。 The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 801 may be realized in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), or a PLA (Programmable Logic Array). The processor 801 may further include a main processor and a coprocessor, where the main processor is a processor for processing data in a wake state and is also called a CPU (Central Processing Unit), and the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 801 may include a Graphics Processing Unit (GPU) for rendering and drawing content to be displayed on the display. In some embodiments, the processor 801 may further include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
メモリ802は、非一時的であり得る1つ又は複数のコンピュータ可読記憶媒体を含み得る。メモリ802は、高速ランダムアクセスメモリ、及び1つ以上のディスク記憶デバイス、フラッシュメモリ記憶デバイスなどの不揮発性メモリをさらに含み得る。いくつかの実施例では、メモリ802内の非一時的コンピュータ可読記憶媒体は、本発明の方法の実施例により提供されるフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法を実行するように、プロセッサ801により実行される少なくとも1つの命令を記憶するために用いられる。
いくつかの実施例では、端末800は、オプションで、周辺デバイスインタフェース803と、少なくとも1つの周辺デバイスとをさらに含む。プロセッサ801、メモリ802、及び周辺デバイスインタフェース803は、互いにバス又は信号線を介して接続され得る。各周辺デバイスは、バス、信号線、又は回路基板を介して周辺デバイスインタフェース803に接続され得る。具体的には、周辺デバイスは、無線周波数回路804、ディスプレイ805、カメラ部品806、音声回路807、測位部品808、及び電源809のうちの少なくとも1つを含む。
In some embodiments, the terminal 800 optionally further includes a peripheral device interface 803 and at least one peripheral device. The processor 801, the
周辺デバイスインタフェース803は、I/O(Input/Output、入力/出力)に関連する少なくとも1つの周辺デバイスをプロセッサ801及びメモリ802に接続するために用いられる。いくつかの実施例では、プロセッサ801、メモリ802、及び周辺デバイスインタフェース803は、同じ回路モジュール又は回路基板に集積化され、いくつかの他の実施例では、プロセッサ801、メモリ802、及び周辺デバイスインタフェース803のうちいずれか1つ又は2つは、別個の回路モジュール又は回路基板で実現され得、本実施例はこれを限定しない。
The peripheral device interface 803 is used to connect at least one peripheral device associated with I/O (Input/Output) to the processor 801 and the
無線周波数回路804は、電磁信号とも呼ばれるRF(Radio Frequency、無線周波数)信号を受信及び送信するために用いられる。無線周波数回路804は、電磁信号により通信ネットワーク及び他の通信デバイスと通信する。無線周波数回路804は、電気信号を電磁信号に変換して送信するか、又は受信した電磁信号を電気信号に変換する。オプションで、無線周波数回路804は、アンテナシステム、RFトランシーバ、1つ又は複数の増幅器、チューナ、発振器、デジタルシグナルプロセッサ、符号化復号化回路モジュールセット、加入者識別モジュールカードなどを含む。無線周波数回路804は、少なくとも1つの無線通信プロトコルを介して他の端末と通信し得る。当該無線通信プロトコルは、メトロポリタンエリアネットワーク、各世代の移動通信ネットワーク(2G、3G、4G及び5G)、無線ローカルエリアネットワーク、及び/又はWiFi(Wireless Fidelity、ワイヤレスフィデリティ)ネットワークを含むが、これらに限定されない。いくつかの実施例では、無線周波数回路804は、NFC(Near Field Communication、近距離無線通信)に関連する回路をさらに含み得、本発明は、これを限定しない。
The
ディスプレイ805は、UI(User Interface、ユーザインタフェース)を表示するために用いられる。当該UIは、図形、テキスト、アイコン、動画、及びそれらの任意の組合せを含み得る。ディスプレイ805がタッチディスプレイである場合、ディスプレイ805は、さらに、ディスプレイ805の表面又は表面の上方のタッチ信号を収集する能力を有する。当該タッチ信号は、制御信号としてプロセッサ801に入力されて処理され得る。このとき、ディスプレイ805は、さらに、ソフトボタン及び/又はソフトキーボードとも呼ばれる仮想ボタン及び/又は仮想キーボードを提供するために用いられる。いくつかの実施例では、ディスプレイ805は、1つであってもよく、端末800のフロントパネルに設置され、他の実施例では、ディスプレイ805は、少なくとも2つであってもよく、それぞれ端末800の異なる表面に設置されるか、又は折り畳まれるように設計され、他の実施例では、ディスプレイ805は、端末800の曲面又は折り畳み面に設置されたフレキシブルディスプレイであってもよい。さらには、ディスプレイ805は、矩形以外の不規則な図形、即ち異形画面となるように設置されてもよい。ディスプレイ805は、LCD(Liquid Crystal Display、液晶ディスプレイ)、OLED(Organic Light-Emitting Diode、有機発光ダイオード)などの材質を用いて作製され得る。
The
カメラ部品806は、画像又は動画を収集するために用いられる。オプションで、カメラ部品806は、フロントカメラ及びバックカメラを含む。通常、フロントカメラは、端末のフロントパネルに設置され、バックカメラは、端末の裏面に設置される。いくつかの実施例では、バックカメラは、少なくとも2つであり、それぞれメインカメラ、被写界深度カメラ、広角カメラ、望遠カメラのうちのいずれか1つであることで、メインカメラと被写界深度カメラとの融合による背景ぼかし機能、メインカメラと広角カメラとの融合によるパノラマ撮影及びVR(Virtual Reality、バーチャルリアリティ)撮影機能、又は他の融合による撮影機能を実現する。いくつかの実施例では、カメラ部品806は、フラッシュランプをさらに含み得る。フラッシュランプは、単色温度フラッシュランプであってもよいし、二色温度フラッシュランプであってもよい。二色温度フラッシュランプとは、ウォームホワイトフラッシュランプとクールホワイトフラッシュランプとの組合せであり、異なる色温度での光線補正に使用し得る。
The
音声回路807は、マイクロフォン及びスピーカーを含み得る。マイクロフォンは、ユーザ及び環境の音波を収集し、音波を電気信号に変換してプロセッサ801に入力して処理させるか、又は音声通信を可能にするように無線周波数回路804に入力するために用いられる。ステレオ集音又はノイズ低減の目的で、マイクロフォンは、複数であってもよく、端末800の異なる箇所にそれぞれ設置される。また、マイクロフォンは、アレイマイクロフォンであってもよいし、全方位集音型マイクロフォンであってもよい。スピーカーは、プロセッサ801又は無線周波数回路804からの電気信号を音波に変換するために用いられる。スピーカーは、従来の薄膜スピーカーであってもよいし、圧電セラミックスピーカーであってもよい。スピーカーが圧電セラミックスピーカーである場合、電気信号を人間が聞こえる音波に変換することができるだけでなく、さらに、電気信号を測距などの用途のために人間が聞こえない音波に変換することができる。いくつかの実施例では、音声回路807は、ヘッドホンジャックをさらに含み得る。
The
測位部品808は、ナビゲーション又はLBS(Location Based Service、位置に基づくサービス)を可能にするために、端末800の現在の地理的位置を測位するために用いられる。
The
電源809は、端末800における各部品に電力を供給するために用いられる。電源809は、交流電源、直流電源、一次電池、又は二次電池であってもよい。電源809が二次電池を含む場合、当該二次電池は、有線充電又は無線充電をサポートすることが可能である。当該充電池は、さらに、急速充電技術をサポートするために用いられる。
The
いくつかの実施例では、端末800は、1つ又は複数のセンサ810をさらに含む。当該1つ又は複数のセンサ810は、加速度センサ811、ジャイロセンサ812、圧力センサ813、指紋センサ814、光学センサ815、及び近接センサ816を含むが、これらに限定されない。
In some embodiments, the terminal 800 further includes one or more sensors 810. The one or more sensors 810 include, but are not limited to, an acceleration sensor 811, a gyro sensor 812, a pressure sensor 813, a
加速度センサ811は、端末800で構築された座標系の3つの座標軸における加速度の大きさを検出することができる。例えば、加速度センサ811は、重力加速度の3つの座標軸における成分を検出するために用いられる。プロセッサ801は、加速度センサ811により収集された重力加速度信号に基づき、ディスプレイ805をユーザインタフェースの表示を横方向ビュー又は縦方向ビューで行うように制御することができる。加速度センサ811は、さらに、ゲーム又はユーザの運動データの収集に使用し得る。
The acceleration sensor 811 can detect the magnitude of acceleration in three coordinate axes of a coordinate system established by the
ジャイロセンサ812は、端末800の本体の方向及び回転角度を検出することができ、ジャイロセンサ812は、加速度センサ811と連携して端末800に対するユーザの3Dモーションを収集することができる。プロセッサ801は、ジャイロセンサ812が収集したデータに基づき、動作感知(ユーザの傾斜操作によるUIの変更など)、撮影時の画像安定化、ゲーム制御、及び慣性航法などの機能を実現することができる。 The gyro sensor 812 can detect the direction and rotation angle of the main body of the terminal 800, and in cooperation with the acceleration sensor 811, can collect the user's 3D motion relative to the terminal 800. Based on the data collected by the gyro sensor 812, the processor 801 can realize functions such as motion detection (such as changing the UI by the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
圧力センサ813は、端末800の側面フレーム及び/又はディスプレイ805の下層に設置され得る。圧力センサ813は、端末800の側面フレームに設置される場合、ユーザによる端末800に対する握り信号を検出することができ、プロセッサ801は圧力センサ813により収集された握り信号に基づき、左右手の識別又はショートカット操作を行う。圧力センサ813がディスプレイ805の下層に設置される場合、プロセッサ801は、ユーザによるディスプレイ805に対する押圧操作に応じて、UI画面上の操作可能なコントロールに対する制御を実現する。操作可能なコントロールは、ボタンコントロール、スクロールバーコントロール、アイコンコントロール、メニューコントロールのうちの少なくとも1つを含む。
The pressure sensor 813 may be installed on the side frame of the terminal 800 and/or on the lower layer of the
指紋センサ814は、ユーザの指紋を収集するために用いられ、プロセッサ801が指紋センサ814により収集された指紋に基づいてユーザの身元を識別するか、又は指紋センサ814が収集した指紋に基づいてユーザの身元を識別する。ユーザの身元が信頼可能な身元であると識別されると、ユーザは、スクリーンをアンロックすること、暗号化情報を見ること、ソフトウェアをダウンロードすること、支払い、及び設定を変更することなどを含む、関連する機密操作を実行することをプロセッサ801により許可される。指紋センサ814は、端末800の正面、裏面、又は側面に設置され得る。端末800に物理ボタン又はメーカーのLogoが設置される場合、指紋センサ814は物理ボタン又はメーカーのLogoと集積化され得る。
The
光学センサ815は、周囲光の強度を収集するために用いられる。1つの実施例では、プロセッサ801は、光学センサ815により収集された周囲光の強度に基づき、ディスプレイ805の表示輝度を制御することができる。具体的には、周囲光の強度が高い場合、ディスプレイ805の表示輝度を上げ、周囲光の強度が低い場合、ディスプレイ805の表示輝度を下げる。別の実施例では、プロセッサ801は、さらに、光学センサ815により収集された周囲光の強度に基づき、カメラ部品806の撮影パラメータを動的に調整することができる。
The optical sensor 815 is used to collect the intensity of the ambient light. In one embodiment, the processor 801 can control the display brightness of the
近接センサ816は、距離センサとも呼ばれ、通常、端末800のフロントパネルに設置される。近接センサ816は、ユーザと端末800の正面との間の距離を収集するために用いられる。1つの実施例では、近接センサ816が、ユーザと端末800の正面との間の距離が徐々に小さくなることを検出すると、プロセッサ801はディスプレイ805を画面点灯状態から画面消灯状態に切り替えるように制御し、近接センサ816が、ユーザと端末800の正面との間の距離が徐々に大きくなることを検出すると、プロセッサ801はディスプレイ805を画面消灯状態から画面点灯状態に切り替えるように制御する。
The proximity sensor 816 is also called a distance sensor and is typically installed on the front panel of the terminal 800. The proximity sensor 816 is used to collect the distance between the user and the front of the terminal 800. In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front of the terminal 800 is gradually decreasing, the processor 801 controls the
図8に示された構造は、端末800に対する限定を構成するものではなく、図示よりも多くの部品若しくは少ない部品を含み、又は、特定の部品を組み合わせ、又は異なる部品配置を採用してもよいことは当業者に理解される。
The structure shown in FIG. 8 does not constitute a limitation on
本発明の実施例は、非一時的コンピュータ可読記憶媒体をさらに提供し、前記記憶媒体における命令が端末のプロセッサにより実行されると、端末が上記実施例により提供されるフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法を実行することができる。 An embodiment of the present invention further provides a non-transitory computer-readable storage medium, and when instructions in the storage medium are executed by a processor of a terminal, the terminal can execute a module processing method for use in the foreground and background separation system provided by the above embodiment.
本発明の実施例は、端末上で実行されると、上記実施例により提供されるフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法を端末に実行させる、命令を含むコンピュータプログラム製品をさらに提供する。 An embodiment of the present invention further provides a computer program product including instructions that, when executed on a terminal, cause the terminal to execute a module processing method for use in the foreground/background separation system provided by the above embodiment.
図9は、本発明の実施例により提供されるサーバの構造概略図である。前述の実施例におけるバックグラウンドは、図9に示される構造によって実現され得る。該サーバは、バックグラウンドサーバクラスタ内のサーバであってもよい。具体的には、以下の通りである。 Figure 9 is a structural schematic diagram of a server provided by an embodiment of the present invention. The background in the above embodiment can be realized by the structure shown in Figure 9. The server may be a server in a background server cluster. Specifically, it is as follows:
サーバ900は、中央処理装置(CPU)901と、ランダムアクセスメモリ(RAM)902及び読み取り専用メモリ(ROM)903を含むシステムメモリ904と、システムメモリ904と中央処理装置901とを接続するシステムバス905とを含む。サーバ900は、コンピュータ内の各デバイス間の情報伝送を支援する基本入出力システム(I/Oシステム)906と、オペレーティングシステム913、アプリケーション914及び他のプログラムモジュール915を記憶するための大容量記憶装置907とをさらに含む。
The
基本入出力システム906は、情報を表示するためのディスプレイ908と、ユーザが情報を入力するためのマウスやキーボードなどの入力デバイス909とを含む。ディスプレイ908及び入力デバイス909は、システムバス905に接続された入出力コントローラ910を介して中央処理装置901に接続される。基本入出力システム906は、キーボード、マウス、又は電子スタイラスペンなどの複数の他のデバイスからの入力を受信して処理するための入出力コントローラ910をさらに含み得る。同様に、入出力コントローラ910は、ディスプレイ、プリンタ、又は他のタイプの出力デバイスに出力を提供する。
The basic input/
大容量記憶装置907は、システムバス905に接続された大容量記憶コントローラ(図示せず)を介して中央処理装置901に接続される。大容量記憶装置907及びそれに関連するコンピュータ可読媒体は、サーバ900に不揮発性記憶を提供する。即ち、大容量記憶装置907は、ハードドライブ又はCD-ROMドライブなどのコンピュータ可読媒体(図示せず)を含み得る。
The
一般性を失うことなく、コンピュータ可読媒体は、コンピュータ記憶媒体及び通信媒体を含み得る。コンピュータ記憶媒体は、コンピュータ可読命令、データ構造、プログラムモジュール又は他のデータなどの情報を記憶するための任意の方法又は技術によって実現される揮発性及び不揮発性、リムーバブル及びノンリムーバブル媒体を含む。コンピュータ記憶媒体は、RAM、ROM、EPROM、EEPROM、フラッシュメモリ又は他のソリッドステートストレージ技術、CD-ROM、DVD又は他の光学ストレージ、テープカートリッジ、磁気テープ、ディスクストレージ又は他の磁気記憶デバイスを含む。もちろん、当業者は、コンピュータ記憶媒体が上記のいくつかに限定されないことを理解する。上記のシステムメモリ904及び大容量記憶装置907は、メモリと総称することができる。
Without loss of generality, computer readable media may include computer storage media and communication media. Computer storage media includes volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state storage technology, CD-ROM, DVD or other optical storage, tape cartridges, magnetic tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to some of the above. The
本発明の各実施例によれば、サーバ900は、インターネットなどのネットワークを介してネットワーク上のリモートコンピュータに接続されて動作してもよい。即ち、サーバ900は、システムバス905に接続されたネットワークインターフェースユニット911を介してネットワーク912に接続されてもよく、又は、ネットワークインターフェースユニット911を用いて他のタイプのネットワーク又はリモートコンピュータシステム(図示せず)に接続されてもよい。
According to various embodiments of the present invention, the
上記メモリは、1つ又は複数のプログラムをさらに含み、1つ又は複数のプログラムは、メモリに記憶され、CPUによって実行されるように構成される。1つ又は複数のプログラムは、本発明の実施例により提供されるフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法を実行するためのもの含む。 The memory further includes one or more programs, the one or more programs being stored in the memory and configured to be executed by the CPU. The one or more programs include those for executing a module processing method for use in a foreground/background separation system provided by an embodiment of the present invention.
本発明の実施例は、非一時的コンピュータ可読記憶媒体をさらに提供し、前記記憶媒体における命令がサーバのプロセッサにより実行されると、サーバが上記実施例により提供されるフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法を実行することができる。 An embodiment of the present invention further provides a non-transitory computer-readable storage medium, the instructions of which, when executed by a processor of a server, enable the server to execute a modular processing method for use in the foreground and background separation system provided by the embodiment.
本発明の実施例は、サーバ上で実行されると、上記実施例により提供されるフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法をサーバに実行させる、命令を含むコンピュータプログラム製品をさらに提供する。 An embodiment of the present invention further provides a computer program product including instructions that, when executed on a server, cause the server to execute a module processing method for use in the foreground and background separation system provided by the embodiment above.
当業者であれば、上記実施形態を実施するためのステップの全て又は一部は、ハードウェアによって完成されてもよく、プログラムが関連するハードウェアを指示することによって完成されてもよく、上記プログラムは、コンピュータ可読記憶媒体に記憶されてもよく、上記記憶媒体は、読み取り専用メモリ、磁気ディスク又は光ディスクなどであってもよいことを理解できる。 A person skilled in the art can understand that all or part of the steps for implementing the above embodiment may be completed by hardware, or may be completed by a program instructing related hardware, and the above program may be stored in a computer-readable storage medium, and the above storage medium may be a read-only memory, a magnetic disk, an optical disk, etc.
以上は、本発明の実施例の好ましい実施例に過ぎず、本発明の実施例を限定するものではなく、本発明の実施例の精神と原則内で行われるいかなる修正、同等置換、改良などは、いずれも本発明の保護範囲内に含まれるべきである。 The above are merely preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
700 フォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理装置
701 第1の制御モジュール
702 第2の制御モジュール
703 第3の制御モジュール
800 端末
801 プロセッサ
802 メモリ
803 周辺デバイスインタフェース
804 無線周波数回路
805 ディスプレイ
806 カメラ部品
807 音声回路
808 測位部品
809 電源
810 センサ
811 加速度センサ
812 ジャイロセンサ
813 圧力センサ
814 指紋センサ
815 光学センサ
816 近接センサ
900 サーバ
901 中央処理装置
902 ランダムアクセスメモリ
903 読み取り専用メモリ
904 システムメモリ
905 システムバス
906 基本入出力システム
907 大容量記憶装置
908 ディスプレイ
909 入力デバイス
910 入出力コントローラ
911 ネットワークインターフェースユニット
912 ネットワーク
913 オペレーティングシステム
914 アプリケーション
915 他のプログラムモジュール
700 Modular processing device for use in foreground and
Claims (12)
目標モジュールに対する目標操作に応答して、前記フォアグラウンドが前記目標操作に基づいて、前記バックグラウンドが前記データセンターにおける前記目標モジュールに対応するデータを更新するように制御し、前記フォアグラウンドが更新後の前記目標モジュールに対応する前記データに基づいて前記インタラクティブインターフェースを更新するステップであって、前記目標モジュールは、前記複数のモジュールのうちの1つ又は複数のモジュールである、ステップと、
前記目標操作に対する取り消し命令が検出された場合、前記フォアグラウンドが前記取り消し命令に基づいて、前記バックグラウンドが前記データセンターにおける前記目標モジュールに対応する前記データを復元するように制御し、前記フォアグラウンドが復元後の前記目標モジュールに対応する前記データに基づいて、前記インタラクティブインターフェースを更新するステップと、を含む、
ことを特徴とするフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理方法。 A module processing method for a foreground/background separation system, the foreground/background separation system including a foreground and a background, an interactive interface is displayed in the foreground, the interactive interface is used to display a plurality of modules, a data center is disposed in the background, the data center is used to store module data for each of the plurality of modules, the module data includes a display method of the module, function data of the module, and a logical relationship between the module and each of the other modules, the foreground/background separation system includes a process setting system, the process setting system is used to provide a function of process setting, the process setting is a process of ordering functional modules and setting a relationship between each of the functional modules,
In response to a target operation on a target module, the foreground controls the background to update data corresponding to the target module in the data center based on the target operation, and the foreground updates the interactive interface based on the data corresponding to the updated target module, the target module being one or more of the multiple modules;
When a cancellation command for the target operation is detected, the foreground controls the background to restore the data corresponding to the target module in the data center based on the cancellation command, and the foreground updates the interactive interface based on the data corresponding to the restored target module.
11. A modular processing method for use in a foreground/background separation system, comprising:
前記目標操作に対するやり直し命令が検出された場合、前記フォアグラウンドが前記目標操作に基づいて、前記バックグラウンドが前記データセンターにおける前記目標モジュールに対応する前記データを更新するように制御し、前記フォアグラウンドが更新後の前記目標モジュールに対応する前記データに基づいて前記インタラクティブインターフェースを更新するステップを含む、
ことを特徴とする請求項1に記載の方法。 After the foreground controls the background to restore the data corresponding to the target module in the data center based on the cancellation command,
When a replay command for the target operation is detected, the foreground controls the background to update the data corresponding to the target module in the data center based on the target operation, and the foreground updates the interactive interface based on the data corresponding to the updated target module.
2. The method of claim 1 .
前記フォアグラウンドが前記目標操作に基づいて、前記バックグラウンドに1つ又は複数の第1のデータ更新命令を送信するステップであって、前記1つ又は複数の第1のデータ更新命令のうちのいずれか1つの第1のデータ更新命令は、前記バックグラウンドに、前記目標モジュールに対応するデータのうちの一部のデータを更新するように指示するために用いられる、ステップと、
前記フォアグラウンドが前記1つ又は複数の第1のデータ更新命令の送信に基づいて操作記録を生成するステップと、を含み、
前記フォアグラウンドが前記取り消し命令に基づいて、前記バックグラウンドが前記データセンターにおける前記目標モジュールに対応する前記データを復元するように制御するステップは、
前記フォアグラウンドが前記操作記録によって指示された前記目標操作の逆操作に基づいて、前記バックグラウンドに1つ又は複数の第2のデータ更新命令を送信するステップであって、前記1つ又は複数の第2のデータ更新命令のうちのいずれか1つの第2のデータ更新命令は、前記バックグラウンドに、前記データセンターにおける前記目標モジュールに対応する前記データのうちの前記一部のデータを前記目標操作が実行される前の状態に復元するように指示するために用いられる、ステップを含む、
ことを特徴とする請求項1に記載の方法。 The step of controlling the foreground to update the data corresponding to the target module in the data center based on the target operation by the background includes:
The foreground sends one or more first data update instructions to the background based on the target operation, and any one of the one or more first data update instructions is used to instruct the background to update a part of data corresponding to the target module;
generating an operation record by the foreground based on the transmission of the one or more first data update commands;
The step of controlling the foreground to restore the data corresponding to the target module in the data center based on the cancellation command by the background includes:
The method includes a step of transmitting one or more second data update instructions to the background based on an inverse operation of the target operation instructed by the operation record by the foreground, wherein any one of the one or more second data update instructions is used to instruct the background to restore the part of the data corresponding to the target module in the data center to a state before the target operation was executed.
2. The method of claim 1 .
前記フォアグラウンドが前記目標操作に基づいて、前記バックグラウンドに1つ又は複数の第1のデータ更新命令を送信するステップは、
前記フォアグラウンドが、前記バックグラウンドにまず第1のモジュール更新命令を送信し、次に第1の論理関係更新命令を送信して、前記バックグラウンドがまず前記データセンターに前記目標モジュールの前記モジュールデータを追加し、次に各前記他のモジュールの前記モジュールデータに前記目標モジュールと前記他のモジュールとの間の前記論理関係を追加するように制御するステップを含み、
前記フォアグラウンドが前記操作記録によって指示された前記目標操作の逆操作に基づいて、前記バックグラウンドに1つ又は複数の第2のデータ更新命令を送信するステップは、
前記フォアグラウンドが、前記バックグラウンドにまず第2の論理関係更新命令を送信し、次に第2のモジュール更新命令を送信して、前記バックグラウンドがまず前記データセンターの各前記他のモジュールの前記モジュールデータにおける前記目標モジュールと前記他のモジュールとの間の前記論理関係を削除し、次に前記データセンターにおける前記目標モジュールの前記モジュールデータを削除するように制御するステップを含む、
ことを特徴とする請求項3に記載の方法。 If the target operation is an add operation on the target module,
The step of transmitting one or more first data update commands to the background by the foreground based on the target operation includes:
The method includes a step of: the foreground first sends a first module update command to the background, and then sends a first logical relationship update command to control the background to first add the module data of the target module to the data center, and then add the logical relationship between the target module and the other modules to the module data of each of the other modules;
The step of transmitting one or more second data update commands to the background based on an inverse operation of the target operation indicated by the operation record by the foreground,
The foreground first transmits a second logical relationship update command to the background, and then transmits a second module update command to control the background to first delete the logical relationship between the target module and the other modules in the module data of each of the other modules in the data center, and then delete the module data of the target module in the data center;
4. The method according to claim 3 .
前記フォアグラウンドが前記目標操作に基づいて、前記バックグラウンドに1つ又は複数の第1のデータ更新命令を送信するステップは、
前記フォアグラウンドが、前記バックグラウンドにまず第1の論理関係更新命令を送信し、次に第1のモジュール更新命令を送信して、前記バックグラウンドがまず前記データセンターの各前記他のモジュールの前記モジュールデータにおける前記目標モジュールと前記他のモジュールとの間の前記論理関係を削除し、次に前記データセンターにおける前記目標モジュールの前記モジュールデータを削除するように制御するステップ、又は、
前記フォアグラウンドが、前記バックグラウンドにまず第1の論理関係更新命令を送信し、次に第1のモジュール更新命令を送信して、前記バックグラウンドが前記第1の論理関係更新命令を受信した時に前記データセンターの各前記他のモジュールの前記モジュールデータにおける前記他のモジュールと前記目標モジュールとの間の前記論理関係を削除するように制御し、前記バックグラウンドが前記第1のモジュール更新命令を受信した時に前記データセンターにおける前記目標モジュールの前記モジュールデータに削除マークを追加するように制御するステップを含み、
前記フォアグラウンドが前記操作記録によって指示された前記目標操作の逆操作に基づいて、前記バックグラウンドに1つ又は複数の第2のデータ更新命令を送信するステップは、
前記フォアグラウンドが、前記バックグラウンドにまず第2のモジュール更新命令を送信し、次に第2の論理関係更新命令を送信して、前記バックグラウンドがまず前記データセンターにおける前記目標モジュールの前記モジュールデータを復元し、次に各前記他のモジュールの前記モジュールデータにおける前記目標モジュールと前記他のモジュールとの間の前記論理関係を復元するように制御するステップ、又は、
前記フォアグラウンドが、前記バックグラウンドにまず第2のモジュール更新命令を送信し、次に第2の論理関係更新命令を送信して、前記バックグラウンドが前記第2のモジュール更新命令を受信した時に前記データセンターにおける前記目標モジュールの前記モジュールデータの前記削除マークを削除するように制御し、前記バックグラウンドが前記第2の論理関係更新命令を受信した時に前記データセンターの各前記他のモジュールの前記モジュールデータに前記他のモジュールと前記目標モジュールとの間の前記論理関係を追加するように制御するステップを含む、
ことを特徴とする請求項3に記載の方法。 If the target operation is a delete operation on the target module,
The step of transmitting one or more first data update commands to the background by the foreground based on the target operation includes:
The foreground first sends a first logical relationship update command to the background, and then sends a first module update command to control the background to first delete the logical relationship between the target module and the other modules in the module data of each of the other modules in the data center, and then delete the module data of the target module in the data center; or
The foreground includes a step of first transmitting a first logical relationship update command to the background, and then transmitting a first module update command to control the background to delete the logical relationship between the other modules and the target module in the module data of each of the other modules in the data center when the background receives the first logical relationship update command, and controlling the background to add a deletion mark to the module data of the target module in the data center when the background receives the first module update command;
The step of transmitting one or more second data update commands to the background based on an inverse operation of the target operation indicated by the operation record by the foreground,
The foreground first sends a second module update command to the background, and then sends a second logical relationship update command to control the background to first restore the module data of the target module in the data center, and then restore the logical relationship between the target module and the other modules in the module data of each of the other modules; or
The foreground includes a step of first transmitting a second module update command to the background, and then transmitting a second logical relationship update command to control the background to delete the deletion mark of the module data of the target module in the data center when the background receives the second module update command, and to add the logical relationship between the other modules and the target module to the module data of each of the other modules in the data center when the background receives the second logical relationship update command.
4. The method according to claim 3 .
前記フォアグラウンドが、前記バックグラウンドが前記データセンターにおける前記目標モジュールに対応する前記データをエクスポートして参照記憶位置にバックアップするように制御するステップであって、前記目標モジュールに対応する前記データは、前記目標モジュールのモジュールデータ、及び各前記他のモジュールの前記モジュールデータにおける前記目標モジュールと前記他のモジュールとの間の前記論理関係を含む、ステップを含み、
前記フォアグラウンドが、前記バックグラウンドにまず前記第2のモジュール更新命令を送信し、次に前記第2の論理関係更新命令を送信した後、さらに、
受信した前記第2のモジュール更新命令に応答して、前記バックグラウンドが、前記参照記憶位置から前記目標モジュールの前記モジュールデータを前記データセンターにインポートし、受信した前記第2の論理関係更新命令に応答して、前記バックグラウンドが、前記参照記憶位置から前記目標モジュールと各前記他のモジュールとの間の前記論理関係を前記データセンターにインポートするステップを含む、
ことを特徴とする請求項5に記載の方法。 before the foreground first transmits the first logical relationship update command and then transmits the first module update command to the background,
The foreground controls the background to export the data corresponding to the target module in the data center and back it up to a reference storage location, the data corresponding to the target module including module data of the target module and the logical relationship between the target module and the other modules in the module data of each of the other modules;
the foreground first transmits the second module update command to the background, and then transmits the second logical relationship update command to the background, and then
In response to the received second module update command, the background imports the module data of the target module from the reference storage location to the data center, and in response to the received second logical relationship update command, the background imports the logical relationships between the target module and each of the other modules from the reference storage location to the data center.
6. The method of claim 5 .
前記接続関係は、前記インタラクティブインターフェース上の前記モジュールと各前記他のモジュールとの間の接続線関係を示し、
前記購読関係は、前記モジュールの内部パラメータ、入力のうちの少なくとも1つと各前記他のモジュールの出力との間の関連関係、及び/又は、前記モジュールの出力と各前記他のモジュールの内部パラメータ、入力のうちの少なくとも1つとの間の関連関係を示す、
ことを特徴とする請求項3に記載の方法。 the logical relationship between the module and each of the other modules includes a connection relationship between the module and each of the other modules, and a subscription relationship between the module and each of the other modules;
the connection relationship indicates a connection line relationship between the module and each of the other modules on the interactive interface;
the subscription relationship indicates an association relationship between at least one of the internal parameters, inputs of the module and an output of each of the other modules, and/or an association relationship between an output of the module and at least one of the internal parameters, inputs of each of the other modules;
4. The method according to claim 3 .
前記フォアグラウンドが前記目標操作に基づいて、前記バックグラウンドに複数の第1のデータ更新命令を送信するステップは、
前記フォアグラウンドが前記バックグラウンドに第1の購読関係削除命令を送信するステップであって、前記第1の購読関係削除命令は、前記バックグラウンドに、各前記他のモジュールの前記モジュールデータにおける前記他のモジュールとエッジ目標モジュールとの間の購読関係を削除するように指示するために用いられ、前記エッジ目標モジュールは、複数の目標モジュールのうち、前記他のモジュールとの間に論理関係が存在する目標モジュールである、ステップと、
前記フォアグラウンドが前記バックグラウンドに第1の接続関係削除命令を送信するステップであって、前記第1の接続関係削除命令は、前記バックグラウンドに、各前記他のモジュールの前記モジュールデータにおける前記他のモジュールと前記エッジ目標モジュールとの間の接続関係を削除するように指示するために用いられる、ステップと、
前記フォアグラウンドが前記バックグラウンドに第1のモジュール削除命令を送信するステップであって、前記第1のモジュール削除命令は、前記バックグラウンドに、前記複数の目標モジュールの前記モジュールデータを削除するように指示するために用いられるステップと、を含み、
又は、
前記フォアグラウンドが前記バックグラウンドに購読関係削除命令Aを送信するステップであって、前記購読関係削除命令Aは、前記バックグラウンドに、各前記目標モジュールに対して、後実行モジュールと、前実行モジュール及び前記目標モジュールのそれぞれとの間の購読関係を削除するように指示するために用いられ、前記後実行モジュールは、前記フォアグラウンドに表示されたフローチャートにおいて前記目標モジュールの後に実行されるモジュールであり、前記前実行モジュールは、フローチャートにおいて前記目標モジュールの前に実行されるモジュールである、ステップと、
前記フォアグラウンドが前記バックグラウンドに購読関係削除命令Bを送信するステップであって、前記購読関係削除命令Bは、前記バックグラウンドに、複数の目標モジュール間の購読関係を削除するように指示するために用いられる、ステップと、
前記フォアグラウンドが前記バックグラウンドに購読関係削除命令Cを送信するステップであって、前記購読関係削除命令Cは、前記バックグラウンドに、各前記目標モジュールと前記前実行モジュールとの間の購読関係を削除するように指示するために用いられる、ステップと、
前記フォアグラウンドが前記バックグラウンドに接続関係削除命令Aを送信するステップであって、前記接続関係削除命令Aは、前記バックグラウンドに、前記後実行モジュールと各前記目標モジュールのそれぞれとの間の接続関係を削除するように指示するために用いられる、ステップと、
前記フォアグラウンドが前記バックグラウンドに接続関係削除命令Bを送信するステップであって、前記接続関係削除命令Bは、前記バックグラウンドに、前記複数の目標モジュール間の接続関係を削除するように指示するために用いられる、ステップと、
前記フォアグラウンドが前記バックグラウンドに接続関係削除命令Cを送信するステップであって、前記接続関係削除命令Cは、前記バックグラウンドに、各前記目標モジュールと前記前実行モジュールとの間の接続関係を削除するように指示するために用いられる、ステップと、
前記フォアグラウンドが前記バックグラウンドに第1のモジュール削除命令を送信するステップであって、前記第1のモジュール削除命令は、前記複数の目標モジュールの前記モジュールデータにおける残りのデータを削除するように指示するために用いられる、ステップと、を含む、
ことを特徴とする請求項7に記載の方法。 When the number of the target modules is more than one,
The step of transmitting a plurality of first data update commands to the background based on the target operation by the foreground includes:
A step of the foreground sending a first subscription relationship deletion command to the background, the first subscription relationship deletion command being used to instruct the background to delete a subscription relationship between the other module and an edge target module in the module data of each of the other modules, the edge target module being a target module among a plurality of target modules that has a logical relationship with the other module;
a step of the foreground transmitting a first connection relationship deletion command to the background, the first connection relationship deletion command being used to instruct the background to delete a connection relationship between the other module and the edge target module in the module data of each of the other modules;
The foreground sends a first module deletion command to the background, the first module deletion command being used to instruct the background to delete the module data of the plurality of target modules;
Or,
a step of transmitting a subscription relationship deletion command A from the foreground to the background, the subscription relationship deletion command A being used to instruct the background to delete, for each of the target modules, a subscription relationship between a post-execution module and each of the target modules, the post-execution module being a module executed after the target module in a flowchart displayed in the foreground, and the pre-execution module being a module executed before the target module in a flowchart;
A step of the foreground sending a subscription relationship deletion command B to the background, the subscription relationship deletion command B being used to instruct the background to delete a subscription relationship between a plurality of target modules;
A step of the foreground sending a subscription relationship deletion command C to the background, the subscription relationship deletion command C being used to instruct the background to delete a subscription relationship between each of the target modules and the previously executed module;
a step of transmitting a connection relationship deletion command A from the foreground to the background, the connection relationship deletion command A being used to instruct the background to delete a connection relationship between the post-execution module and each of the target modules;
a step of transmitting a connection relationship deletion command B from the foreground to the background, the connection relationship deletion command B being used to instruct the background to delete the connection relationships between the plurality of target modules;
a step of the foreground transmitting a connection relationship deletion command C to the background, the connection relationship deletion command C being used to instruct the background to delete a connection relationship between each of the target modules and the previously executed module;
The foreground sends a first module deletion command to the background, the first module deletion command being used to instruct the background to delete remaining data in the module data of the plurality of target modules.
8. The method of claim 7.
目標モジュールに対する目標操作に応答して、前記フォアグラウンドに前記目標操作に基づいて、前記バックグラウンドが前記データセンターにおける前記目標モジュールに対応するデータを更新するように制御させ、前記フォアグラウンドに更新後の前記目標モジュールに対応する前記データに基づいて前記インタラクティブインターフェースを更新させるための第1の制御モジュールであって、前記目標モジュールは、前記複数のモジュールのうちの1つ又は複数のモジュールである、第1の制御モジュールと、
前記目標操作に対する取り消し命令が検出された場合、前記フォアグラウンドに前記取り消し命令に基づいて、前記バックグラウンドが前記データセンターにおける前記目標モジュールに対応する前記データを復元するように制御させ、前記フォアグラウンドに復元後の前記目標モジュールに対応する前記データに基づいて、前記インタラクティブインターフェースを更新させるための第2の制御モジュールと、を含む、
ことを特徴とするフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理装置。 A module processing device for use in a foreground/background separation system, the foreground/background separation system including a foreground and a background, an interactive interface is displayed in the foreground, the interactive interface is used to display a plurality of modules, a data center is disposed in the background, the data center is used to store module data for each of the plurality of modules, the module data includes a display method of the module, function data of the module, and a logical relationship between the module and each of the other modules, the foreground/background separation system includes a process setting system, the process setting system is used to provide a function of process setting, the process setting is a process of ordering functional modules and setting a relationship between each of the functional modules,
a first control module for, in response to a target operation on a target module, controlling the foreground to control the background to update data corresponding to the target module in the data center based on the target operation, and foreground to update the interactive interface based on the data corresponding to the updated target module, the target module being one or more of the plurality of modules;
a second control module for controlling the foreground to restore the data corresponding to the target module in the data center based on the cancellation command when a cancellation command for the target operation is detected, and for controlling the foreground to update the interactive interface based on the data corresponding to the restored target module;
13. A module processing device for use in a foreground/background separation system, comprising:
プロセッサ実行可能命令を記憶するためのメモリと、を含む、フォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理装置であって、
前記プロセッサは、請求項1~8のいずれか1項に記載の方法のステップを実行するように構成される、
ことを特徴とするフォアグラウンドとバックグラウンドの分離システムに用いるモジュール処理装置。 A processor;
a memory for storing processor executable instructions, said memory comprising:
The processor is configured to execute the steps of the method according to any one of claims 1 to 8.
13. A module processing device for use in a foreground/background separation system, comprising:
ことを特徴とする不揮発性コンピュータ可読記憶媒体。 A non-volatile computer readable storage medium having instructions stored thereon that, when executed by a processor, perform the steps of the method according to any one of claims 1 to 8.
A non-volatile computer readable storage medium comprising:
ことを特徴とするコンピュータプログラム。 A computer program comprising instructions which, when executed on a computer, cause the computer to carry out the steps of the method according to any one of claims 1 to 8.
A computer program comprising:
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111564941.4A CN114253442B (en) | 2021-12-20 | 2021-12-20 | Module processing method and device for foreground and background separation system and storage medium |
| CN202111564941.4 | 2021-12-20 | ||
| PCT/CN2022/138610 WO2023116505A1 (en) | 2021-12-20 | 2022-12-13 | Module processing method and apparatus for foreground and background separation system, and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2025501739A JP2025501739A (en) | 2025-01-23 |
| JP7625149B2 true JP7625149B2 (en) | 2025-01-31 |
Family
ID=80796078
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2024537143A Active JP7625149B2 (en) | 2021-12-20 | 2022-12-13 | Module processing method, device and storage medium for use in foreground/background separation system |
Country Status (4)
| Country | Link |
|---|---|
| JP (1) | JP7625149B2 (en) |
| KR (1) | KR102757840B1 (en) |
| CN (1) | CN114253442B (en) |
| WO (1) | WO2023116505A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114253442B (en) * | 2021-12-20 | 2024-08-09 | 杭州海康机器人股份有限公司 | Module processing method and device for foreground and background separation system and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003337728A (en) | 2002-05-17 | 2003-11-28 | Hitachi Ltd | Data file history management method and device |
| CN108920653A (en) | 2018-07-03 | 2018-11-30 | 武汉斗鱼网络科技有限公司 | A kind of page generation method, device, server and storage medium |
| CN112597417A (en) | 2020-12-18 | 2021-04-02 | 北京达佳互联信息技术有限公司 | Page updating method and device, electronic equipment and storage medium |
| CN112685487A (en) | 2021-01-15 | 2021-04-20 | 金现代信息产业股份有限公司 | Method and apparatus for simulating relational database through IndexDB in browser environment |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103164525B (en) * | 2013-03-26 | 2016-08-03 | 北界创想(北京)软件有限公司 | WEB application dissemination method and device |
| CN106372139A (en) * | 2016-08-27 | 2017-02-01 | 乐视控股(北京)有限公司 | Operation notice generation method, foreground data updating method and database system |
| CN106802803B (en) * | 2017-01-06 | 2020-06-05 | 腾讯科技(深圳)有限公司 | Application data processing method and device |
| CN114253442B (en) * | 2021-12-20 | 2024-08-09 | 杭州海康机器人股份有限公司 | Module processing method and device for foreground and background separation system and storage medium |
-
2021
- 2021-12-20 CN CN202111564941.4A patent/CN114253442B/en active Active
-
2022
- 2022-12-13 WO PCT/CN2022/138610 patent/WO2023116505A1/en not_active Ceased
- 2022-12-13 JP JP2024537143A patent/JP7625149B2/en active Active
- 2022-12-13 KR KR1020247024402A patent/KR102757840B1/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003337728A (en) | 2002-05-17 | 2003-11-28 | Hitachi Ltd | Data file history management method and device |
| CN108920653A (en) | 2018-07-03 | 2018-11-30 | 武汉斗鱼网络科技有限公司 | A kind of page generation method, device, server and storage medium |
| CN112597417A (en) | 2020-12-18 | 2021-04-02 | 北京达佳互联信息技术有限公司 | Page updating method and device, electronic equipment and storage medium |
| CN112685487A (en) | 2021-01-15 | 2021-04-20 | 金现代信息产业股份有限公司 | Method and apparatus for simulating relational database through IndexDB in browser environment |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2025501739A (en) | 2025-01-23 |
| CN114253442A (en) | 2022-03-29 |
| WO2023116505A1 (en) | 2023-06-29 |
| CN114253442B (en) | 2024-08-09 |
| KR102757840B1 (en) | 2025-01-21 |
| KR20240116856A (en) | 2024-07-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109862267B (en) | Shooting method and terminal equipment | |
| WO2021244267A1 (en) | Application program transplantation method and apparatus, device, and medium | |
| CN112230907B (en) | Program generation method, device, terminal and storage medium | |
| CN111522798B (en) | Data synchronization method, device, equipment and readable storage medium | |
| CN110147380A (en) | Data updating method, device, server and storage medium | |
| CN112836838B (en) | Reservation request processing method, device, equipment and storage medium | |
| CN111949680A (en) | Data processing method and device, computer equipment and storage medium | |
| CN107979851A (en) | Abnormal data report method and device | |
| CN110049185A (en) | Image processing method and terminal device | |
| CN109901760B (en) | Object control method and terminal device | |
| CN111597797A (en) | Method, device, equipment and medium for editing social circle message | |
| CN114637436A (en) | Information sharing method and device, computer readable storage medium and terminal | |
| JP7625149B2 (en) | Module processing method, device and storage medium for use in foreground/background separation system | |
| CN111054077B (en) | Method and device for managing game playing, electronic equipment and storage medium | |
| CN113220935B (en) | Video data storage and query method and device | |
| CN112711636B (en) | Data synchronization method, device, equipment and medium | |
| CN115730573A (en) | Processing method, device and equipment of table data and readable storage medium | |
| CN112698787A (en) | Data writing method and device and computer storage medium | |
| CN115248939A (en) | Data verification method, device, equipment and storage medium | |
| CN111158791A (en) | Configuration file updating method, device and system and storage medium | |
| CN111601035A (en) | An image processing method and electronic device | |
| CN112181938A (en) | Database cleaning method, device and computer readable storage medium | |
| CN110070497A (en) | A kind of image processing method and terminal device | |
| CN110851435A (en) | Data storage method and device | |
| HK40084176A (en) | Processing method of table data, device, equipment and readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20240823 Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20240619 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20240619 |
|
| A871 | Explanation of circumstances concerning accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A871 Effective date: 20240823 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20250107 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250121 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7625149 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |