Object regulation and control method and device
By obtaining and executing the regulation conditions and actions in the pre-configured policy group, the problem of low efficiency and accuracy of object regulation in the prior art is solved, and intelligent and efficient regulation is achieved.
Patent Information
- Application Number
- CN202410180728.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-18
- Publication Date
- 2025-08-19
AI Technical Summary
In the prior art, the efficiency and accuracy of object regulation are low, and mainly rely on manual operations, resulting in slow regulation speed and low accuracy.
By obtaining pre-configured policy groups, including target object information, regulatory conditions and regulatory actions, generate query tasks and perform regulatory actions, intelligent regulation is achieved and human participation is reduced.
It improves the efficiency and accuracy of object regulation, reduces the complexity and cost of manual operations, and realizes flexible implementation of regulation strategies.
Smart Images

Figure CN120508575A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, and in particular to an object control method and device. Background Art
[0002] Dynamic control is widely used in various fields and scenarios. It can adjust objects according to actual conditions to maximize the performance of the objects. For example, it can adjust web pages to increase their click-through rate.
[0003] In the prior art, the regulation of objects in various fields is usually achieved manually. For example, when a webpage has a low number of hits, the webpage can be positioned closer to the front or its size can be increased to highlight the webpage, thereby increasing its click-through rate.
[0004] However, the above solution has the problem of low control efficiency and control accuracy. Summary of the Invention
[0005] The embodiments of the present disclosure provide an object control method and device, which can improve control accuracy and control efficiency.
[0006] In a first aspect, an embodiment of the present disclosure provides an object control method, comprising:
[0007] Acquire a policy group, the policy group including target object information and at least one policy, the policy including: corresponding control conditions and control actions;
[0008] Generate a query task according to the target object information and the control condition, and execute the query task to obtain control data;
[0009] When the control data satisfies the control condition, the control action corresponding to the control condition is executed on the target object corresponding to the target object information.
[0010] In a second aspect, an embodiment of the present disclosure provides an object control device, including:
[0011] A policy group acquisition module is used to acquire a policy group, wherein the policy group includes target object information and at least one policy, wherein the policy includes: corresponding control conditions and control actions;
[0012] A control data acquisition module, configured to generate a query task based on the target object information and the control conditions, and execute the query task to obtain control data;
[0013] The control execution module is configured to execute the control action corresponding to the control condition on the target object corresponding to the target object information when the control data satisfies the control condition.
[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and a memory;
[0015] The memory stores computer-executable instructions;
[0016] The at least one processor executes the computer-executable instructions stored in the memory, so that the electronic device implements the method according to the first aspect.
[0017] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the computing device implements the method described in the first aspect.
[0018] In a fifth aspect, an embodiment of the present disclosure provides a computer program, which is used to implement the method described in the first aspect.
[0019] The disclosed embodiments provide an object control method and device, comprising: obtaining a policy group, the policy group including target object information and at least one policy, the policy including corresponding control conditions and control actions; generating a query task based on the target object information and the control conditions, executing the query task to obtain control data; and executing the control action corresponding to the control condition on the target object corresponding to the target object information when the control data satisfies the control condition. In this manner, after the user configures the policy group, the target object can be controlled intelligently without requiring subsequent human intervention, effectively improving the efficiency and accuracy of target object control. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0021] Figure 1 This is a schematic diagram of the structure of a policy group provided by an embodiment of the present disclosure;
[0022] Figure 2 is a flowchart of the steps of an object control method provided by an embodiment of the present disclosure;
[0023] Figure 3 This is a state transition diagram of a policy group provided by an embodiment of the present disclosure;
[0024] Figure 4This is a schematic diagram of a deletion relationship of a policy group provided by an embodiment of the present disclosure;
[0025] Figure 5 This is a state diagram of a control action provided by an embodiment of the present disclosure;
[0026] Figure 6 is a flowchart of another object control method provided by an embodiment of the present disclosure;
[0027] Figure 7 This is a structural block diagram of an object control device provided by an embodiment of the present disclosure;
[0028] Figure 8 This is a structural block diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0030] The present disclosure is used to regulate objects. The objects herein can be any object in any field, including physical objects and virtual objects. Regulation can be any attribute of the regulated object. For example, the display attributes of a web page can be regulated.
[0031] In some technical solutions, objects can be controlled through human experience. However, this results in slower control speed and lower efficiency. Furthermore, due to human negligence, the control accuracy may be low.
[0032] To address the aforementioned technical issues, the disclosed embodiments implement intelligent control based on policy group parsing. Specifically, one or more pre-configured policy groups can be parsed to generate query tasks. These queries retrieve control data, and when the control data satisfies one or more control conditions in the policy group, the corresponding control actions are executed. In this way, after the user configures the policy group, intelligent control of the target object can be achieved without requiring subsequent human intervention, effectively improving the efficiency and accuracy of target object control.
[0033] It can be seen that the control logic of the embodiment of the present disclosure is controlled by a policy group. The user can flexibly configure the policy group according to actual needs to flexibly control the target object. In some examples, the user can configure the target object information in the policy group to specify the target object, and can configure the policy execution conditions in the policy group to specify the execution conditions of the policy group. The control target can also be configured in the policy group to specify that the target object is controlled to meet the control target. The control conditions and corresponding control actions can also be configured in the policy group as a policy to execute the corresponding control action when the control data of the target object meets the control conditions. The control logic can be flexibly controlled through these configuration items in the policy group to achieve rich and diverse control strategies.
[0034] The following detailed description of the technical solutions of the embodiments of the present disclosure and how the technical solutions of the present disclosure solve the above-mentioned technical problems is provided with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.
[0035] In embodiments of the present disclosure, regulation and control can be performed based on one or more policy groups. Each policy group includes policy group information and at least one policy. The policy group information is used to describe relevant information about the policy group, including but not limited to: target object information for the policy group, regulation objectives for the policy group, and policy execution conditions for the policy group.
[0036] The target object information is information about the target object targeted by the policy group for execution of regulation. For example, the target object information may be a web page identifier, address, etc., which is used to indicate that the policy group is used to regulate and control the web page corresponding to the web page identifier or address.
[0037] The control target indicates the target factor and target value for control based on the policy group. For example, the control target indicates that the webpage under the policy group should be controlled so that the number of clicks on the webpage reaches M. Therefore, the target factor is clicks, and the target value is M.
[0038] The policy execution condition is used to indicate whether the policy group is executed. It can describe whether the policy group is executed from multiple dimensions. For example, it can include: execution cycle, whether cold start is supported, and range limit of the control action. Therefore, when the execution cycle of the policy group is reached, the policy group is executed; when the execution cycle of the policy group is not reached, the policy group is not executed. When cold start is supported, the policy group can be executed at the initialization of the system; when cold start is not supported, the policy group is not executed at the initialization of the system. When the last control action does not exceed the range limit, the policy group is not executed; when the last control action exceeds the range limit, the policy group is executed.
[0039] Each strategy includes one or more control conditions. When the control data of the target object information meets all the control conditions of the strategy, the control action in the strategy can be executed on the target object corresponding to the target object information to achieve one-time control of the target object; when the control data of the target object information does not meet at least one control condition of the strategy, the control action in the strategy will not be executed on the target object corresponding to the target object information.
[0040] It is understood that different strategies may correspond to different control actions and / or different control conditions. A control condition is used to indicate the conditions for executing a control action, and may include conditions that must be satisfied by at least one control factor of the target object. A control action is used to indicate the target attribute of the target object being controlled, as well as the control direction and magnitude of the control of the target attribute.
[0041] Figure 1 This is a schematic diagram of the structure of a policy group provided by an embodiment of the present disclosure. Figure 1 As shown, policy group A includes policy group information A0, policies B1 and B2. Among them, policy group information A0 includes: target object information A1, control target A2, and policy execution condition A3. Policy B1 includes control conditions C1 and C2, and a corresponding control action D1. Policy B2 includes control conditions C3, C4, and C5, and a corresponding control action D2. Therefore, when policy execution condition A3 is met, policy group A can be executed. Specifically, when the control data corresponding to target object information A1 meets control conditions C1 and C2, control action D1 can be executed on the target object corresponding to target object information A1. When the control data corresponding to target object information A1 meets control conditions C3, C4, and C5, control action D2 can be executed on the target object corresponding to target object information A1.
[0042] Figure 2 This is a flowchart of the steps of an object control method provided by an embodiment of the present disclosure. Figure 2 As shown, the object control method includes:
[0043] S101: Acquire a policy group, where the policy group includes target object information and at least one policy, and the policy includes corresponding control conditions and control actions.
[0044] Among them, the policy group obtained here can be one or more, and the embodiment of the present disclosure does not limit the number of policy groups. When there are multiple policy groups, it is possible to perform control actions on multiple target objects based on multiple policy groups at one time to control multiple target objects in batches. The control action is used to indicate the target attribute of the control, as well as the control direction and control amplitude of the target attribute. For example, the control action can be to increase the size of the target object by 100, where the size of the target object is the target attribute, increase is the control direction, and 100 is the control amplitude.
[0045] The aforementioned policy groups are preconfigured by the user, and a policy group configuration interface is provided to allow the user to configure one or more policy groups. Specifically, the user can enter the various information included in each policy group in the policy group configuration interface, such as target object information, policy, and the control conditions and control actions within the policy.
[0046] In some implementations, a policy group has two states: enabled and disabled. In this case, obtaining the policy group may include obtaining the enabled policy group and the enabled policies within the enabled policy group. This allows the control strategy to be controlled based on the policy group and policy states, further enhancing control flexibility.
[0047] It is understandable that the status of the above-mentioned policy group and the status of the policy can be flexibly set by the user. Of course, in addition to the user setting the status, the embodiment of the present disclosure can also intelligently adjust the status. When the user sets each policy in the policy group to the closed state, each policy in the policy group is in the closed state. At this time, the policy group with all policies in the closed state can be intelligently adjusted to the closed state, so that the policy group is in the closed state. When the user adjusts at least one policy in the policy group with all policies in the closed state to the open state, at least one policy in the policy group is in the open state. At this time, the policy group can be intelligently adjusted to the open state, so that the policy group is in the open state.
[0048] It can be seen that the embodiments of the present disclosure can not only adjust the status through the user, but also further adjust the status intelligently, which can improve the intelligence of the status and reduce the complexity of user operations.
[0049] Figure 3 This is a state transition diagram of a policy group provided by an embodiment of the present disclosure. Figure 3 As shown, policy group A includes policies B1 and B2. After policy group A is created, it is initially enabled, and policies B1 and B2 are also enabled.
[0050] The status of policy group A can be flexibly switched between on and off. Both policy B1 and policy B2 can be flexibly switched between on and off.
[0051] When the user adjusts the status of policy group A from on to off, policies B1 and B2 in policy group A can also be intelligently adjusted to off.
[0052] Of course, the status of policy B1 and policy B2 are independent of each other. When a user changes the status of policy B1 from on to off, or vice versa, the status of policy B2 is not affected and remains unchanged. Similarly, when a user changes the status of policy B2 from on to off, or vice versa, the status of policy B1 is not affected and remains unchanged.
[0053] However, the status of policy group A is affected by policies B1 and B2. When policy B1 is enabled and / or B2 is enabled, policy group A is enabled. When policy B1 is disabled and policy B2 is disabled, policy group A is disabled.
[0054] It is understandable that the policy group can be deleted when the policy group is in any state, and the policy can be deleted when the policy is in any state. Figure 4 This is a schematic diagram of the deletion relationship of a policy group provided by an embodiment of the present disclosure. Figure 4 As shown in the figure, when a user deletes policy group A, policies B1 and B2 are also deleted. Alternatively, after a user deletes policies B1 and B2, policy group A is also deleted.
[0055] S102: Generate a query task according to the target object information and the control condition, and execute the query task to obtain the control data.
[0056] The query task is used to obtain the control data required when controlling the target object through the query. Therefore, it is necessary to specify the target object in combination with the target object information, and to specify the control data according to the control conditions.
[0057] In some embodiments, the policy group also includes policy execution conditions. The policy execution conditions include at least one of the following: whether cold start is supported, the execution cycle, and a range limit on the control action. Therefore, the query task generation process may include: first, obtaining current scenario information based on the policy execution conditions; then, when the current scenario information meets the policy execution conditions, generating a query task based on the target object information and the control conditions. In this way, the execution of the policy group can be further controlled by the policy execution conditions, thereby flexibly controlling the target object. Policy execution conditions can be flexibly set and are not limited to the above examples.
[0058] It is understood that the current scenario information corresponds to the policy execution conditions. When the policy execution conditions include whether cold start is supported, it is necessary to obtain whether the current situation is a cold start as the current scenario information; when the policy execution conditions include the execution period, it is necessary to obtain the current time information as the current scenario information; when the policy execution conditions include the scope of the control action, it is necessary to obtain the control result after the last control action.
[0059] When the current scene information meets the above policy execution conditions, a query task can be generated based on the target object information and the control conditions to execute the control. When the current scene information does not meet at least one of the above policy execution conditions, no query task is generated, and thus no control is executed.
[0060] The above-mentioned query task usually exists in the form of a query statement. Therefore, the query statement can be generated through the following steps: first, the control factors are extracted from the control conditions; then, the corresponding data table and the first field of the control factors in the data table and the second field corresponding to the target object information in the data table are determined based on the control factors; finally, the query statement corresponding to the query task is generated based on the first field, the second field and the data table. The query statement is used to read the first field from the data table when the second field matches the target object information.
[0061] It is understood that the control condition is used to indicate the conditions that the control factor satisfies, so the control condition indicates the control factor, and the control factor can be extracted from it. For example, the control condition can be that the click-through rate is greater than 100, so the click-through rate can be extracted from the control condition as the control factor.
[0062] The first field is the field of the control factor in the data table. When the first field is used as the control factor when configuring the control conditions in the policy group, the extracted control factor can be directly queried in the data table; when the control factor used when configuring the control conditions in the policy group is different from the first field, it is necessary to pre-establish a mapping relationship between the first field and the control factor to convert the extracted control factor into the first field and then generate a query statement. In addition, it is also possible to set a mapping relationship between the first field and the data table, as well as a mapping relationship between the target object information and the second field, so as to determine the first field and then determine the data table again, and then generate a query statement in combination with the first field, the second field and the data table.
[0063] The above data table may be generated offline in advance. Specifically, the object information table and the first field table may be associated to generate a data table, and the two may be associated through the object information in the object information table.
[0064] S103: When the control data satisfies the control condition, a control action corresponding to the control condition is executed on the target object corresponding to the target object information.
[0065] In the embodiment of the present disclosure, a policy group includes one or more policies, each of which may include one or more control conditions and a control action. When the control data meets all the control conditions of a policy, the control action of the policy is executed on the target object; when the control data does not meet at least one control condition of a policy, the control action of the policy is not executed on the target object. In this way, the control action in the policy whose control data meets all its control conditions can be executed on the target object. For example, for Figure 1 In the policy group shown, when the control data satisfies control conditions C1, C2, and C3, control action D1 of policy B1 is executed because the control data satisfies all control conditions of policy B1. However, because the control data does not satisfy control conditions C4 and C5, control action D2 of policy B2 is not executed.
[0066] In summary, the target policies whose control data meets the control conditions can be obtained from the policy group to execute the control actions of each target policy one by one. During the execution of the control actions, the status of each control action can also be set and state management can be performed. Figure 5 This is a state diagram of a control action provided by an embodiment of the present disclosure. Figure 5 As shown, after the control action starts to be executed, the state of the control action is in execution. The state of the control action can be converted from the above-mentioned execution to execution failure, execution success or execution interruption.
[0067] In some embodiments, the above-mentioned strategy group also includes a control target. The control target includes a target factor and a target value corresponding to the target factor, to indicate that the goal of the control is to make the target factor of the target object reach the target value. The control condition here is associated with the control target. Therefore, the above-mentioned S103 may include the following steps: replacing the value corresponding to the target factor in the control condition with the target value to obtain the target control condition, so as to perform a control action on the target object when the control data meets the target control condition. For example, the control condition may be that the control factor P1 is greater than 2×the target factor P2. When the target value of the target factor is 100, the target control condition after replacing the value of the target factor is that the control factor P1 is greater than 200.
[0068] As can be seen, the control conditions described in the embodiments of the present disclosure are associated with the control targets. In this case, the control conditions can be referred to as dynamic control conditions, which change with the control targets. Of course, the control conditions can also be unrelated to the control targets and be fixed conditions. The embodiments of the present disclosure can implement dynamic control conditions, which helps to further improve control flexibility.
[0069] In some implementations, the policy group also includes a control weight corresponding to each policy. Thus, the multiple policies in the policy group can be divided into multiple groups based on the control direction of the control action, with the control action in each group corresponding to a control direction. The control weights of the policies are then adjusted on a group-by-group basis. Finally, the control actions are combined based on the control weights to obtain a comprehensive control action, which is then executed on the target object.
[0070] Among them, the control direction is used to indicate whether to increase or decrease the target attribute of the target object, so that the strategies for the control action of increasing the same target attribute can be divided into one group, and the strategies for the control action of decreasing the same target attribute can be divided into another group.
[0071] After obtaining the above groupings, the control weights of the strategies in each group can be appropriately adjusted to adjust the impact of each strategy on the control. For example, the control weights of some strategies in each group can be reduced to avoid excessive control of the target object in the same control direction, thereby avoiding over-control.
[0072] The aforementioned adjustment of the control weights of some policies can be the control weights of any policy, or can be adjusted by the following steps: First, for each group, divide the multiple policies in the group into multiple sub-groups according to the control action, with each sub-group corresponding to the same control action; then, within each sub-group, reduce the control weights of the target policies in the sub-group, where the target policies are policies other than the policy with the largest control weight in the sub-group. In this way, the weights of policies with smaller impacts can be further reduced, so that after the control action with the larger control weight in the group, the same adjustment needs to be made to the target objects again.
[0073] Among them, the same control action can include the same target attribute and control direction. For example, when a group includes strategies B1, B2, B3 and B4, the control actions are to increase the attribute P1 of the target object, to increase the attribute P1 of the target object, to increase the attribute P2 of the target object, and to increase the attribute P2 of the target object, respectively. Thus, strategies B1 and B2 can be divided into one sub-group, and strategies B3 and B4 can be divided into one sub-group. For the sub-group composed of strategies B1 and B2, if the control weight of strategy B1 is greater than the control weight of strategy B2, then strategy B2 is used as the target strategy to reduce its control weight. Similarly, for the sub-group composed of strategies B3 and B4, if the control weight of strategy B3 is less than the control weight of strategy B4, then strategy B3 is used as the target strategy to reduce its control weight.
[0074] After adjusting the control weights of each policy in the policy group, the control actions of each policy can be combined according to the control weights of each policy to obtain a comprehensive control action, which can be executed on the target object. In this way, the number of control actions executed can be reduced as much as possible, and the control efficiency of the target object can be improved.
[0075] The above merging can be understood as weighting the adjustment ranges for the same target attribute according to the control weights to obtain a comprehensive adjustment range for that target attribute. This allows the comprehensive adjustment ranges for all target attributes in the policy group to be calculated, allowing adjustments to be made to the target attributes individually. For example, if the policy group includes control actions D1 to D5, corresponding to weights W1 to W5, D1 is used to increase target attribute P1 by N1, D2 is used to increase target attribute P1 by N2, D3 is used to decrease target attribute P2 by N3, D4 is used to increase target attribute P2 by N4, and D5 is used to increase target attribute P3 by N5. Thus, control actions D1 and D2 can be merged to obtain the first comprehensive control action, which increases target attribute P1 by W1×N1+W2×N2. Control actions D3 and D4 can be merged to obtain the second comprehensive control action, which decreases target attribute P2 by W3×N3-W4×N4. Control action D4 serves as the third comprehensive control action.
[0076] Optionally, different reduction rates can be used for the control weights of the above-mentioned different target controls. In each of the subgroups, the reduction rate of the control weight of the target policy is negatively correlated with the control weight of the target policy. That is, when the control weight of the target policy is larger, the reduction rate of the control weight of the target policy is smaller, and when the control weight of the target policy is smaller, the reduction rate of the control weight of the target policy is larger.
[0077] Exemplarily, the adjustment of the control weights can be achieved by the following steps: in each sub-group, the strategies are arranged in descending order according to the control weights, and starting from the second strategy, the control weights of the strategies are reduced one by one, and the reduction in the control weight of the subsequent strategy is greater than the reduction in the control weight of the previous strategy. For example, if the strategies in a group include B5, B6, and B7, their control weights are gradually reduced, so that the control weight of B5 can be kept unchanged, and the reduction in the control weight of B6 is less than the reduction in the control weight of B7.
[0078] Of course, the control weight of the first policy in each subgroup can also be adjusted, and its reduction is the smallest. The first policy has the largest control weight in the subgroup. When the reduction of the control weight of the first policy is 0, the control weight of the first policy is not reduced.
[0079] In summary, the disclosed embodiments can parse pre-configured policy groups to implement control solutions for target objects, thus achieving intelligent control. This can improve control accuracy and efficiency, reduce human involvement, and save labor costs.
[0080] Figure 6This is a flowchart of another object control method provided by an embodiment of the present disclosure. Figure 6 As shown, the above object control method may include:
[0081] S301: Acquire an enabled policy group and enabled policies in the enabled policy group, wherein the policy group includes policy execution conditions, target object information, and at least one policy, and the policy includes corresponding control conditions and control actions.
[0082] S302: Acquire current scenario information according to the policy execution condition.
[0083] S303: When the current scenario information meets the policy execution condition, the control factor is extracted from the control condition.
[0084] S304: Determine, according to the control factor, a corresponding data table, a first field of the control factor in the data table, and a second field corresponding to the target object information in the data table.
[0085] S305: Generate a query statement corresponding to the query task according to the first field, the second field and the data table and execute it to obtain the regulated data. The query statement is used to read the first field from the data table when the second field matches the target object information.
[0086] S306: Replace the corresponding value of the target factor in the control condition with the target value to obtain the target control condition.
[0087] S307: When the control data meets the target control condition, the multiple strategies are divided into multiple groups according to the control directions of the control actions, and the control actions in each group correspond to one control direction.
[0088] S308: For each group, multiple policies are divided into multiple sub-groups according to the control action, and the control action corresponding to each sub-group is the same.
[0089] S309: In each sub-group, reduce the control weight of the target policy in the sub-group, where the target policy is a policy other than the policy with the largest control weight in the sub-group.
[0090] S310: Merge the control actions according to the control weights to obtain a comprehensive control action, and execute the comprehensive control action on the target object.
[0091] It should be noted that the above Figure 6 The steps shown can be adjusted in sequence flexibly on an independent basis. Figure 2 The object control method shown has been described above and will not be repeated here.
[0092] Corresponding to the object control method of the above embodiment, Figure 7 This is a structural block diagram of an object control device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 7 , the object control device 400 includes:
[0093] The policy group acquisition module 401 is configured to acquire a policy group, wherein the policy group includes target object information and at least one policy, wherein the policy includes corresponding control conditions and control actions.
[0094] The control data acquisition module 402 is configured to generate a query task according to the target object information and the control conditions, and execute the query task to obtain control data.
[0095] The control execution module 403 is configured to execute the control action corresponding to the control condition on the target object corresponding to the target object information when the control data satisfies the control condition.
[0096] Optionally, the control data acquisition module 402 is further configured to:
[0097] Extract control factors from the control conditions; determine the corresponding data table and the first field of the control factors in the data table and the second field corresponding to the target object information in the data table based on the control factors; generate a query statement corresponding to the query task based on the first field, the second field and the data table, and the query statement is used to read the first field from the data table when the second field matches the target object information.
[0098] Optionally, the policy group further includes: a control target, the control target including a target factor and a target value corresponding to the target factor, and the control condition is associated with the control target; the control execution module 403 is further configured to:
[0099] The corresponding value of the target factor in the control condition is replaced by the target value to obtain the target control condition; when the control data meets the target control condition, the control action is performed on the target object.
[0100] Optionally, the policy group further includes a control weight corresponding to each policy; the control execution module 403 is further configured to:
[0101] According to the control direction of the control action, the multiple strategies are divided into multiple groups, and the control action in each group corresponds to a control direction; the control weight of the strategy is adjusted based on the group; the control actions are merged according to the control weight to obtain a comprehensive control action, and the comprehensive control action is executed on the target object.
[0102] Optionally, the control execution module 403 is further configured to:
[0103] For each of the groups, multiple strategies are divided into multiple sub-groups according to the control actions, and the control actions corresponding to each sub-group are the same; in each sub-group, the control weight of the target strategy in the sub-group is reduced, and the target strategy is a strategy other than the strategy with the largest control weight in the sub-group.
[0104] Optionally, in each of the subgroups, the reduction range of the regulation weight of the target policy is negatively correlated with the regulation weight of the target policy.
[0105] Optionally, the policy group further includes policy execution conditions, and the control data acquisition module 402 is further configured to:
[0106] Current scene information is acquired according to the policy execution condition; when the current scene information satisfies the policy execution condition, a query task is generated according to the target object information and the control condition.
[0107] Optionally, the policy execution conditions include: whether cold start is supported, execution cycle, and scope limitation of the control action.
[0108] Optionally, the policy group acquisition module 401 is further configured to:
[0109] Obtain a policy group that is in an enabled state and the policies in the enabled policy group that are in an enabled state; when all the policies in the policy group are in a disabled state, the policy group is in a disabled state; when at least one policy in the policy group is in an enabled state, the policy group is in an enabled state.
[0110] The object control device provided in this embodiment can be used to execute the technical solution of the above-mentioned object control method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.
[0111] Figure 8 6 is a block diagram of an electronic device provided by an embodiment of the present disclosure. The electronic device 600 includes a memory 602 and at least one processor 601.
[0112] The memory 602 stores computer-executable instructions.
[0113] At least one processor 601 executes the computer-executable instructions stored in the memory 602 , so that the electronic device 600 implements the aforementioned object control method.
[0114] In addition, the electronic device may further include a receiver 603 and a transmitter 604. The receiver 603 is configured to receive information from other devices or equipment and forward it to the processor 601. The transmitter 604 is configured to send the information to the other devices or equipment.
[0115] In a first example of the first aspect, an embodiment of the present disclosure provides an object control method, the method including:
[0116] A policy group is obtained, where the policy group includes target object information and at least one policy, where the policy includes corresponding control conditions and control actions.
[0117] A query task is generated according to the target object information and the control condition, and the query task is executed to obtain control data.
[0118] When the control data satisfies the control condition, the control action corresponding to the control condition is executed on the target object corresponding to the target object information.
[0119] Based on the first example of the first aspect, in the second example of the first aspect, generating a query task according to the target object information and the control condition includes:
[0120] Extract control factors from the control conditions; determine the corresponding data table and the first field of the control factors in the data table and the second field corresponding to the target object information in the data table based on the control factors; generate a query statement corresponding to the query task based on the first field, the second field and the data table, and the query statement is used to read the first field from the data table when the second field matches the target object information.
[0121] Based on the first example of the first aspect, in a third example of the first aspect, the policy group further includes: a control target, the control target including a target factor and a target value corresponding to the target factor, and the control condition is associated with the control target; and when the control data satisfies the control condition, executing the control action corresponding to the control condition on the target object corresponding to the target object information includes:
[0122] The corresponding value of the target factor in the control condition is replaced by the target value to obtain the target control condition; when the control data meets the target control condition, the control action is performed on the target object.
[0123] Based on the first example of the first aspect, in a fourth example of the first aspect, the policy group further includes a control weight corresponding to each policy; and executing the control action corresponding to the control condition on the target object corresponding to the target object information includes:
[0124] According to the control direction of the control action, the multiple strategies are divided into multiple groups, and the control action in each group corresponds to a control direction; the control weight of the strategy is adjusted based on the group; the control actions are merged according to the control weight to obtain a comprehensive control action, and the comprehensive control action is executed on the target object.
[0125] Based on the fourth example of the first aspect, in the fifth example of the first aspect, adjusting the control weight of the policy in units of the group includes:
[0126] For each of the groups, multiple strategies are divided into multiple sub-groups according to the control actions, and the control actions corresponding to each sub-group are the same; in each sub-group, the control weight of the target strategy in the sub-group is reduced, and the target strategy is a strategy other than the strategy with the largest control weight in the sub-group.
[0127] Based on the fifth example of the first aspect, in a sixth example of the first aspect, in each of the subgroups, the reduction amplitude of the regulation weight of the target policy is negatively correlated with the regulation weight of the target policy.
[0128] Based on the first example of the first aspect, in a seventh example of the first aspect, the policy group further includes a policy execution condition, and generating a query task according to the target object information and the control condition includes:
[0129] Current scene information is acquired according to the policy execution condition; when the current scene information satisfies the policy execution condition, a query task is generated according to the target object information and the control condition.
[0130] Based on the seventh example of the first aspect, in the eighth example of the first aspect, the policy execution condition includes: whether cold start is supported, execution cycle, and scope limitation of the control action.
[0131] Based on the first to eighth examples of the first aspect, in a ninth example of the first aspect, the acquisition strategy group includes:
[0132] Obtain a policy group that is in an enabled state and the policies in the enabled policy group that are in an enabled state; when all the policies in the policy group are in a disabled state, the policy group is in a disabled state; when at least one policy in the policy group is in an enabled state, the policy group is in an enabled state.
[0133] In a first example of the second aspect, an embodiment of the present disclosure provides an object control device, including:
[0134] The policy group acquisition module is used to acquire a policy group, wherein the policy group includes target object information and at least one policy, and the policy includes: corresponding control conditions and control actions.
[0135] The control data acquisition module is used to generate a query task according to the target object information and the control conditions, and execute the query task to obtain the control data.
[0136] The control execution module is configured to execute the control action corresponding to the control condition on the target object corresponding to the target object information when the control data satisfies the control condition.
[0137] Based on the first example of the second aspect, in a second example of the second aspect, the control data acquisition module is further used to:
[0138] Extract control factors from the control conditions; determine the corresponding data table and the first field of the control factors in the data table and the second field corresponding to the target object information in the data table based on the control factors; generate a query statement corresponding to the query task based on the first field, the second field and the data table, and the query statement is used to read the first field from the data table when the second field matches the target object information.
[0139] Based on the first example of the second aspect, in a third example of the second aspect, the policy group further includes: a control target, the control target including a target factor and a target value corresponding to the target factor, the control condition being associated with the control target; and the control execution module is further configured to:
[0140] The corresponding value of the target factor in the control condition is replaced by the target value to obtain the target control condition; when the control data meets the target control condition, the control action is performed on the target object.
[0141] Based on the first example of the second aspect, in a fourth example of the second aspect, the policy group further includes a control weight corresponding to each policy; and the control execution module is further configured to:
[0142] According to the control direction of the control action, the multiple strategies are divided into multiple groups, and the control action in each group corresponds to a control direction; the control weight of the strategy is adjusted based on the group; the control actions are merged according to the control weight to obtain a comprehensive control action, and the comprehensive control action is executed on the target object.
[0143] Based on the fourth example of the second aspect, in a fifth example of the second aspect, the control execution module is further configured to:
[0144] For each of the groups, multiple strategies are divided into multiple sub-groups according to the control actions, and the control actions corresponding to each sub-group are the same; in each sub-group, the control weight of the target strategy in the sub-group is reduced, and the target strategy is a strategy other than the strategy with the largest control weight in the sub-group.
[0145] Based on the fifth example of the second aspect, in a sixth example of the second aspect, in each of the subgroups, the reduction amplitude of the regulation weight of the target policy is negatively correlated with the regulation weight of the target policy.
[0146] Based on the first example of the second aspect, in a seventh example of the second aspect, the policy group further includes a policy execution condition, and the control data acquisition module is further configured to:
[0147] Current scene information is acquired according to the policy execution condition; when the current scene information satisfies the policy execution condition, a query task is generated according to the target object information and the control condition.
[0148] Based on the seventh example of the second aspect, in the eighth example of the second aspect, the policy execution conditions include: whether cold start is supported, execution cycle, and scope limitation of the control action.
[0149] Based on the first to eighth examples of the second aspect, in a ninth example of the second aspect, the policy group acquisition module is further configured to:
[0150] Obtain a policy group that is in an enabled state and the policies in the enabled policy group that are in an enabled state; when all the policies in the policy group are in a disabled state, the policy group is in a disabled state; when at least one policy in the policy group is in an enabled state, the policy group is in an enabled state.
[0151] In a third aspect, according to one or more embodiments of the present disclosure, an electronic device is provided, comprising: at least one processor and a memory.
[0152] The memory stores computer-executable instructions.
[0153] The at least one processor executes the computer-executable instructions stored in the memory, so that the electronic device implements any object control method of the first aspect.
[0154] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the computing device implements any object control method of the first aspect.
[0155] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program is provided, wherein the computer program is used to implement any one of the regulation and control methods of the first aspect.
[0156] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0157] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0158] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A method for controlling an object, characterized in that: include: Acquire a policy group, the policy group including target object information and at least one policy, the policy including: corresponding control conditions and control actions; Generate a query task according to the target object information and the control condition, and execute the query task to obtain control data; When the control data satisfies the control condition, the control action corresponding to the control condition is executed on the target object corresponding to the target object information.
2. The method according to claim 1, characterized in that Generating a query task according to the target object information and the control condition includes: extracting regulatory factors from the regulatory conditions; Determine, according to the control factor, a corresponding data table, a first field of the control factor in the data table, and a second field corresponding to the target object information in the data table; A query statement corresponding to the query task is generated according to the first field, the second field and the data table, where the query statement is used to read the first field from the data table when the second field matches the target object information.
3. The method according to claim 1, characterized in that The strategy group further includes: a control target, the control target including a target factor and a target value corresponding to the target factor, and the control condition is associated with the control target; When the control data satisfies the control condition, executing the control action corresponding to the control condition on the target object corresponding to the target object information includes: Replacing the corresponding value of the target factor in the control condition with the target value to obtain the target control condition; When the control data meets the target control condition, the control action is performed on the target object.
4. The method according to claim 1, wherein The strategy group also includes a control weight corresponding to each strategy; The performing the control action corresponding to the control condition on the target object corresponding to the target object information includes: Dividing the plurality of strategies into a plurality of groups according to the control directions of the control actions, wherein the control actions in each group correspond to a control direction; Adjusting the control weight of the strategy based on the group; The control actions are combined according to the control weights to obtain a comprehensive control action, and the comprehensive control action is executed on the target object.
5. The method according to claim 4, characterized in that The adjusting the control weight of the strategy in units of the group includes: For each of the groups, multiple strategies are divided into multiple sub-groups according to the control action, and the control action corresponding to each of the sub-groups is the same; In each of the subgroups, the regulation weight of the target policy in the subgroup is reduced, the target policy being a policy other than the policy with the largest regulation weight in the subgroup.
6. The method according to claim 5, characterized in that In each of the subgroups, the reduction magnitude of the regulation weight of the target policy is negatively correlated with the regulation weight of the target policy.
7. The method according to claim 1, characterized in that The policy group further includes policy execution conditions, and generating a query task according to the target object information and the control conditions includes: Obtaining current scenario information according to the policy execution conditions; When the current scenario information meets the policy execution condition, a query task is generated according to the target object information and the control condition.
8. The method according to claim 7, characterized in that The policy execution conditions include: whether cold start is supported, execution cycle, and scope limitation of the control action.
9. The method according to any one of claims 1 to 8, characterized in that The acquisition strategy group includes: Obtaining an enabled policy group and an enabled policy in the enabled policy group; When all the policies in the policy group are in a closed state, the policy group is in a closed state; When at least one policy in the policy group is in an enabled state, the policy group is in an enabled state.
10. An object control device, characterized in that: include: A policy group acquisition module is used to acquire a policy group, wherein the policy group includes target object information and at least one policy, wherein the policy includes: corresponding control conditions and control actions; A control data acquisition module, configured to generate a query task based on the target object information and the control conditions, and execute the query task to obtain control data; The control execution module is configured to execute the control action corresponding to the control condition on the target object corresponding to the target object information when the control data satisfies the control condition.
11. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the electronic device implements the method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the computing device implements the method according to any one of claims 1 to 9.
13. A computer program, characterized in that The computer program is used to implement the method according to any one of claims 1 to 9.