CN116028055A - Target object state control method and device, electronic equipment and storage medium - Google Patents

Target object state control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116028055A
CN116028055A CN202211716413.0A CN202211716413A CN116028055A CN 116028055 A CN116028055 A CN 116028055A CN 202211716413 A CN202211716413 A CN 202211716413A CN 116028055 A CN116028055 A CN 116028055A
Authority
CN
China
Prior art keywords
environment
target object
information data
environment information
environmental information
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.)
Granted
Application number
CN202211716413.0A
Other languages
Chinese (zh)
Other versions
CN116028055B (en
Inventor
姜红喜
卢石碧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Wanyi Digital Technology Co ltd
Original Assignee
Shenzhen Wanyi Digital Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Wanyi Digital Technology Co ltd filed Critical Shenzhen Wanyi Digital Technology Co ltd
Priority to CN202211716413.0A priority Critical patent/CN116028055B/en
Priority claimed from CN202211716413.0A external-priority patent/CN116028055B/en
Publication of CN116028055A publication Critical patent/CN116028055A/en
Application granted granted Critical
Publication of CN116028055B publication Critical patent/CN116028055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application relates to a target object state control method, a target object state control device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring environment information data of an environment to be executed of a target object; the target object includes a control or a behavior; analyzing the environmental information data according to a preset environmental analysis mapping relation to obtain environmental information parameters corresponding to the environmental information data; according to the environment information parameters, controlling the state of the target object in the environment to be executed; the status includes visibility and enablement. According to the method, the environment judgment of the target object can be independently abstracted, the environment information data is analyzed through the preset environment analysis mapping relation, whether the target object is enabled or not and whether the target object is displayed in the environment to be executed or not is controlled according to the obtained environment information parameters, so that the complexity of user codes is reduced, the coupling degree between the whole environment control and the target object is effectively reduced, and therefore software is easier to maintain and expand.

Description

Target object state control method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and apparatus for controlling a target object state, an electronic device, and a storage medium.
Background
Most of the existing software, whether each target object (the target object may be a control or an action behavior) is executable or visible under different environments (the environments may also be called execution environments, may be a working mode or state of an application program, such as a 3D mode or a 2D mode, an editing mode or a non-editing mode, a sketch or a non-sketch, etc.), is based on a large number of if else branch decisions, so that the code repeatability is high, and is not easy to expand, especially the combination environment (such as a 2D sketch or a 3D editing mode), the whole branch decision process may be very complex, and the software may become very difficult to maintain.
Disclosure of Invention
In order to solve the technical problem of how to improve maintainability of software, the application provides a target object state control method, a target object state control device, electronic equipment and a storage medium.
In a first aspect, the present application provides a target object state control method, where the method includes:
acquiring environment information data of an environment to be executed of a target object; the target object comprises a control or a behavior;
analyzing the environmental information data according to a preset environmental analysis mapping relation to obtain environmental information parameters corresponding to the environmental information data; the environment analysis mapping relation is the mapping relation between the environment information data and the environment information parameters;
according to the environment information parameters, controlling the state of the target object in the environment to be executed; the status includes visibility and enablement;
optionally, before analyzing the environmental information data according to a preset environmental analysis mapping relationship to obtain environmental information parameters corresponding to the environmental information data, the method further includes: acquiring the environment analysis mapping relation;
the generation process of the environment analysis mapping relation comprises the following steps:
determining target environment information parameters of the target object in each execution environment;
configuring corresponding target environment information data for each target environment information parameter, and taking the corresponding relation between all the target environment information data and the target environment information parameters as the environment analysis mapping relation;
optionally, acquiring the environmental information data of the environment to be executed of the target object includes:
acquiring an environmental information dataset of the target object;
determining the environmental information data to be executed from the environmental information data set;
optionally, acquiring the environmental information dataset of the target object includes:
in the initialization process of the target object, acquiring target data, recording the target data in the target object, and taking the target data recorded in the target object as the environment information data set;
optionally, the environmental information parameter includes environmental information and a state of the environmental information;
analyzing the environmental information data according to a preset environmental analysis mapping relation to obtain environmental information parameters corresponding to the environmental information data, wherein the method comprises the following steps:
analyzing the environmental information data according to a preset environmental analysis mapping relation to obtain the environmental information of the target object in the environment to be executed, and the visibility and the usability of the environmental information;
optionally, controlling the state of the target object in the environment to be executed according to the environment information parameter includes:
controlling the target object to execute the environment information according to the visibility and the enabling property of the environment information in the execution environment;
optionally, controlling the target object to execute the environment information according to the visibility and the enabling performance of the environment information in the execution environment includes:
acquiring a visibility value and an enabling value of the environment information; the visibility value is used to characterize the visibility, and the enablement value is used to characterize the enablement;
and executing the environment information of the target object in the execution environment according to the visibility value and the enabling value.
In a second aspect, the present application provides a target object state control device, the device including:
the acquisition module is used for acquiring environment information data of an environment to be executed of the target object; the target object comprises a control or a behavior;
the analysis module is used for analyzing the environmental information data according to a preset environmental analysis mapping relation to obtain environmental information parameters corresponding to the environmental information data; the environment analysis mapping relation is the mapping relation between the environment information data and the environment information parameters;
the switching module is used for controlling the state of the target object in the environment to be executed according to the environment information parameter; the status includes visibility and enablement.
In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and a processor, configured to implement the steps of the target object state control method according to any one of the embodiments of the first aspect when executing the program stored in the memory.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the target object state control method according to any one of the embodiments of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
according to the method provided by the embodiment of the application, the environment information data of the environment to be executed of the target object is obtained; the target object comprises a control or a behavior; analyzing the environmental information data according to a preset environmental analysis mapping relation to obtain environmental information parameters corresponding to the environmental information data; the environment analysis mapping relation is the mapping relation between the environment information data and the environment information parameters; according to the environment information parameters, controlling the state of the target object in the environment to be executed; the status includes visibility and enablement. According to the method, the environment judgment of the target object can be independently abstracted, the environment information data is analyzed through the preset environment analysis mapping relation, whether the target object is enabled or not and whether the target object is displayed in the environment to be executed or not is controlled according to the obtained environment information parameters, so that the complexity of user codes is reduced, the coupling degree between the whole environment control and the target object is effectively reduced, and therefore software is easier to maintain and expand.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a system architecture diagram of a target object state control method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a method for controlling the status of a target object according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating a method for controlling a status of a target object according to another embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a target object state control device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The first embodiment of the present application provides a target object state control method, which can be applied to a system architecture shown in fig. 1, where the system architecture at least includes a terminal 101 and a server 102, and the terminal 101 and the server 102 establish a communication connection.
The method can be applied to the terminal 101 in the system architecture and can also be applied to the server 102, wherein the terminal 101 can be a desktop computer, a tablet computer, a notebook computer, an supercomputer and other devices, and the server 102 can be a local server, a cloud server or a server cluster. The system architecture, when applied to terminal 101, may also include only terminal 101, without limitation.
Next, based on the system architecture, the method for controlling the state of the target object is described in detail, as shown in fig. 2, and the method for controlling the state of the target object includes:
step 201, obtaining environment information data of an environment to be executed of a target object; the target object includes a control or a behavior;
the action, i.e. action, may be an action execution unit, such as a menu item, an icon button item, or a shortcut key, etc. The environment to be executed is the environment to be accessed by the target object, different environment information data correspond to different environments, the environment information data can be obtained from configuration files or information types, different software application programs are different, and the method for obtaining the environment information data is not limited in this embodiment.
Step 202, analyzing the environmental information data according to a preset environmental analysis mapping relation to obtain environmental information parameters corresponding to the environmental information data; the environment analysis mapping relation is the mapping relation between the environment information data and the environment information parameters;
the context information data may be provided in an enumeration variable of an environment, where each bit represents an environment pair, such as bit0 represents sketch and non-sketch environments, bit1 represents 2D and 3D environments, and each bit represents the main environment of the current environment when bit is 1. An environment parser may be provided to parse the environment information data to obtain an actual environment represented by the environment information data, such as a sketch environment or a non-sketch environment, a 2D environment or a 3D environment, and so on.
It should be noted that the environment represented by each bit may be set as required, and the above examples are only illustrative, and are not meant to limit the present invention.
In one embodiment, the environmental information parameter includes environmental information and a state of the environmental information. According to a preset environment analysis mapping relation, analyzing the environment information data to obtain environment information parameters corresponding to the environment information data, wherein the environment information parameters comprise: and analyzing the environmental information data according to a preset environmental analysis mapping relation to obtain the environmental information of the target object in the environment to be executed, and the visibility and the usability of the environmental information.
In this embodiment, the environment information includes a sketch or non-sketch, 2D or 3D, undo or non-undo, redo or non-redo, and the like, and the status includes whether the above environments are visible, enabled (i.e. available), and the like.
Step 203, controlling the state of the target object in the environment to be executed according to the environment information parameter; the status includes visibility and enablement.
Specifically, it may include: the control target object executes the environment information in the execution environment according to the visibility and the enabling property of the environment information.
Wherein, the visibility value is used for representing the visibility and the enablement value is used for representing the enablement by acquiring the visibility value and the enablement value of the environment information; and executing the environment information of the target object in the execution environment according to the visibility value and the enablement value. For example, the visibility value corresponding to the sketch is 1, which is indicated as a sketch environment, the visibility value corresponding to the 2D is 1, which is indicated as a 2D environment, and different environment pairs may exist simultaneously, for example, when the visibility values corresponding to the 2D and the sketch are both 1, the sketch environment corresponding to the 2D is indicated, the visibility value is similar to the visibility value, for example, the visibility value corresponding to the sketch is 1, which represents that the sketch environment is available, and the description is omitted.
After the environmental information parameters are analyzed, the visibility and the enabling performance of the target object in the environment needing to enter can be determined according to the environmental information parameters. Four variables, namely a visible variable, an infra-visible variable, an enabling variable and a disable variable (VisibleEnv, invisibleEnv, enableEnv, disableEnv can be used, and specific names are not limited), can be set to control the display and non-display of the main environment, enable and disable the main environment, the variable is true when the variable value is set to be 1, the environment information parameter can determine the state of a target object in each environment through the values of four states of the current environment, and the automatic control of an interface can be realized under the switching of different environments.
In this embodiment, the environment judgment of the target object may be separately abstracted, the environmental information data may be parsed by the preset environmental parsing mapping relationship, and whether the target object is enabled or not and whether the target object is displayed in the environment to be executed may be controlled according to the obtained environmental information parameter, so as to reduce the complexity and expansibility of the user code, and effectively reduce the coupling degree between the whole environmental control and the target object, so that the software becomes easier to maintain and expand.
In one embodiment, according to a preset environment analysis mapping relationship, analyzing the environment information data, and before obtaining the environment information parameters corresponding to the environment information data, the method further includes:
and obtaining an environment analysis mapping relation.
The generation process of the environment analysis mapping relation comprises the following steps: determining target environment information parameters of a target object in each execution environment; and configuring corresponding target environment information data for each target environment information parameter, and taking the corresponding relation between all the target environment information data and the target environment information parameter as an environment analysis mapping relation.
In this embodiment, the target environment information parameters of the target object in each environment may be preconfigured, and the corresponding target environment information data may be configured, so as to be used as the environment analysis mapping relationship for analysis of the environment information data.
In one embodiment, acquiring environment information data of an environment to be executed of a target object includes: acquiring an environmental information dataset of a target object; environmental information data to be executed is determined from the environmental information data set.
Wherein, obtain the environmental information dataset of the target object, include: in the initialization process of the target object, target data is acquired and recorded in the target object, and the target data recorded in the target object is used as an environment information data set.
In this embodiment, when the control or the action is initialized, the environment information data of the control is read or initialized, and is recorded in the control, and when the control or the action needs to switch the environment, the corresponding environment information data is determined as the environment information data set.
Next, in a specific embodiment, the target object state control method, as shown in fig. 3, may be edited based on an action_definitions. Json configuration file about a control or an action, (different application programs may provide different configuration editing methods, taking qt (application program development framework) as an example, control elements in qt may be associated with one action, and if only one action information class is added to the control to describe environment information of the current control, the control can be supported, and is not limited to configuration files or codes).
And reading or initializing the environment information data of the controls in the control or action initializing process, and recording the environment information data in the controls.
When the control or the action needs to be displayed or executed, the control or the action gives the own environment information data to an environment analyzer.
The environment analyzer acquires the environment appEnv of the current application program and the environment information parameter actionEnv of the current control or action by analyzing the environment information data.
The visibility environment information in the actionEnv is expanded to obtain action visible environment list (abbreviated as actionVisibleEnvList), then the current actionVisibleEnvList is traversed and logic operation is carried out with the appEnv to obtain the visibility of the current action control.
The enabling environment information in the actionEnv is expanded to obtain action enable environment list (called actionEnableEnvList for short), then the current actionEnableEnvList is traversed and logic operation is carried out with the appEnv to obtain the enabling performance of the current action control.
The environment analyzer returns the analyzed visibility and the performance of the action to the corresponding control or action, and when the control or action executes show or execution, the environment analyzer decides whether to be visible or enable according to the obtained visibility or performance value.
According to the method, only the environment description information is added in the environment information of the corresponding control or action, so that whether the control or action is displayed or enabled in different environments is automatically determined by the environment mechanism through analyzing the environment information, no other codes are needed, the complexity of user codes is reduced, the coupling degree between the whole environment control and a target object is effectively reduced, and therefore software is easier to maintain and expand.
Wherein, because EnableEnv and DisableEnv, visibleEnv and Invisibleenv have mutual exclusion before, a certain mutual exclusion mechanism may be set, such as:
each bit controls an environment pair, each environment pair comprises a current environment and a non-current environment, and mutual exclusion (such as a Sketch and a non-Sketch, a View2D and a View3D, etc.), each environment pair occupies one bit, each environment pair has a domin environment, a non-domin environment, and the domin environment is the environment represented when the current bit is 1. The following are provided: sketch, view2D, undoable, redoable is a domin environment.
Such as: when EnableEnv is set to 1, representing that a sketch is available, a non-sketch is not available; when DisableEnv is set to 1, representing that sketches are not available, non-sketches are available, as shown in Table 1 below.
TABLE 1
Figure BDA0004027738470000061
Wherein, all the settings in table 1 may be based on BitDomin, i.e., based on BitDomin for the row of yes, and non-BitDomin (i.e., bitDomin for the row of no) may not be set. Alternatively, the row set based on BitDomin being no may be set, in which case the row with BitDomin being yes is not set.
Each action controls its behavior in different environments, which can be set by an action_definitions.json file (of course, this file is not necessary, and only one environment information field needs to be provided for each control to store environment configuration information).
Examples are as follows:
setting that a certain action is not displayable under 2D, and the 3D is displayable, wherein the action is InvisibleEnv= "View2D";
setting that a certain action can be displayed under 2D and 3D can not be displayed, and the action can be visibleenv= "View2D";
setting a certain action under a 2D Sketch, wherein the function mask can be disable env= "View2D & Sketch";
setting a certain action under a 2D Sketch, and enabling a function, wherein the function can be EnableEnv= "View2D & Sketch";
setting a certain action to be in a 2d sketch or sketch undo environment, and enabling the function can be
EnableEnv="View2D&Sketch,Sketch&Undoable";
Setting a certain action in a 2d sketch or sketch undo environment, the function shielding can be
DisableEnv="View2D&Sketch,Sketch&Undoable"。
Of course, the above is merely an example in a single environment or multiple environments, and may be modified as needed, without limitation.
In this embodiment, the environment information (describing whether the current control or action is visible or available in various environments) is provided through the control or action, and an environment analyzer is provided and is responsible for analyzing the environment information of the control or action, and the visibility and availability of different controls under different environments are solved by decoupling the operation modes or states (environments) of the control or action and the application program.
Based on the same technical concept, a second embodiment of the present application provides a target object state control device, as shown in fig. 4, including:
an acquiring module 401, configured to acquire environmental information data of an environment to be executed of a target object; the target object comprises a control or a behavior;
the parsing module 402 is configured to parse the environmental information data according to a preset environmental parsing mapping relationship, so as to obtain environmental information parameters corresponding to the environmental information data; the environment analysis mapping relation is the mapping relation between the environment information data and the environment information parameters;
a switching module 403, configured to control a state of the target object in the environment to be executed according to the environmental information parameter; the status includes visibility and enablement.
The device can independently abstract the environment judgment of the target object, analyze the environment information data through the preset environment analysis mapping relation, and control whether the target object is enabled or not and whether the target object is displayed in the environment to be executed according to the obtained environment information parameter, so that the complexity of a user code is reduced, the coupling degree between the whole environment control and the target object is effectively reduced, and the software is easier to maintain and expand.
As shown in fig. 5, a third embodiment of the present application provides an electronic device, which includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 perform communication with each other through the communication bus 114,
a memory 113 for storing a computer program;
in one embodiment, the processor 111 is configured to implement the target object state control method provided in any one of the foregoing method embodiments when executing the program stored in the memory 113, where the method includes:
acquiring environment information data of an environment to be executed of a target object; the target object comprises a control or a behavior;
analyzing the environmental information data according to a preset environmental analysis mapping relation to obtain environmental information parameters corresponding to the environmental information data; the environment analysis mapping relation is the mapping relation between the environment information data and the environment information parameters;
according to the environment information parameters, controlling the state of the target object in the environment to be executed; the status includes visibility and enablement.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The fourth embodiment of the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the target object state control method provided by any one of the method embodiments described above.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. In the description, suffixes such as "module", "part" or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for controlling the state of a target object, the method comprising:
acquiring environment information data of an environment to be executed of a target object; the target object comprises a control or a behavior;
analyzing the environmental information data according to a preset environmental analysis mapping relation to obtain environmental information parameters corresponding to the environmental information data; the environment analysis mapping relation is the mapping relation between the environment information data and the environment information parameters;
according to the environment information parameters, controlling the state of the target object in the environment to be executed; the status includes visibility and enablement.
2. The method according to claim 1, wherein before analyzing the environmental information data according to a preset environmental analysis mapping relationship to obtain environmental information parameters corresponding to the environmental information data, the method further comprises: acquiring the environment analysis mapping relation;
the generation process of the environment analysis mapping relation comprises the following steps:
determining target environment information parameters of the target object in each execution environment;
and configuring corresponding target environment information data for each target environment information parameter, and taking the corresponding relation between all the target environment information data and the target environment information parameter as the environment analysis mapping relation.
3. The method according to claim 1, wherein acquiring environmental information data of an environment to be executed of the target object includes:
acquiring an environmental information dataset of the target object;
the environmental information data to be executed is determined from the environmental information data set.
4. The method of claim 1, wherein obtaining the environmental information dataset of the target object comprises:
and in the initialization process of the target object, acquiring target data, recording the target data in the target object, and taking the target data recorded in the target object as the environment information data set.
5. The method of claim 1, wherein the environmental information parameter comprises environmental information and a status of the environmental information;
analyzing the environmental information data according to a preset environmental analysis mapping relation to obtain environmental information parameters corresponding to the environmental information data, wherein the method comprises the following steps:
and analyzing the environment information data according to a preset environment analysis mapping relation to obtain the environment information of the target object in the environment to be executed, and the visibility and the usability of the environment information.
6. The method of claim 5, wherein controlling the state of the target object in the environment to be executed according to the environment information parameter comprises:
and controlling the target object to execute the environment information according to the visibility and the enabling performance of the environment information in the execution environment.
7. The method of claim 6, wherein controlling the target object to execute the environment information in the execution environment according to the visibility and the enablement of the environment information comprises:
acquiring a visibility value and an enabling value of the environment information; the visibility value is used to characterize the visibility, and the enablement value is used to characterize the enablement;
and executing the environment information of the target object in the execution environment according to the visibility value and the enabling value.
8. A target object state control apparatus, characterized by comprising:
the acquisition module is used for acquiring environment information data of an environment to be executed of the target object; the target object comprises a control or a behavior;
the analysis module is used for analyzing the environmental information data according to a preset environmental analysis mapping relation to obtain environmental information parameters corresponding to the environmental information data; the environment analysis mapping relation is the mapping relation between the environment information data and the environment information parameters;
the switching module is used for controlling the state of the target object in the environment to be executed according to the environment information parameter; the status includes visibility and enablement.
9. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the target object state control method according to any one of claims 1 to 7 when executing a program stored on a memory.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the target object state control method according to any one of claims 1-7.
CN202211716413.0A 2022-12-29 Target object state control method and device, electronic equipment and storage medium Active CN116028055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211716413.0A CN116028055B (en) 2022-12-29 Target object state control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211716413.0A CN116028055B (en) 2022-12-29 Target object state control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116028055A true CN116028055A (en) 2023-04-28
CN116028055B CN116028055B (en) 2024-04-26

Family

ID=

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6601233B1 (en) * 1999-07-30 2003-07-29 Accenture Llp Business components framework
US20040196293A1 (en) * 2000-04-06 2004-10-07 Microsoft Corporation Application programming interface for changing the visual style
US20050091672A1 (en) * 2003-10-24 2005-04-28 Microsoft Corporation Facilitating presentation functionality through a programming interface media namespace
US20050235261A1 (en) * 2004-04-16 2005-10-20 Krebs Andreas S Framework for managing visibility of GUI components
US20060053443A1 (en) * 2004-09-03 2006-03-09 Acott Troy S Methods and systems for efficient behavior generation in software application development tool
US20070118813A1 (en) * 2005-11-18 2007-05-24 Scott Forstall Management of user interface elements in a display environment
CN111176780A (en) * 2019-12-31 2020-05-19 湖南中车时代通信信号有限公司 Device and method for displaying and controlling general buttons of rail transit station maps
CN111488087A (en) * 2019-01-25 2020-08-04 西安诺瓦星云科技股份有限公司 Control display method, device and system and computer readable storage medium
US20200356350A1 (en) * 2019-05-10 2020-11-12 Fasility Llc Methods and Systems for Visual Programming using Polymorphic, Dynamic Multi-Dimensional Structures
CN114415763A (en) * 2021-12-30 2022-04-29 深圳数联天下智能科技有限公司 Method and device for controlling equipment operation, terminal equipment and storage medium
CN115220852A (en) * 2022-09-20 2022-10-21 北京融为科技有限公司 Method and device for generating human-computer interaction interface

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6601233B1 (en) * 1999-07-30 2003-07-29 Accenture Llp Business components framework
US20040196293A1 (en) * 2000-04-06 2004-10-07 Microsoft Corporation Application programming interface for changing the visual style
US20050091672A1 (en) * 2003-10-24 2005-04-28 Microsoft Corporation Facilitating presentation functionality through a programming interface media namespace
US20050235261A1 (en) * 2004-04-16 2005-10-20 Krebs Andreas S Framework for managing visibility of GUI components
US20060053443A1 (en) * 2004-09-03 2006-03-09 Acott Troy S Methods and systems for efficient behavior generation in software application development tool
US20070118813A1 (en) * 2005-11-18 2007-05-24 Scott Forstall Management of user interface elements in a display environment
CN111488087A (en) * 2019-01-25 2020-08-04 西安诺瓦星云科技股份有限公司 Control display method, device and system and computer readable storage medium
US20200356350A1 (en) * 2019-05-10 2020-11-12 Fasility Llc Methods and Systems for Visual Programming using Polymorphic, Dynamic Multi-Dimensional Structures
CN111176780A (en) * 2019-12-31 2020-05-19 湖南中车时代通信信号有限公司 Device and method for displaying and controlling general buttons of rail transit station maps
CN114415763A (en) * 2021-12-30 2022-04-29 深圳数联天下智能科技有限公司 Method and device for controlling equipment operation, terminal equipment and storage medium
CN115220852A (en) * 2022-09-20 2022-10-21 北京融为科技有限公司 Method and device for generating human-computer interaction interface

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
CAMERON MCCORMACK等: "Authoring diagrams that adapt to their viewing context", JOURNAL OF VISUAL LANGUAGES & COMPUTING, vol. 46, 2 June 2018 (2018-06-02), pages 20 - 34 *
CHRISTIAN PIRCHHEIM等: "Visual Programming for Hybrid User Interfaces", CONFERENCE: PROCEEDINGS OF THE 2ND INTERNATIONAL WORKSHOP ON MIXED REALITY USER INTERFACES, 15 March 2007 (2007-03-15), pages 1 - 8 *
RAHUL ARORA等: "SymbiosisSketch: Combining 2D & 3D Sketching for Designing Detailed 3D Objects in Situ", CHI \'18: PROCEEDINGS OF THE 2018 CHI CONFERENCE ON HUMAN FACTORS IN COMPUTING SYSTEMS, no. 185, 19 April 2018 (2018-04-19), pages 1 - 15, XP058699541, DOI: 10.1145/3173574.3173759 *
廖琪男: "数据库应用系统全面功能权限控制的Delphi实现技术", 计算机时代, no. 07, pages 53 - 54 *
白玉霞: "基于嵌入式Linux的多媒体信息终端技术的研究与应用", 中国优秀硕士学位论文全文数据库 信息科技辑, no. 6, 15 December 2007 (2007-12-15), pages 138 - 680 *
罗先辉: "基于草图描述的三维虚拟场景生成", 中国优秀硕士学位论文全文数据库 信息科技辑, no. 5, 15 May 2014 (2014-05-15), pages 138 - 3077 *
黄艳芳: "基于Qt4的图形用户界面程序设计与游戏开发", 电子设计工程, vol. 19, no. 17, 5 September 2011 (2011-09-05), pages 49 - 53 *

Similar Documents

Publication Publication Date Title
US7490298B2 (en) Creating documentation screenshots on demand
WO2021184725A1 (en) User interface test method and apparatus, storage medium, and computer device
RU2336557C2 (en) Classes of user interface automation structures and interfaces
EP4046000A1 (en) Methods and systems for integrated development environment editor support with a single code base
JP4395761B2 (en) Program test support apparatus and method
US9442832B2 (en) User workflow replication for execution error analysis
US10162605B2 (en) Code snippet content recommendation to define an object literal
US20090064000A1 (en) SYSTEMS, METHODS AND COMPUTER PRODUCTS TO AUTOMATICALLY COMPLETE a GUI TASK
CN109801677B (en) Sequencing data automatic analysis method and device and electronic equipment
CN106599167B (en) System and method for supporting increment updating of database
US20220350857A1 (en) Methods and systems for browser extension used to generate relative xpath, absolute xpath and/or css selectors
US11741002B2 (en) Test automation systems and methods using logical identifiers
US8001552B1 (en) Model merger using an export map
US20110276919A1 (en) Systems and Methods for Providing Context Recognition
CN111104123A (en) Automatic deployment of applications
CN116028055B (en) Target object state control method and device, electronic equipment and storage medium
US11256501B2 (en) Federated extensibility workbench
US11221862B2 (en) Capturing data from a live web application to populate a demo application
CN116028055A (en) Target object state control method and device, electronic equipment and storage medium
US9959196B2 (en) Unification of descriptive programming and object repository
US7856344B2 (en) Method for transforming overlapping paths in a logical model to their physical equivalent based on transformation rules and limited traceability
CN114328062B (en) Method, device and storage medium for checking cache consistency
CN114610309A (en) Object configuration method, device, equipment and storage medium
JP7318704B2 (en) Test equipment, test method and program
CN107341038B (en) Compatibility processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant