CN116028055B - 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
CN116028055B
CN116028055B CN202211716413.0A CN202211716413A CN116028055B CN 116028055 B CN116028055 B CN 116028055B CN 202211716413 A CN202211716413 A CN 202211716413A CN 116028055 B CN116028055 B CN 116028055B
Authority
CN
China
Prior art keywords
environment
target object
environmental information
information data
environmental
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
Application number
CN202211716413.0A
Other languages
Chinese (zh)
Other versions
CN116028055A (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
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

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]

Landscapes

  • Stored Programmes (AREA)

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 application 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 method for controlling a 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;
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 apparatus, the apparatus 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.
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 application;
FIG. 2 is a flow chart of a method for controlling the status of a target object according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for controlling a status of a target object according to another embodiment of the present application;
FIG. 4 is a schematic 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 purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying 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 of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
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 visible, invisible, enable and disable (VisibleEnv, invisibleEnv, enableEnv, disableEnv can be adopted, specific names are not limited) can be set, display and non-display of the main environment can be controlled through the four variables, enabling and disabling can be carried out, the variable is true when the variable value is set to be 1, the state of a target object in each environment can be determined through the values of four states of the current environment, and automatic control of an interface can be realized under the condition of switching 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 parser obtains the environment appEnv of the current application and the environment information parameters actionEnv of the current control or action by parsing the environment information data.
The visibility environment information in actionEnv is unfolded to obtain action visible environment list (actionVisibleEnvList for short), then the current actionVisibleEnvList is traversed and logic operation is carried out with appEnv to obtain the visibility of the current action control.
The enabling environment information in actionEnv is unfolded to obtain action enable environment list (actionEnableEnvList for short), then the current actionEnableEnvList is traversed and logic operation is carried out on the enabling environment information and 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, since EnableEnv, disableEnv, visibleEnv and InvisibleEnv have mutual exclusion before, a certain mutual exclusion mechanism may be set, for example:
Each bit controls an environment pair, each environment pair comprising a current environment and a non-current environment and being mutually exclusive (e.g., sketch and non-Sketch, view2D and View3D, etc.), each environment pair occupies a bit, each environment pair has a domin environment, a non-domin environment, and 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, it represents that a sketch is available and that 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
Wherein all settings in table 1 may be set based on BitDomin, i.e., based on BitDomin for the row of yes, not BitDomin (i.e., bitDomin for the row no) may not be set. Or may be set based on row BitDomin being no, in which case row BitDomin is yes is not settable.
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 if 3D is displayable, the action is InvisibleEnv = "View2D";
setting that a certain action can be displayed under 2D and 3D can not be displayed, wherein visibleEnv = "View2D";
Setting a certain action under a 2D Sketch, and setting a function mask to be DisableEnv = "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 including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, 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 may include 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, abbreviated as CPU), a network processor (Network Processor, abbreviated as NP), etc.; but may also be a digital signal processor (DIGITAL SIGNAL Processing, DSP), application Specific Integrated Circuit (ASIC), field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, 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, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk 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 (9)

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; the environment information data is arranged in an enumeration variable, and each bit of the enumeration variable represents an environment pair;
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; wherein 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;
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 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.
6. The method of claim 5, 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.
7. 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 environment information data is arranged in an enumeration variable, and each bit of the enumeration variable represents an environment pair;
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; wherein 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;
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.
8. 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 6 when executing a program stored on a memory.
9. 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-6.
CN202211716413.0A 2022-12-29 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 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 2022-12-29 Target object state control method and device, electronic equipment and storage medium

Publications (2)

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

Family

ID=86073471

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN116028055B (en)

Citations (5)

* 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
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
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

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6873337B1 (en) * 2000-04-06 2005-03-29 Microsoft Corporation Application programming interface for changing the visual style
US7426734B2 (en) * 2003-10-24 2008-09-16 Microsoft Corporation Facilitating presentation functionality through a programming interface media namespace
US7533345B2 (en) * 2004-04-16 2009-05-12 Sap Ag Framework for managing visibility of GUI components
US7788634B2 (en) * 2004-09-03 2010-08-31 Ensequence, Inc. Methods and systems for efficient behavior generation in software application development tool
US7707514B2 (en) * 2005-11-18 2010-04-27 Apple Inc. Management of user interface elements in a display environment
US11003422B2 (en) * 2019-05-10 2021-05-11 Fasility Llc Methods and systems for visual programming using polymorphic, dynamic multi-dimensional structures

Patent Citations (5)

* 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
CN111488087A (en) * 2019-01-25 2020-08-04 西安诺瓦星云科技股份有限公司 Control display method, device and system and computer readable storage medium
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 (8)

* Cited by examiner, † Cited by third party
Title
Authoring diagrams that adapt to their viewing context;Cameron McCormack等;Journal of Visual Languages & Computing;20180602;第46卷;第20-34页 *
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.2018,(第185期),第1-15页. *
Visual Programming for Hybrid User Interfaces;Christian Pirchheim等;Conference: Proceedings of the 2nd International Workshop on Mixed Reality User Interfaces;20070315;第1-8页 *
周松林 等.Visual Basic程序设计.武汉理工大学出版社,2004,第67-68页. *
基于Qt4的图形用户界面程序设计与游戏开发;黄艳芳;电子设计工程;20110905;第19卷(第17期);第49-53页 *
基于嵌入式Linux的多媒体信息终端技术的研究与应用;白玉霞;中国优秀硕士学位论文全文数据库 信息科技辑;20071215(第6期);I138-680 *
基于草图描述的三维虚拟场景生成;罗先辉;中国优秀硕士学位论文全文数据库 信息科技辑;20140515(第5期);I138-3077 *
数据库应用系统全面功能权限控制的Delphi实现技术;廖琪男;计算机时代(第07期);第53-54页 *

Also Published As

Publication number Publication date
CN116028055A (en) 2023-04-28

Similar Documents

Publication Publication Date Title
WO2021184725A1 (en) User interface test method and apparatus, storage medium, and computer device
US7490298B2 (en) Creating documentation screenshots on demand
US8418257B2 (en) Collection user interface
US10162605B2 (en) Code snippet content recommendation to define an object literal
CN109471626B (en) Page logic structure, page generation method, page data processing method and device
US11741002B2 (en) Test automation systems and methods using logical identifiers
KR20180091838A (en) A page construction method, a terminal, a computer readable storage medium, and a page builder
CN103984626A (en) Method and device for generating test-case script
CN109801677B (en) Sequencing data automatic analysis method and device and electronic equipment
CN106599167B (en) System and method for supporting increment updating of database
US8001552B1 (en) Model merger using an export map
CN111104123A (en) Automatic deployment of applications
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN112257005B (en) Form component generation method and device
CN116028055B (en) Target object state control method and device, electronic equipment and storage medium
US11256501B2 (en) Federated extensibility workbench
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
CN114564856B (en) Data sharing method based on FMEA and electronic equipment
CN116467179A (en) Test case batch editing method and device and processing equipment
CN114328062B (en) Method, device and storage medium for checking cache consistency
WO2011156118A2 (en) Cogeneration of database applications and their databases
CN114610309A (en) Object configuration method, device, equipment and storage medium
CN114356330A (en) Page configuration method and device, electronic equipment and storage medium
US20120066655A1 (en) Electronic device and method for inspecting electrical rules of circuit boards

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
GR01 Patent grant