CN110515622B - Button state control method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN110515622B
CN110515622B CN201910804771.9A CN201910804771A CN110515622B CN 110515622 B CN110515622 B CN 110515622B CN 201910804771 A CN201910804771 A CN 201910804771A CN 110515622 B CN110515622 B CN 110515622B
Authority
CN
China
Prior art keywords
service
button
node
pressure value
flow event
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
CN201910804771.9A
Other languages
Chinese (zh)
Other versions
CN110515622A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910804771.9A priority Critical patent/CN110515622B/en
Publication of CN110515622A publication Critical patent/CN110515622A/en
Application granted granted Critical
Publication of CN110515622B publication Critical patent/CN110515622B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

According to the control method and device for the button state, the electronic equipment and the storage medium, at least one service flow event executed currently by the application is acquired by responding to the trigger of the target button; calling and obtaining a button pressure value from the configuration information of the target button, and calling and obtaining a node pressure value from the configuration information of the currently executed service node of each service flow event; and determining the trigger state of the target button according to the button pressure value and the pressure value of each node, so that a control mode based on condition codes is not required to be adopted when the state of the button is controlled, but a control mode of judging the pressure value is adopted, the pressure values of the button and the service node are only required to be modified when the service logic of the button is changed, the judgment logic is not required to be changed, the maintenance is convenient, the flow is simple, and the use is convenient.

Description

