CN112579686A - Interaction method, interaction device, storage medium and electronic equipment - Google Patents

Interaction method, interaction device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112579686A
CN112579686A CN201910945771.0A CN201910945771A CN112579686A CN 112579686 A CN112579686 A CN 112579686A CN 201910945771 A CN201910945771 A CN 201910945771A CN 112579686 A CN112579686 A CN 112579686A
Authority
CN
China
Prior art keywords
interaction
component
interaction state
state
subscription
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.)
Pending
Application number
CN201910945771.0A
Other languages
Chinese (zh)
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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201910945771.0A priority Critical patent/CN112579686A/en
Publication of CN112579686A publication Critical patent/CN112579686A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an interaction method, an interaction device, a storage medium and electronic equipment. The method comprises the following steps: acquiring change information of the interaction state of at least one component, wherein the change information of the interaction state is triggered by interaction behaviors generated on the component; notifying the change information of the interactive state to a monitor of a subscription component subscribing the interactive state according to a preset mapping table, wherein the mapping table comprises a subscription relation between the interactive state and the monitor of the subscription component; the change information of the interaction state received by the monitor is responded by the subscription component. By the method and the device, the problem that in the related technology, due to the fact that the interaction relation among the components is complex, the triggered interaction behavior is difficult to respond according to the interaction requirements of the components is solved.

Description