Button state control method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to computer technologies, and in particular, to a method and an apparatus for controlling a button state, an electronic device, and a storage medium.
Background
Along with the improvement of the intelligent degree of the terminal, the functions of the application APP which can be borne by the intelligent terminal are increased. The user can click the application button that the APP provided in order to accomplish the function interaction with the APP, and the condition of violently clicking the button appears when the user clicks the application button inevitably.
In the prior art, in order to avoid the operation exception of the application service flow and the service node caused by violently clicking the button, when the code of the application button is developed, condition codes including if else codes are added for the function and the service flow of the application button. When the user triggers the application button, the application button will determine whether to respond to the user's trigger based on the condition code as a determination condition.
However, the adoption of the condition code increases the difficulty of performing post-maintenance on the application button, and once the logic of the service flow corresponding to the application button needs to be modified or added, the engineering is complex and errors are easy to occur. In addition, the button control scheme of each page of the application can change along with the logic change of the service flow, and the style of the control scheme is messy and cannot be effectively unified.
Disclosure of Invention
In order to solve the above problems, the present disclosure provides a method and an apparatus for controlling a button state, an electronic device, and a storage medium.
In a first aspect, the present disclosure provides a method for controlling a button state, including:
responding to the triggering of the target button, and acquiring at least one service flow event currently executed by the application;
calling and obtaining a button pressure value from the configuration information of the target button, and calling and obtaining a node pressure value from the configuration information of the currently executed service node of each service flow event;
determining a trigger state of the target button according to the button pressure value and the pressure value of each node; wherein the content of the first and second substances,
in a second aspect, the present disclosure provides a control device for a button state, comprising:
the acquisition unit is used for responding to the triggering of the target button and acquiring at least one service flow event currently executed by the application;
the pressure value determining unit is used for obtaining a button pressure value from the configuration information of the target button and obtaining a node pressure value from the configuration information of the currently executed service node of each service flow event;
and the control unit is used for determining the trigger state of the target button according to the button pressure value and the pressure values of all the nodes.
In a third aspect, the present disclosure provides an electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the methods described above.
In a fourth aspect, the present disclosure provides a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any of the above.
According to the control method and device for the button state, the electronic equipment and the storage medium, at least one service flow event executed currently by the application is acquired by responding to the trigger of the target button; calling and obtaining a button pressure value from the configuration information of the target button, and calling and obtaining a node pressure value from the configuration information of the currently executed service node of each service flow event; and determining the trigger state of the target button according to the button pressure value and the pressure value of each node, so that a control mode based on condition codes is not required to be adopted when the state of the button is controlled, but a control mode of judging the pressure value is adopted, the pressure values of the button and the service node are only required to be modified when the service logic of the button is changed, the judgment logic is not required to be changed, the maintenance is convenient, the flow is simple, and the use is convenient.
Other effects of the above alternatives will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic diagram of a network architecture provided by the present disclosure;
FIG. 2 is an interface schematic diagram of a control method for button status provided by the present disclosure;
FIG. 3 is a flow chart illustrating a method for controlling button status provided by the present disclosure;
FIG. 4 is a timing diagram of traffic flow time for the control method of button status provided by the present disclosure;
FIG. 5 is a schematic structural diagram of a control device for button status provided by the present disclosure;
fig. 6 is a block diagram of an electronic device provided by the present disclosure to implement a control method of a button state according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Along with the improvement of the intelligent degree of the terminal, the functions of the application APP born by the intelligent terminal are increased. The user can click the application button that the APP provided in order to accomplish the function interaction with the APP, and the condition of violently clicking the button appears when the user clicks the application button inevitably.
In the prior art, in order to avoid the operation abnormality of the application service flow and the service node caused by violently clicking the button, when the code of the application button is developed, a condition code including an if else code is added for the function and the service flow of the application button.
For example, when the event of interface post data is executed, it is necessary to prohibit triggering of other buttons, and when the event of IO file serialization is executed, it is necessary to prohibit triggering of the application close button and the service cancel button. That is, for the plurality of traffic events, a large number of condition codes including an if else code are added as controls of the button for each traffic event execution state. For example, if (…) {. About. SetEnable (true/false) }. When the user triggers the application button, the application button will determine whether to respond to the user's trigger based on the condition code as a determination condition.
However, the adoption of the condition code increases the difficulty of performing post-maintenance on the application button, and once the logic of the service flow corresponding to the application button needs to be modified or added, the engineering is complex and errors are easy to occur.
In order to solve the above problems, the present disclosure provides a method, an apparatus, an electronic device, and a storage medium for controlling a button state, where a node pressure value is set on a service node corresponding to each service flow event, and a button for executing each service flow event also sets a corresponding button pressure value, and a trigger state of a target button is determined by using a size relationship between the button pressure value of the target button and the node pressure value of the service node corresponding to each service flow event being executed by an application, so as to implement control on locking and activation of the target button.
Fig. 1 is a schematic diagram of a network architecture according to the present disclosure, as shown in fig. 1, wherein the control device of the button state may be installed on an electronic device 1, and the electronic device may be a hardware device with a logic processing function, such as a computer, a mobile tablet computer, or the like, and may also be a server and a processing device disposed in a cloud. In particular, when the control device of the button state is software, it can be installed in the above-listed corresponding electronic devices, that is, the control device of the button state is in the form of software installed in the electronic devices such as a computer, a mobile platform computer, a server, a processing device, and the like. Furthermore, the control device for the button status may also be implemented as a plurality of software or software modules (for example, to provide distributed services), or may also be implemented as a single software or software module, which is not limited herein.
In addition, in the process of controlling the application by the control device 1 in the subsequent button state, the electronic device 2 carrying the control device in the button state needs to be installed with the application 3, where as shown in fig. 1, the control device 1 in the button state may be a part of the function of the application 3, and may also be a control capable of interacting with the application 3 independently of the application 3. In addition, in the network architecture provided by the present disclosure, a server 4 may also be included. The server 4 is a background service device on which the control device of the button state is based, and the developer can update the pressure value of the control device 1 of the button state by using the server 4. The server 4 and the electronic device 2 may interact via a network.
Fig. 2 is an interface schematic diagram of a control method of a button state provided by the present disclosure, and a user may trigger a button through operations such as clicking, sliding, pressing, inputting, and the like on the electronic device 2, so that the control device 1 of the button state carried by the electronic device 2 responds to the trigger to perform control of the button state. Subsequently, the control device 1 of the button state will perform operation feedback to the user according to the trigger state of the button after completing the control thereof, as shown in fig. 2 as "trigger failure".
It should be noted that the manner shown in fig. 2 is only one of the interface change manners provided by the present disclosure, and the interface of the interface change manner is changed correspondingly based on different trigger manners and different types of applications.
In a first aspect, the present disclosure provides a method for controlling a button state, and fig. 3 is a flowchart illustrating the method for controlling the button state provided by the present disclosure.
As shown in fig. 3, the method for controlling the button state includes:
step 101, responding to the trigger of the target button, and acquiring at least one service flow event currently executed by the application.
The execution subject of the button control method provided in this example is a control device of the button state. In the present disclosure, an application may execute one or more traffic events synchronously or asynchronously at the same time, while for any traffic event, it is implemented based on several traffic nodes. When any service flow event starts to be executed, all service nodes forming the service flow event are correspondingly executed according to a preset execution sequence. That is, there may be a plurality of traffic flow events executed by the applications at the same time, and there are a plurality of corresponding traffic nodes. In addition, for part of the service nodes in the part of the service flow events, the application will set a button to receive a triggering instruction of the user to the service node, for example, a "start" button or a "reset" button in the service flow event of "interface post data", etc., and when the button is triggered and activated, the application will execute the service node corresponding to the button.
In the disclosed example, the application may receive a trigger instruction of a user to a button on the application page, and respond to the trigger, at this time, the control device of the button state will acquire at least one service flow event currently executed by the application. As described above, at the same time, an application may execute a plurality of traffic events, and the control device in the button state needs to acquire all the traffic events that refer to the execution.
And 102, obtaining a button pressure value from the configuration information of the target button, and obtaining a pressure value of each node from the configuration information of the currently executed service node of each service flow event.
Specifically, the control device of the button state determines the button pressure value of the target button and the node pressure value of each current service node by reading the configuration information.
And the button pressure value P of the target button is consistent with the node pressure value bP of the service node in the service flow event corresponding to the button pressure value P. That is, for example, the triggered target button is a "start" button of a service node that starts to perform a post data operation in a traffic flow event of starting "interface post data", and the button pressure value P of the target button is to be kept consistent with the node pressure value bP of the service node that starts to perform the post data operation.
In addition, the node pressure value bP of each service node in each configuration information is determined according to the incidence relation between the application executable service flow events, that is, the node pressure value is determined after the service node completes the setting or configuration. In the stage of developing the service flow events of the application, the service nodes can be split for each service flow event, and then the node pressure values of the split service nodes are determined.
In the present disclosure, the nodal pressure value may be determined based on two ways:
the first method comprises the following steps: and determining the pressure value of each node of each service node in each service flow event according to the service logic relationship between the service flow events which can be executed by the application and the service logic relationship between each service node in the same service flow event.
Specifically, the business logic relationship includes a logical series connection, and/or a logical parallel connection. For example, for a process of saving a draft of an article, for a service of saving the draft, a local draft and a network draft need to be saved, and the local draft and the network draft can be split into a post interface service flow event and an IO flow file service flow event, where the two service flow events belong to a logically parallel relationship. In addition, the service node of the post interface service flow event can be disassembled into an interface success and an interface failure, the service node of the IO flow file service flow event can be disassembled into an IO success and an IO failure, and the IO success and the IO failure of the service node also belong to a logic parallel relation.
Therefore, for the service nodes of the service logic relationship, the same node pressure values can be adopted for the node pressure values of "IO success" and "IO failure", for example.
Of course, in other examples, there exists a service flow event in a logical serial manner, if it is necessary to execute the "save" service flow event to the "IO successful" service node, the service node of the "issue interface call" in the "issue" service flow event can be executed, and accordingly, the node pressure value of the "IO successful" service node should be greater than the service node of the "issue interface call".
And the second method comprises the following steps: determining a node pressure value of any service node according to the influence of any service node in each service flow event on other service nodes; the other service nodes are service nodes except any service node in each service flow event; the influence is used for expressing the priority of the service sequence among the service nodes, the association degree among the service nodes and the dependency degree.
The node pressure value of a service node is in direct proportion to the influence of the service node, and the influence is related to the service sequence priority, the association degree between the service nodes and the dependency degree. The service sequence priority is used to refer to the priority of the service executed by the service node in the whole service flow event, the degree of association between the service nodes refers to the influence plane of the service node, that is, the degree of service influence caused by the service execution result on the number or the large range of the service nodes, the dependency refers to the importance degree of the service node, that is, the necessity, when the dependency is high, the service node is an indispensable node for executing the service flow event, and when the dependency is low, the service node can be replaced by another service node.
Therefore, based on the influence of the service flow event, i.e. the service order priority, the influence plane, the necessity, and other factors, the node pressure value bP may be allocated to each service node obtained by splitting. If the service node is more necessary, the influence surface is wider, and the priority is higher, the value of the node pressure value bP is larger, that is, the control range of the service node to the button is larger. For example, the service node a performing the page initialization should belong to the service node with the highest priority, and the node pressure value bP of the service node a may be set to 1000; the service node B performing the network interface data reading and displaying belongs to a service node with a higher necessity, and the network interface data reading and displaying needs to be performed after the page initialization is completed, so the node pressure value bP of the service node a should be greater than the node pressure value bP of the service node B, and the node pressure value bP of the service node B may be set to 100. Meanwhile, for the service node of the interface service and the service node of the IO service, the corresponding bP value also needs to be determined.
And 103, determining the trigger state of the target button according to the button pressure value and the pressure value of each node.
Specifically, the control device for the button state will first determine the maximum value maxbP in the node pressure values, and then determine the trigger state of the target button according to the magnitude relationship between the button pressure value P and the maximum value maxbP. Further, when the button pressure value P is greater than the maximum value maxbP, the triggering state of the target button is triggerable; when the button pressure value P is not larger than the maximum value maxbP, the triggering state of the target button is not triggerable.
It should be noted that, in the present disclosure, as the service flow event is executed, the current service nodes will change, and the maximum value maxbP in the corresponding current node pressure values will also change. Fig. 4 is a timing diagram of a traffic flow time of the control method of the button state provided by the present disclosure, as shown in fig. 4, a traffic flow event a and a traffic flow event B are simultaneously executed within an application. Wherein the service nodes A1, A2, A3 in the service flow event a are executed respectively, and the service nodes B1, B2, B3 in the service flow event B are executed respectively.
The target button corresponds to different trigger states at different trigger moments, specifically, the button pressure value of the target button is P, when the trigger moment is t1, as the node pressure value of the service node A1 in the service node A1 and the node pressure values bPA1 and bPB of the B1 at the t1 moment is larger, maxbP at the t1 moment can be set as bPA1, and as maxbP is smaller than the button pressure value which is P, the trigger state of the target button is triggerable; when the triggering time is t2, because the node pressure value of the service node B3 is larger in the node pressure values bPA2 and bPB of the service nodes A2 and B3 at the time of t2, maxbP at the time of t2 can be set to bPB, and because maxbP is larger than the button pressure value to P, the triggering state of the target button is not triggerable. Typically, every time a service node completes, the maxbP can be reset to the maximum bP value in the executing service node.
In particular, in this disclosure example, the determining the trigger state of the target button according to the button pressure value and the node pressure values may specifically include: determining the maximum value of the pressure values of the nodes, and determining the trigger state of the target button according to the size relation between the button pressure value and the maximum value. The determination time of the maximum value can be determined based on whether the service node has service flow transfer, that is, when the maximum value in the pressure values of the nodes is determined, whether the currently executed service node has service flow transfer can be judged, if yes, the pressure value of each node is obtained by calling in the configuration information of the previously executed service node and the maximum value in the pressure values of the nodes is determined; correspondingly, if not, the maximum value in the pressure values of the nodes obtained in the previous determination is used as the maximum value in the current time. In addition, after each determination of a new maximum, a maximum storage may be performed for subsequent recall.
In addition, the service flow event corresponding to the target button can be executed or refused to be executed according to the trigger state of the target button. Generally, when the trigger state is triggerable, the service node corresponding to the target button may be executed, and when the trigger state is non-triggerable, the service node corresponding to the target button may not be executed.
According to the control method of the button state, at least one service flow event executed currently by an application is acquired by responding to the trigger of a target button; calling a button pressure value from the configuration information of the target button, and calling corresponding node pressure values from the configuration information of the current service node of each service flow event; and determining the trigger state of the target button according to the button pressure value and the pressure value of each node, so that a control mode based on condition codes is not required to be adopted when the state of the button is controlled, but a control mode of judging the pressure value is adopted, the pressure values of the button and the service node are only required to be modified when the service logic of the button is changed, the judgment logic is not required to be changed, the maintenance is convenient, the flow is simple, and the use is convenient.
In a second aspect, the present disclosure provides a control device for a button state, and fig. 5 is a schematic structural diagram of the control device for a button state provided by the present disclosure.
As shown in fig. 5, the button state control device includes:
an obtaining unit 10, configured to respond to a trigger on a target button, and obtain at least one service flow event currently executed by an application;
a pressure value determining unit 20, configured to invoke a button pressure value from the configuration information of the target button, and invoke a corresponding pressure value of each node from the configuration information of the current service node of each service flow event;
and the control unit 30 is used for determining the trigger state of the target button according to the button pressure value and each node pressure value.
In an optional example, the control unit 30 is specifically configured to determine a maximum value of the node pressure values, and determine the trigger state of the target button according to a size relationship between the button pressure value and the maximum value.
In an optional example, the control unit 30 is specifically configured to, when the button pressure value is greater than the maximum value, enable the triggering state of the target button; and when the button pressure value is not greater than the maximum value, the triggering state of the target button is not triggerable.
In an optional example, the execution unit is configured to execute or refuse to execute a service flow event corresponding to the target button according to the trigger state of the target button after determining the trigger state of the target button according to the button pressure value and the node pressure values.
In an optional example, the apparatus further comprises a setting unit;
the setting unit is used for determining the node pressure value of the service node corresponding to each service flow event according to the incidence relation between the application executable service flow events; and the node pressure value of the service node is in direct proportion to the influence of the service node.
In an alternative example, the button pressure value of the button is consistent with the node pressure value of the service node in the service flow event corresponding to the button.
The control device for the button state provided by the disclosure acquires at least one service flow event currently executed by an application by responding to the triggering of a target button; calling a button pressure value from the configuration information of the target button, and calling corresponding node pressure values from the configuration information of the current service node of each service flow event; the trigger state of the target button is determined according to the button pressure value and the pressure value of each node, so that a control mode based on condition codes is not needed when the state of the button is controlled, but a control mode for judging the size of the pressure value is adopted, the pressure values of the button and the service nodes are only needed to be modified when the service logic of the button is changed, the judgment logic is not needed to be changed, the maintenance is convenient, the process is simple, and the use is convenient.
According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
Fig. 6 is a block diagram of an electronic device provided by the present disclosure and used for implementing a control method of a button state according to an embodiment of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the electronic apparatus includes: one or more processors 401, memory 402, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 6, one processor 401 is taken as an example.
Memory 402 is a non-transitory computer readable storage medium provided by the present disclosure. Wherein the memory stores instructions executable by at least one processor to cause the at least one processor to perform the method for generating intent words provided by the present disclosure. The non-transitory computer-readable storage medium of the present disclosure stores computer instructions for causing a computer to execute the control method of button states provided by the present disclosure.
The memory 402, as a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the generation of intent words in the disclosed embodiments (e.g., the acquisition unit 10, the pressure value determination unit 20, the control unit 30 shown in fig. 5). The processor 401 executes various functional applications of the server and data processing, i.e., acquisition of channel information in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 402.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of the electronic device according to acquisition of the channel information, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 402 may optionally include memory located remotely from the processor 401, which may be connected to the electronic device for acquisition of channel information over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the generation of the intention word may further include: an input device 403 and an output device 404. The processor 401, memory 402, input device 403, and output device 404 may be connected by a bus or other means, as exemplified by the bus connection in fig. 6.
The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus for acquisition of channel information, such as an input device of a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or the like. The output devices 404 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the disclosure, the intention words meeting the intention requirements of the target population can be determined according to the self information search behavior characteristics of the target population on the basis of considering the existing general intention words, so that the information flow can be conveniently pushed based on the corresponding intention words of the target population, and the pushing accuracy is further improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (12)