Interaction method, interaction device, storage medium and electronic equipment
Technical Field
The present application relates to the field of component interaction technologies, and in particular, to an interaction method, an interaction apparatus, a storage medium, and an electronic device.
Background
For a commercial intelligent product, there are a large number of data analysis scenarios and application scenarios in which there are many interactive functions related to charts, such as linkage between charts, linkage of filter components and charts, and chart drill-down operations, chart forewarning, dashboard bookmarks, etc. The scenes can provide good interaction for data visualization, so that value information in the data is more visually presented, and therefore a user can more finely analyze the data, more data values are mined, and more information is provided for accurate decision making.
It should be noted that the interaction process of the diagram can be summarized as follows: the chart monitors the interactive state and makes an interactive response when the state changes. Because the interaction modes of the charts are various, different interaction modes can be completely different, the charts responding to the interaction can be the charts initiating the interaction or other charts, all interaction relations are combined together, diversified interaction results can be evolved, the logic complexity is high, and the interactive response process is difficult to manage.
Some tools for managing the interaction state among components exist in the related art, for example, an open source project Echarts chart library is a pure Javascript chart library, can be smoothly operated on a PC and a mobile device, provides visual, vivid, interactive and personalized data visualization charts, and can provide related attributes and APIs of the charts, and be used for grouping and linkage binding of a plurality of charts. A set of linkage relation mapping tables are maintained in source codes of the Echarts chart library, after linkage is triggered, relevant charts are re-rendered, and interaction is responded, however, the Echarts chart library only provides api relevant to chart linkage interaction, response logic is built-in and cannot be customized, and the method is only limited to Echarts chart components and is not applicable to other components and diverse interaction modes.
For another example, the Vue framework is an excellent open-source front-end framework, which defines an evaluation function and a write function of an object and its attribute value by using a JavaScript object definition method, and implements interception of variable acquisition and writing, thereby implementing interception and response of a variable.
Aiming at the problem that in the related art, due to the fact that the interaction relation among the components is complex, the triggered interaction behavior is difficult to respond according to the interaction requirements of the components, an effective solution is not provided at present.
Disclosure of Invention
The application provides an interaction method, an interaction device, a storage medium and electronic equipment, which are used for solving the problem that in the related art, due to the fact that the interaction relationship among components is complex, the triggered interaction behavior is difficult to respond according to the interaction requirements of the components.
According to one aspect of the present application, an interaction method is provided. The method comprises the following steps: acquiring change information of the interaction state of at least one component, wherein the change information of the interaction state is triggered by interaction behaviors generated on the component; notifying the change information of the interactive state to a monitor of a subscription component subscribing the interactive state according to a preset mapping table, wherein the mapping table comprises a subscription relation between the interactive state and the monitor of the subscription component; the change information of the interaction state received by the monitor is responded by the subscription component.
Optionally, the obtaining of the change information of the interaction state of the at least one component includes: acquiring a target interaction behavior generated on a target component; determining a target interaction state and a target interaction state value according to the target interaction behavior, wherein the target interaction state represents an interaction mode, and the target interaction state value represents a data index according to the interaction process; and determining change information of the interaction state of the target component at least based on the name of the target component, the target interaction state and the target interaction state value.
Optionally, before notifying, according to a preset mapping table, change information of the interaction state to a monitor of a subscription component subscribing to the interaction state, the method further includes: determining a subscription component of a plurality of interaction states that subscribes to each interaction state; and establishing a subscription relation between each interactive state and a monitor of a subscription component subscribing to the interactive state to obtain a preset mapping table.
Optionally, before determining a subscription component that subscribes to each of the plurality of interaction states, the method further comprises: determining interaction requirements of a subscription component, wherein the interaction requirements at least comprise a preset component with which the subscription component is to interact, and a preset interaction state between the subscription component and the preset component; and determining the interaction state subscribed by the subscription component according to the interaction requirement of the subscription component.
Optionally, the monitor for notifying the change information of the interaction state to the subscription component subscribing to the interaction state according to the preset mapping table includes: determining a corresponding changed interaction state in a preset mapping table according to the change information of the interaction state; determining the ID of a subscription component subscribing the change information of the interaction state based on the changed interaction state and the subscription relationship between the interaction state and the subscription component; determining a monitor of a subscription component according to the ID of the subscription component; and sending the change information of the interaction state to the monitor of the subscription component.
Optionally, the responding, by the subscription component, to the change information of the interaction state received by the monitor includes: sending the change information of the interaction state to a view layer of the subscription component through a distribution function of the monitor; and the view layer updates the display information based on the change information of the interaction state.
According to another aspect of the present application, an interactive apparatus is provided. The device includes: the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring change information of the interaction state of at least one component, and the change information of the interaction state is triggered by interaction behaviors generated on the component; the notification unit is used for notifying the change information of the interaction state to a monitor of a subscription component subscribing the interaction state according to a preset mapping table, wherein the mapping table comprises a subscription relation between the interaction state and the monitor of the subscription component; and the response unit is used for responding the change information of the interaction state received by the monitor through the subscription component.
Optionally, the obtaining unit includes: the acquisition module is used for acquiring a target interaction behavior generated on the target component; the first determining module is used for determining a target interaction state and a target interaction state value according to the target interaction behavior, wherein the target interaction state represents an interaction mode, and the target interaction state value represents a data index according to the interaction process; and the second determining module is used for determining the change information of the interaction state of the target component at least based on the name of the target component, the target interaction state and the target interaction state value.
In order to achieve the above object, according to another aspect of the present application, there is provided a storage medium including a stored program, wherein the program performs any one of the above interaction methods.
In order to achieve the above object, according to another aspect of the present application, there is provided an electronic device including at least one processor, and at least one memory connected with the processor, a bus; the processor and the memory complete mutual communication through a bus; the processor is used for calling the program instructions in the memory to execute any one of the interaction methods.
Through the application, the following steps are adopted: acquiring change information of the interaction state of at least one component, wherein the change information of the interaction state is triggered by interaction behaviors generated on the component; notifying the change information of the interactive state to a monitor of a subscription component subscribing the interactive state according to a preset mapping table, wherein the mapping table comprises a subscription relation between the interactive state and the monitor of the subscription component; the problem that in the related art, due to the fact that the interaction relation among the components is complex, the interaction behavior triggered by the interaction requirement response of the components is difficult to respond is solved through the subscription component response monitor for receiving the change information of the interaction state. And monitoring and responding to the change information of the interaction state through the subscription relation in the preset mapping table, thereby achieving the effect of responding to the triggered interaction behavior according to the interaction requirement of the component.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 is a flow chart of an interaction method provided according to an embodiment of the application;
FIG. 2 is a schematic diagram of a data analysis apparatus provided in accordance with an embodiment of the present application; and
fig. 3 is a schematic diagram of an electronic device provided according to an embodiment of the application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the present application, an interaction method is provided.
Fig. 1 is a flow chart of an interaction method according to an embodiment of the application. As shown in fig. 1, the method comprises the steps of:
step S101, change information of the interaction state of at least one component is obtained, wherein the change information of the interaction state is triggered by the interaction behavior generated on the component.
It should be noted that the component may be a diagram, a filtering component, or the like, which may be displayed on the interface and may receive the interactive behavior. After the user generates the interaction behavior on the component, the interaction state of the component may be changed, for example, the user clicks on an icon on the form indicating that the specific data is filtered, and the chart may be changed from a state in which all data is displayed to a state in which the specific data is filtered.
Optionally, in the interaction method provided in this embodiment of the present application, the obtaining of the change information of the interaction state of at least one component includes: acquiring a target interaction behavior generated on a target component; determining a target interaction state and a target interaction state value according to the target interaction behavior, wherein the target interaction state represents an interaction mode, and the target interaction state value represents a data index according to the interaction process; and determining change information of the interaction state of the target component at least based on the name of the target component, the target interaction state and the target interaction state value.
It should be noted that the interaction behavior may be a behavior of a user clicking, sliding, and touching a mark, a button, and the like on the component, each interaction behavior may trigger an interaction mode to generate a corresponding interaction state, and the interaction process may also be based on a specific data index, that is, an interaction state value. For example, the user clicks an icon 2019-01-01 on the time filtering component to indicate that the target interaction mode is filtering, the filtering value is 2019, 1 month and 1 day, and the change information of the interaction state of the target component is: the temporal-based filtering component filters out the data of 2019-01-01.
Step S102, according to a preset mapping table, notifying the monitor of the subscription component subscribing the interaction state of the change information of the interaction state, wherein the mapping table comprises a subscription relationship between the interaction state and the monitor of the subscription component.
It should be noted that one component may subscribe to its own interaction state, and may also subscribe to interaction states of other components, where each component has its own monitor for observing whether the subscribed interaction state changes, specifically, a subscription relationship between the component and the interaction state is stored in a preset mapping table in advance, and the component may obtain change information of its subscribed interaction state through the preset mapping table.
Optionally, in the interaction method provided in the embodiment of the present application, the notifying, according to the preset mapping table, the change information of the interaction state to the monitor of the subscription component that subscribes to the interaction state includes: determining a corresponding changed interaction state in a preset mapping table according to the change information of the interaction state; determining the ID of a subscription component subscribing the change information of the interaction state based on the changed interaction state and the subscription relationship between the interaction state and the subscription component; determining a monitor of a subscription component according to the ID of the subscription component; and sending the change information of the interaction state to the monitor of the subscription component.
Specifically, after the interaction behavior is triggered and the interaction state is updated, all monitors monitoring the interaction state are found from the preset mapping table, and the monitors corresponding to the ID of the subscription component subscribing the interaction state are notified from the monitors, that is, the change information of the interaction state is sent to the monitors corresponding to the specified ID.
For example, graph a shows the visit amount data of each province, graph B shows the sales amount data of each product category, graph B subscribes to the interaction state of province information change, and the subscription relationship between graph B and the interaction state of province change is stored in a preset mapping table. In the interaction process, a user clicks a character 'Shandong province' in a graph A to indicate that the interaction state of provinces changes, a component ID subscribing the interaction state of provinces in a preset mapping table is searched, for example, the ID of the graph B is searched, the interaction state information of provinces is sent to a monitor of the graph B, and the graph B is changed to display sales data of various product categories of Shandong province from display sales data of various product categories of the whole country according to data in a linkage table of the interaction states of provinces.
By the embodiment, the defect that when a certain monitored interactive state changes, all related components immediately respond to the change is avoided, and the change information of the interactive state is sent to the monitor of the subscription component, so that the response mode is more flexible, and unnecessary response overhead is reduced.
Step S103, the change information of the interaction state received by the monitor is responded through the subscription component.
Specifically, the monitor sends the monitored change information of the interaction state to the subscription component, and the subscription component receives the change information of the interaction state and updates the display information of the subscription component based on the change information.
Optionally, in the interaction method provided in this embodiment of the present application, the responding, by the subscription component, to the change information of the interaction state received by the monitor includes: sending the change information of the interaction state to a view layer of the subscription component through a distribution function of the monitor; and the view layer updates the display information based on the change information of the interaction state.
Specifically, when the state changes, the distribution function of the monitor calls an update method, the change information of the interaction state is notified to the view layer of the subscription component, the view layer completes interaction response, and the information after interaction is displayed on the interface where the subscription component is located.
According to the interaction method provided by the embodiment of the application, the change information of the interaction state of at least one component is obtained, wherein the change information of the interaction state is triggered by the interaction behavior generated on the component; notifying the change information of the interactive state to a monitor of a subscription component subscribing the interactive state according to a preset mapping table, wherein the mapping table comprises a subscription relation between the interactive state and the monitor of the subscription component; the problem that in the related art, due to the fact that the interaction relation among the components is complex, the interaction behavior triggered by the interaction requirement response of the components is difficult to respond is solved through the subscription component response monitor for receiving the change information of the interaction state. And monitoring and responding to the change information of the interaction state through the subscription relation in the preset mapping table, thereby achieving the effect of responding to the triggered interaction behavior according to the interaction requirement of the component.
Optionally, in the interaction method provided in this embodiment of the present application, before notifying, according to the preset mapping table, change information of the interaction state to a monitor of a subscription component that subscribes to the interaction state, the method further includes: determining a subscription component of a plurality of interaction states that subscribes to each interaction state; and establishing a subscription relation between each interactive state and a monitor of a subscription component subscribing to the interactive state to obtain a preset mapping table.
It should be noted that the preset mapping table is a global subscription relationship mapping table, after the components subscribe the interaction state, all the subscription relationships are maintained in the global subscription relationship mapping table, and the mapping table records which subscription component monitors each interaction state is observed by, so as to lay a foundation for the subsequent subscription components to respond to the corresponding interaction state.
Optionally, in the interaction method provided in this embodiment of the application, before determining a subscription component that subscribes to each interaction state in the multiple interaction states, the method further includes: determining interaction requirements of a subscription component, wherein the interaction requirements at least comprise a preset component with which the subscription component is to interact, and a preset interaction state between the subscription component and the preset component; and determining the interaction state subscribed by the subscription component according to the interaction requirement of the subscription component.
It should be noted that each component has different interaction requirements, and each component can select whether to respond to the interaction states of other components, which interaction states are responded to, and after the interaction requirements are determined, determine the interaction state subscribed by the target component, thereby constructing a preset mapping table based on the interaction states subscribed by the target component, and implementing conditional response.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the present application further provides an interaction apparatus, and it should be noted that the interaction apparatus in the embodiment of the present application may be used to execute the method for interaction provided in the embodiment of the present application. The following describes an interactive device provided in an embodiment of the present application.
Fig. 2 is a schematic diagram of an interaction device according to an embodiment of the application. As shown in fig. 2, the apparatus includes: an acquisition unit 10, a notification unit 20 and a response unit 30.
Specifically, the obtaining unit 10 is configured to obtain change information of an interaction state of at least one component, where the change information of the interaction state is triggered by an interaction behavior generated on the component.
The notifying unit 20 is configured to notify the monitor of the subscription component subscribing to the interaction state of the change information of the interaction state according to a preset mapping table, where the mapping table includes a subscription relationship between the interaction state and the monitor of the subscription component.
A response unit 30, configured to respond, through the subscription component, to the change information of the interaction state received by the monitor.
In the interaction device provided by the embodiment of the application, the change information of the interaction state of at least one component is acquired through the acquisition unit 10, wherein the change information of the interaction state is triggered by the interaction behavior generated on the component; the notification unit 20 notifies the monitor of the subscription component subscribing to the interaction state of the change information of the interaction state according to a preset mapping table, wherein the mapping table includes a subscription relationship between the interaction state and the monitor of the subscription component; the response unit 30 responds to the change information of the interaction state received by the monitor through the subscription component, solves the problem that the interaction behavior triggered according to the interaction requirement response of the component is difficult to respond due to the complex interaction relationship between the components in the related art, and monitors and responds to the change information of the interaction state through the subscription relationship in the preset mapping table, thereby achieving the effect of responding to the triggered interaction behavior according to the interaction requirement of the component.
Optionally, in the interaction apparatus provided in the embodiment of the present application, the obtaining unit 10 includes: the acquisition module is used for acquiring a target interaction behavior generated on the target component; the first determining module is used for determining a target interaction state and a target interaction state value according to the target interaction behavior, wherein the target interaction state represents an interaction mode, and the target interaction state value represents a data index according to the interaction process; and the second determining module is used for determining the change information of the interaction state of the target component at least based on the name of the target component, the target interaction state and the target interaction state value.
Optionally, in the interaction apparatus provided in the embodiment of the present application, the apparatus further includes: the first determining unit is used for determining a subscription component subscribing to each interactive state in a plurality of interactive states before notifying the change information of the interactive state to a monitor subscribing to the subscription component subscribing to the interactive state according to a preset mapping table; and the establishing unit is used for establishing a subscription relationship between each interactive state and the monitor of the subscription component subscribing the interactive state to obtain a preset mapping table.
Optionally, in the interaction apparatus provided in the embodiment of the present application, the apparatus further includes: a second determining unit, configured to determine an interaction requirement of a subscription component before determining a subscription component that subscribes to each interaction state in a plurality of interaction states, where the interaction requirement at least includes a preset component with which the subscription component is to interact, and a preset interaction state between the subscription component and the preset component; and the third determining unit is used for determining the interaction state subscribed by the subscription component according to the interaction requirement of the subscription component.
Optionally, in the interaction apparatus provided in the embodiment of the present application, the notification unit 20 includes: the third determining module is used for determining the corresponding changed interactive state in the preset mapping table according to the change information of the interactive state; the fourth determining module is used for determining the ID of the subscription component which subscribes the change information of the interactive state based on the changed interactive state and the subscription relationship between the interactive state and the subscription component; a fifth determining module, configured to determine a monitor of the subscription component according to the ID of the subscription component; and the first sending module is used for sending the change information of the interaction state to the monitor of the subscription component.
Optionally, in the interaction apparatus provided in the embodiment of the present application, the response unit 30 includes: the second sending module is used for sending the change information of the interaction state to a view layer of the subscription component through a distribution function of the monitor; and the updating module is used for updating the display information based on the change information of the interaction state through the view layer.
The interaction device comprises a processor and a memory, the acquisition unit 10, the notification unit 20, the response unit 30 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem that in the related technology, due to the fact that the interaction relation among the components is complex, the interaction behavior triggered by the interaction requirement response of the components is difficult to respond is solved by adjusting kernel parameters.
An embodiment of the present invention provides a storage medium on which a program is stored, which, when executed by a processor, implements the interaction method.
An embodiment of the present invention provides an electronic device, as shown in fig. 3, the device includes at least one processor, and at least one memory and a bus connected to the processor; the processor and the memory complete mutual communication through a bus; the processor is used for calling the program instructions in the memory to execute the interaction method. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: acquiring change information of the interaction state of at least one component, wherein the change information of the interaction state is triggered by interaction behaviors generated on the component; notifying the change information of the interactive state to a monitor of a subscription component subscribing the interactive state according to a preset mapping table, wherein the mapping table comprises a subscription relation between the interactive state and the monitor of the subscription component; the change information of the interaction state received by the monitor is responded by the subscription component.
Acquiring change information of an interaction state of at least one component includes: acquiring a target interaction behavior generated on a target component; determining a target interaction state and a target interaction state value according to the target interaction behavior, wherein the target interaction state represents an interaction mode, and the target interaction state value represents a data index according to the interaction process; and determining change information of the interaction state of the target component at least based on the name of the target component, the target interaction state and the target interaction state value.
Before notifying, according to a preset mapping table, change information of an interaction state to a monitor of a subscription component subscribing to the interaction state, the method further includes: determining a subscription component of a plurality of interaction states that subscribes to each interaction state; and establishing a subscription relation between each interactive state and a monitor of a subscription component subscribing to the interactive state to obtain a preset mapping table.
Prior to determining a subscription component of the plurality of interaction states that subscribes to each interaction state, the method further comprises: determining interaction requirements of a subscription component, wherein the interaction requirements at least comprise a preset component with which the subscription component is to interact, and a preset interaction state between the subscription component and the preset component; and determining the interaction state subscribed by the subscription component according to the interaction requirement of the subscription component.
The monitor for notifying the change information of the interactive state to a subscription component subscribing the interactive state according to a preset mapping table comprises: determining a corresponding changed interaction state in a preset mapping table according to the change information of the interaction state; determining the ID of a subscription component subscribing the change information of the interaction state based on the changed interaction state and the subscription relationship between the interaction state and the subscription component; determining a monitor of a subscription component according to the ID of the subscription component; and sending the change information of the interaction state to the monitor of the subscription component.
The responding, by the subscription component, to the change information of the interaction state received by the monitor comprises: sending the change information of the interaction state to a view layer of the subscription component through a distribution function of the monitor; and the view layer updates the display information based on the change information of the interaction state.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. An interaction method, comprising:
acquiring change information of an interaction state of at least one component, wherein the change information of the interaction state is triggered by interaction behaviors generated on the component;
notifying the change information of the interaction state to a monitor of a subscription component subscribing the interaction state according to a preset mapping table, wherein the mapping table comprises a subscription relation between the interaction state and the monitor of the subscription component;
responding, by the subscription component, to change information of the interaction state received by the monitor.
2. The method of claim 1, wherein obtaining change information of the interaction state of at least one component comprises:
acquiring a target interaction behavior generated on a target component;
determining a target interaction state and a target interaction state value according to the target interaction behavior, wherein the target interaction state represents an interaction mode, and the target interaction state value represents a data index according to an interaction process;
determining change information of the interaction state of the target component based on at least the name of the target component, the target interaction state, and the target interaction state value.
3. The method of claim 1, wherein before notifying the monitor of the subscription component subscribing to the interaction state of the change information of the interaction state according to a preset mapping table, the method further comprises:
determining a subscription component of a plurality of interaction states that subscribes to each interaction state;
and establishing a subscription relationship between each interactive state and the monitor of the subscription component subscribing to the interactive state to obtain the preset mapping table.
4. The method of claim 3, wherein prior to determining a subscription component in the plurality of interaction states that subscribes to each interaction state, the method further comprises:
determining an interaction requirement of a subscription component, wherein the interaction requirement at least comprises a preset component with which the subscription component is to interact, and a preset interaction state between the subscription component and the preset component;
and determining the interaction state subscribed by the subscription component according to the interaction requirement of the subscription component.
5. The method of claim 1, wherein notifying the monitor of the subscription component subscribing to the interaction state of the change information of the interaction state according to a preset mapping table comprises:
determining a corresponding changed interaction state in the preset mapping table according to the change information of the interaction state;
determining the ID of a subscription component subscribing to the change information of the interaction state based on the changed interaction state and the subscription relationship between the interaction state and the subscription component;
determining a monitor of the subscription component according to the ID of the subscription component;
and sending the change information of the interaction state to the monitor of the subscription component.
6. The method of claim 1, wherein responding, by the subscription component, to the change information of the interaction state received by the monitor comprises:
sending the change information of the interaction state to a view layer of the subscription component through a distribution function of the monitor;
and the view layer updates display information based on the change information of the interaction state.
7. An interactive apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring change information of the interaction state of at least one component, and the change information of the interaction state is triggered by interaction behaviors generated on the component;
a notification unit, configured to notify the monitor of the subscription component that subscribes to the interaction state of the change information of the interaction state according to a preset mapping table, where the mapping table includes a subscription relationship between the interaction state and the monitor of the subscription component;
and the response unit is used for responding the change information of the interaction state received by the monitor through the subscription component.
8. The apparatus of claim 7, wherein the obtaining unit comprises:
the acquisition module is used for acquiring a target interaction behavior generated on the target component;
the first determining module is used for determining a target interaction state and a target interaction state value according to the target interaction behavior, wherein the target interaction state represents an interaction mode, and the target interaction state value represents a data index according to an interaction process;
a second determining module, configured to determine change information of the interaction state of the target component based on at least the name of the target component, the target interaction state, and the target interaction state value.
9. A storage medium characterized in that the storage medium includes a stored program, wherein the program executes the interaction method of any one of claims 1 to 6.
10. An electronic device comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to invoke program instructions in the memory to perform the interaction method of any one of claims 1 to 6.
CN201910945771.0A 2019-09-30 2019-09-30 Interaction method, interaction device, storage medium and electronic equipment Pending CN112579686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910945771.0A CN112579686A (en) 2019-09-30 2019-09-30 Interaction method, interaction device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910945771.0A CN112579686A (en) 2019-09-30 2019-09-30 Interaction method, interaction device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112579686A true CN112579686A (en) 2021-03-30

Family

ID=75117083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910945771.0A Pending CN112579686A (en) 2019-09-30 2019-09-30 Interaction method, interaction device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112579686A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988200A (en) * 2021-04-19 2021-06-18 广州南方卫星导航仪器有限公司 Control state updating method, device, equipment and storage medium
CN114296855A (en) * 2021-12-29 2022-04-08 北京字节跳动网络技术有限公司 User interface state management method and device, electronic equipment and storage medium
CN114327462A (en) * 2021-12-31 2022-04-12 山石网科通信技术股份有限公司 Page data display method, storage medium and electronic device
CN115114050A (en) * 2022-07-27 2022-09-27 山东有人物联网股份有限公司 Method and system for event interaction among elements in visual platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528218A (en) * 2015-12-30 2016-04-27 城云科技(杭州)有限公司 Data diagram cascaded method and data diagram cascaded system
TR201612558A1 (en) * 2016-09-05 2018-03-21 Vodafone Teknoloji Hizmetleri A S A METHOD FOR DETERMINING THE PROFILES OF HOSPITALS WITH BIG DATA ANALYSIS OF MOBILE COMMUNICATION DATA
CN108304236A (en) * 2017-12-28 2018-07-20 天津麒麟信息技术有限公司 User interface method for refreshing based on message subscribing under a kind of cloud platform
CN109582403A (en) * 2017-09-29 2019-04-05 北京国双科技有限公司 Interlocked display method and device between chart inner assembly

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528218A (en) * 2015-12-30 2016-04-27 城云科技(杭州)有限公司 Data diagram cascaded method and data diagram cascaded system
TR201612558A1 (en) * 2016-09-05 2018-03-21 Vodafone Teknoloji Hizmetleri A S A METHOD FOR DETERMINING THE PROFILES OF HOSPITALS WITH BIG DATA ANALYSIS OF MOBILE COMMUNICATION DATA
CN109582403A (en) * 2017-09-29 2019-04-05 北京国双科技有限公司 Interlocked display method and device between chart inner assembly
CN108304236A (en) * 2017-12-28 2018-07-20 天津麒麟信息技术有限公司 User interface method for refreshing based on message subscribing under a kind of cloud platform

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988200A (en) * 2021-04-19 2021-06-18 广州南方卫星导航仪器有限公司 Control state updating method, device, equipment and storage medium
CN114296855A (en) * 2021-12-29 2022-04-08 北京字节跳动网络技术有限公司 User interface state management method and device, electronic equipment and storage medium
CN114296855B (en) * 2021-12-29 2024-04-30 北京字节跳动网络技术有限公司 State management method and device of user interface, electronic equipment and storage medium
CN114327462A (en) * 2021-12-31 2022-04-12 山石网科通信技术股份有限公司 Page data display method, storage medium and electronic device
CN115114050A (en) * 2022-07-27 2022-09-27 山东有人物联网股份有限公司 Method and system for event interaction among elements in visual platform
CN115114050B (en) * 2022-07-27 2024-03-19 山东有人物联网股份有限公司 Event interaction method and system between elements in visual platform