1. A method for controlling a state of a button, comprising:
responding to the triggering of the target button, and acquiring at least one service flow event currently executed by the application;
calling and obtaining a button pressure value from the configuration information of the target button, and calling and obtaining a node pressure value from the configuration information of the currently executed service node of each service flow event;
determining a trigger state of the target button according to the button pressure value and the pressure value of each node;
the determining the trigger state of the target button according to the button pressure value and the pressure values of the nodes comprises:
determining the maximum value of the pressure values of all the nodes;
and determining the trigger state of the target button according to the size relation between the button pressure value and the maximum value.
2. The control method according to claim 1, characterized by further comprising:
and determining the pressure value of each node of each service node in each service flow event according to the service logic relationship between the service flow events which can be executed by the application and the service logic relationship between each service node in the same service flow event.
3. The control method according to claim 1, characterized by further comprising:
determining a node pressure value of any service node according to the influence of any service node in each service flow event on other service nodes;
the other service nodes are service nodes except any service node in each service flow event; the influence is used for expressing the priority of the service sequence among the service nodes, the association degree among the service nodes and the dependency degree.
4. The control method according to any one of claims 1 to 3, wherein the button pressure value of the button is kept consistent with the node pressure value of the service node in the service flow event corresponding thereto.
5. The control method of claim 1, wherein said determining a maximum value of the nodal pressure values comprises:
judging whether the currently executed service node generates service flow;
if yes, calling and obtaining the pressure value of each node from the configuration information of the service node executed before reacquiring, and determining the maximum value of the pressure values of each node.
6. A control device for button states, comprising:
the acquisition unit is used for responding to the triggering of the target button and acquiring at least one service flow event currently executed by the application;
the pressure value determining unit is used for obtaining a button pressure value from the configuration information of the target button and obtaining a node pressure value from the configuration information of the currently executed service node of each service flow event;
the control unit is used for determining the trigger state of the target button according to the button pressure value and the pressure value of each node;
the control unit is specifically configured to determine a maximum value among the node pressure values, and determine a trigger state of the target button according to a size relationship between the button pressure value and the maximum value.
7. The control device according to claim 6, characterized by further comprising a setting unit;
the setting unit is used for determining each node pressure value of each service node in each service flow event according to a service logic relationship between service flow events executable by an application and a service logic relationship between each service node in the same service flow event, wherein the service logic relationship comprises logic series connection and/or logic parallel connection.
8. The control device according to claim 6, characterized by further comprising a setting unit;
the setting unit is used for determining the node pressure value of any service node according to the influence of any service node in each service flow event on other service nodes;
the other service nodes are service nodes except any service node in each service flow event; the influence is used for expressing the priority of the service sequence among the service nodes, the association degree among the service nodes and the dependency degree.
9. The control device of any one of claims 6-8, wherein the button pressure value of a button is consistent with the node pressure value of the service node in its corresponding traffic flow event.
10. The control device according to claim 6, wherein the control unit is specifically configured to determine whether a currently executed service node generates a service flow; if yes, calling and obtaining the pressure value of each node from the configuration information of the service node executed before re-obtaining, and determining the maximum value of the pressure values of each node.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-5.
CN201910804771.9A 2019-08-28 2019-08-28 Button state control method and device, electronic equipment and storage medium Active CN110515622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910804771.9A CN110515622B (en) 2019-08-28 2019-08-28 Button state control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910804771.9A CN110515622B (en) 2019-08-28 2019-08-28 Button state control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110515622A CN110515622A (en) 2019-11-29
CN110515622B true CN110515622B (en) 2023-03-31