Similar Documents

Publication Publication Date Title
CN112579686A (en) Interaction method, interaction device, storage medium and electronic equipment
CN107391538B (en) Click data acquisition, processing and display method, device, equipment and storage medium
CN109582403B (en) Linkage display method and device for components in diagram
CN106067080B (en) Configurable workflow capabilities are provided
CN113157156A (en) Data processing method for displaying interface content
CN105900121A (en) Methods for generating an activity stream
CN106411639A (en) Method and system for monitoring access data
CN111784468B (en) Account association method and device and electronic equipment
CN105955569A (en) File sharing method and apparatus
CN104216698A (en) Webpage registration method and relative device
CN112182349A (en) Method, device and system for querying compliance file
CN110019261B (en) Data query method and device
CN110647704A (en) Page updating method, device and equipment
CN108810268A (en) Processing method and device for operation record
CN104123303A (en) Method and device for providing data
CN112559576A (en) Data display method, system, device, storage medium and electronic equipment
US20180005419A1 (en) Visually interactive and iterative analysis of data patterns by a user
CN111177562B (en) Recommendation ordering processing method and device for target object and server
CN112579664A (en) Processing method and device for chart linkage
CN112579880A (en) Data analysis method and device, storage medium and electronic equipment
CN112579082A (en) Interactive state data establishing method and device, storage medium and electronic equipment
CN106599071A (en) Short message display method and device
CN110968993A (en) Information processing method and device, storage medium and processor
CN114448831B (en) Method and system for monitoring state of servers to which clusters belong
CN115659045A (en) User operation identification method and device, storage medium and electronic equipment

Legal Events

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