Family

ID=68627622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910804771.9A Active CN110515622B (en) 2019-08-28 2019-08-28 Button state control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110515622B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988177B (en) * 2020-08-20 2023-05-12 深信服科技股份有限公司 Bypass control method, bypass control system, bypass control equipment and computer medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108446341A (en) * 2018-03-02 2018-08-24 平安普惠企业管理有限公司 Service condition querying method, device, computer equipment and storage medium
CN109995804A (en) * 2017-12-29 2019-07-09 腾讯科技(深圳)有限公司 Display methods, information providing method and the device of target resource information
CN110008034A (en) * 2018-11-22 2019-07-12 阿里巴巴集团控股有限公司 Task automated execution method, apparatus, electronic equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8497836B2 (en) * 2008-05-06 2013-07-30 Cisco Technology, Inc. Identifying user by measuring pressure of button presses on user input device
US20140128994A1 (en) * 2012-11-07 2014-05-08 Microsoft Corporation Logical sensor server for logical sensor platforms
CN104715309A (en) * 2013-12-11 2015-06-17 阿里巴巴集团控股有限公司 Service control method and device
CN104063280B (en) * 2014-06-25 2017-09-12 华为技术有限公司 A kind of control method of intelligent terminal
US10452497B2 (en) * 2015-08-14 2019-10-22 Oracle International Corporation Restoration of UI state in transactional systems
CN105183228B (en) * 2015-09-09 2019-03-05 魅族科技(中国)有限公司 A kind of terminal device and interface switching method
CN107870711A (en) * 2016-09-27 2018-04-03 阿里巴巴集团控股有限公司 Page navigation method, the method and client that user interface is provided
CN107341033A (en) * 2017-06-30 2017-11-10 百度在线网络技术(北京)有限公司 A kind of data statistical approach, device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995804A (en) * 2017-12-29 2019-07-09 腾讯科技(深圳)有限公司 Display methods, information providing method and the device of target resource information
CN108446341A (en) * 2018-03-02 2018-08-24 平安普惠企业管理有限公司 Service condition querying method, device, computer equipment and storage medium
CN110008034A (en) * 2018-11-22 2019-07-12 阿里巴巴集团控股有限公司 Task automated execution method, apparatus, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110515622A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
US11184216B2 (en) State control method and apparatus
KR102493449B1 (en) Edge computing test methods, devices, electronic devices and computer-readable media
CN110806923B (en) Parallel processing method and device for block chain tasks, electronic equipment and medium
CN112925651B (en) Application resource deployment method, device, electronic equipment and medium
JP7167222B2 (en) APPLET DATA ACQUISITION METHOD, APPARATUS, DEVICE, AND STORAGE MEDIUM
CN111400000B (en) Network request processing method, device, equipment and storage medium
CN112286656B (en) Applet simulation method, apparatus, electronic device, and computer-readable storage medium
CN111767090A (en) Method and device for starting small program, electronic equipment and storage medium
CN112235417B (en) Method and device for sending debugging instruction
KR102488582B1 (en) Method and apparatus for verifying operation state of application
EP4209899A1 (en) Method and apparatus for updating cloud platform
CN112527474A (en) Task processing method and device, equipment, readable medium and computer program product
CN112925652A (en) Application resource deployment method, device, electronic equipment and medium
CN112540914A (en) Execution method, execution device, server and storage medium for unit test
CN111782341A (en) Method and apparatus for managing clusters
CN112506854A (en) Method, device, equipment and medium for storing page template file and generating page
CN111625949A (en) Simulation engine system, simulation processing method, device and medium
CN114091672B (en) Distributed model reasoning method and device, electronic equipment and medium
CN110515622B (en) Button state control method and device, electronic equipment and storage medium
JP7016436B2 (en) Data processing methods, devices, equipment and storage media based on smart contracts
CN112559498B (en) Method and device for constructing distributed architecture of time sequence space-time database system
CN111966877B (en) Front-end service method, device, equipment and storage medium
CN111966471B (en) Access method, device, electronic equipment and computer storage medium
CN111782147A (en) Method and apparatus for cluster scale-up
CN111782357A (en) Label control method and device, electronic equipment and readable storage medium

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