WO2018201871A1 - 数据通知方法、装置及可读存储介质 - Google Patents
数据通知方法、装置及可读存储介质 Download PDFInfo
- Publication number
- WO2018201871A1 WO2018201871A1 PCT/CN2018/082919 CN2018082919W WO2018201871A1 WO 2018201871 A1 WO2018201871 A1 WO 2018201871A1 CN 2018082919 W CN2018082919 W CN 2018082919W WO 2018201871 A1 WO2018201871 A1 WO 2018201871A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- layer
- view
- target data
- change message
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
Definitions
- the present disclosure relates to the technical field of software data model design, and in particular, to a data notification method, apparatus, and readable storage medium.
- the MVC Model-View-Controller, Model-View-controller
- the model layer is responsible for the data.
- the data work the view layer is responsible for the display of the view
- the control (Controller) layer is responsible for transferring the data of the model layer to the view layer and controlling the view layer to display accordingly.
- the model layer and the view layer need to be coupled through the control layer, which causes the control layer to increase the coupling relationship between the layers, so that the business logic of the model layer and the view layer is very complicated and controlled.
- the layer is also coupled with the implementation of some business logic, which affects the scalability of the software and is inconvenient for the maintenance of the software code.
- an object of the present disclosure includes providing a data notification method, which is applied to a software model, the software model including a data layer and a view layer, the data layer configured to perform data Processing and converting, the view layer being configured to perform display of a software view according to data in the data layer; the method comprising:
- the data layer detects data changes of the target data point to generate a data change message
- the data layer sends the data change message to a view layer that registers to listen for changes in the target data point;
- the view layer performs corresponding view switching or presentation according to the received data change message.
- the software model includes a set of listeners, and the plurality of view layers monitor changes of the target data points through the set of listeners; the data layer will The step of sending a data change message to the view layer that registers the change of the target data point includes:
- the data layer traverses the set of listeners, and sends the data change message to a view layer that registers to listen for changes in the target data point.
- each of the listeners is configured with a corresponding priority level
- the data layer traverses the set of the listeners, and sends the data change message to a view that registers to listen to changes of the target data point.
- Layer including:
- the data layer traverses from the highest priority listener to the lowest priority listener in the set of listeners according to the priority level of the respective listeners, and sends the data change information to the registration monitor.
- the listener is an interface protocol between the data layer and the view layer, and the interface protocol includes an interface function; the sending the data change message to The steps to register the view layer that listens for changes to the target data point, including:
- the data layer sends a data change message to the view layer via the interface function.
- the step of the view layer performing corresponding view switching or displaying according to the received data change message includes:
- the view layer receives the data change message, invokes the interface function, and performs corresponding view switching or presentation logic in the interface function.
- the data layer detects a data change of the target data point, and generates a data change message, including:
- the data layer periodically detects and records the data value of the target data point, and generates data change information when the current data value of the target data point is currently detected to be inconsistent with the last recorded data value;
- the data change information is generated.
- the method further includes:
- the view layer registers the target data points to be listened to by the register function.
- Another object of the present disclosure is to provide a data notification apparatus, which is applied to a software model, the software model includes a data layer and a view layer, the data layer is configured to perform data processing and conversion, and the view layer is configured to be configured according to The data in the data layer is displayed in a software view; the device includes:
- the detecting unit is configured to detect a data change of the target data point in the data layer, and generate a data change message
- a notification unit configured to send the data change message to a view layer that registers to listen for changes in the target data point
- the display unit is configured to perform corresponding view switching or display according to the received data change message in the view layer.
- the software model includes a set of listeners, and the plurality of view layers monitor changes of the target data points through the set of the listeners; the notification unit How data change messages are sent to the view layer, including:
- the notification unit traverses the set of listeners, and sends the data change message to a view layer that registers to listen for changes in the target data point.
- each of the listeners is configured with a corresponding priority level
- the notification unit traverses the set of the listeners, and sends the data change message to a view that registers to listen to changes of the target data point.
- Layers including:
- the notification unit traverses from the highest priority listener to the lowest priority listener in the set of listeners according to the priority level of the respective listeners in the data layer, and changes the data
- the information is sent to the view layer that is registered to listen for changes in the target data point.
- the listener is an interface protocol between the data layer and the view layer, and the interface protocol includes an interface function;
- the notification unit sends the data change message The way to send to the view layer, including:
- the notification unit sends a data change message to the view layer through the interface function.
- the manner in which the display unit performs corresponding view switching or display includes:
- the display unit receives the data change message, invokes the interface function, and performs corresponding view switching or presentation logic in the interface function.
- the detecting unit detects a data change of the target data point in the data layer, and generates a data change message, including:
- the detecting unit generates data change information when receiving a data change event for the target data point in the data layer;
- the detecting unit periodically detects and records the data value of the target data point in the data layer, and generates data change information when the current data value of the target data point is currently detected to be inconsistent with the last recorded data value; or
- the detecting unit generates data change information when the data value of the target data point is detected in the data layer to be changed from the first preset value to the second preset value.
- the device further includes:
- the registration unit is configured to register, by the register function, the target data point to be monitored for the view layer.
- Another object of the present disclosure is to provide a readable storage medium including a computer program that, when executed, controls an electronic device in which the readable storage medium is located to execute the data notification method.
- the data notification method, apparatus and readable storage medium provided by the present disclosure omits a control layer in a software MVC model, and reduces the MVC model into a data layer and a view layer, the data layer being configured to perform data processing and conversion,
- the view layer is configured to display the software view based on the data in the data layer. Obtaining a change of the target data point through the data layer, and notifying the registration to listen to the view layer of the target data point change, so that the view layer performs corresponding view display or switching according to the change of the target data point. In this way, the coupling relationship between software levels is reduced, and the scalability and maintainability of the software are improved.
- FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the present disclosure
- FIG. 2 is a schematic flowchart of steps of a data notification method according to an embodiment of the present disclosure
- FIG. 3 is a schematic diagram of a data notification apparatus according to an embodiment of the present disclosure.
- FIG. 4 is a second schematic diagram of a data notification apparatus according to an embodiment of the present disclosure.
- Icons 100-electronic device; 110-data notification device; 111-detection unit; 112-notification unit; 113-display unit; 114-registration unit; 120-memory; 130-processor.
- FIG. 1 is a block diagram of an electronic device 100 according to an embodiment of the present disclosure.
- the electronic device 100 includes a data notification device 110, a memory 120, and a processor 130.
- the memory 120 and the processor 130 are electrically connected directly or indirectly to each other to implement data transmission or interaction.
- the components can be electrically connected to one another via one or more communication buses or signal lines.
- the data notification device 110 includes at least one software function module that can be stored in the memory 120 or in an operating system (OS) of the electronic device 100 in the form of software or firmware.
- the processor 130 is configured to execute executable modules stored in the memory 120, such as software function modules, computer programs, and the like included in the data notification device 110.
- the memory 120 may be, but not limited to, a random access memory (RAM), a read only memory (ROM), and a programmable read-only memory (PROM). Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), and the like.
- RAM random access memory
- ROM read only memory
- PROM programmable read-only memory
- EPROM Erasable Programmable Read-Only Memory
- EEPROM Electric Erasable Programmable Read-Only Memory
- the memory 120 is configured to store a program, and the processor 130 executes the program after receiving an execution instruction.
- the processor 130 may be an integrated circuit chip with signal processing capabilities.
- the above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; or may be a digital signal processor (DSP), an application specific integrated circuit (ASIC) ), Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA Field Programmable Gate Array
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the electronic device 100 includes a software model, where the software model includes a data layer and a view layer, wherein the data layer is configured to perform data processing and conversion, and the view layer is configured to be configured according to The data in the data layer is displayed in a software view.
- FIG. 2 is a flowchart of a data notification method applied to the software model. The method includes the following steps.
- step S110 the data layer detects data change of the target data point, and generates a data change message.
- the software model is a new software model formed by removing the control layer from the MVC model. Since the control layer in the MVC hierarchy is removed from the software model, the original control layer is The data processing business logic is transferred to the data layer for processing, that is, the data layer is mainly responsible for the work of two parts, one is the data change acquisition of the target data point, and the second is to convert the data into the view layer.
- the required data format that is, the data change information sent by the data layer to the view layer is the information after the format conversion.
- the data change message of the data is subsequently sent to the view layer through step S120.
- the target data point can be understood as a variable that needs to be monitored, and the data layer monitors the target data point in real time to detect the target data point, and the data of the target data point is detected to be changed.
- a data change message is generated and sent to the view layer.
- the data change of the target data point may be detected by: when the data layer receives the data change event for the target data point, generating data change information. For example, when the data of the target data point is changed, a data change event indicating data change is sent to the data layer, and the data change event may be a change command or data change prompt information, etc., and the data layer receives the data. After a data change event, if the data of the target data point has been changed, a data change information is generated and sent to the view layer.
- the data change of the target data point may be detected by: the data layer periodically detecting and recording the data value of the target data point, and currently detecting the current data value of the target data point and the last recorded When the data values do not match, data change information is generated.
- the data layer periodically detects the data value of the target data point, for example, the period is 1 s, and the data layer interval detects the target data point by 1 s, if the target data point is detected and recorded in the last second.
- the data value is 1, and the data value of the target data point detected in this second is 2, indicating that the current data value of the target data point is inconsistent with the last recorded data value, that is, the data of the target data point is changed.
- the data change of the target data point may be detected by: when the data layer detects that the data value of the target data point is changed from the first preset value to the second preset value, the data change information is generated.
- the first preset value is 0, and the second preset value is 1.
- the first preset value and the second preset value may be defined according to requirements, when the data layer detects that the data of the target data point changes from 0 to 0. When it is 1, it means that the data of the target data point has changed, and a data change information is generated and sent to the view layer.
- Step S120 the data layer sends the data change message to a view layer that registers to monitor the change of the target data point.
- the software model includes a set of listeners, and the plurality of view layers monitor changes of the target data points through the set of the listeners.
- a listener in order to reduce the hierarchical relationship and remove the control layer, a listener is designed in the software model.
- the listener In order to solve a plurality of application scenarios in which the view layer monitors changes of the same target data point, the listener is designed in the form of a set, such that the plurality of view layers monitor the target data through the set of the listeners. With the change of the point, it is possible to save the listening requests of multiple view layers in the set of the listeners.
- the data layer traverses the set of the listeners, and sends the data change message to a view layer that registers to listen to the change of the target data point. That is to say, one view layer monitors the target data point through multiple listeners, and the view layer is associated with a plurality of corresponding listeners of the intercept target data point in advance, thereby generating data change information after the data layer is generated.
- the set of listeners is traversed to find a suitable listener to send data change information to the view layer.
- each of the listeners is configured with a corresponding priority level
- the data layer may further select a priority from the highest priority listener in the set of listeners according to the priority level of the respective listeners.
- the lowest listener traverses and sends the data change information to a view layer that registers to listen for changes in the target data point. For example, when the data is changed, the data change information may be sequentially transmitted according to the priority of the listener, that is, the listener with a high priority is called first, and is used to send the data change information.
- the listener is an interface protocol between the data layer and the view layer, and the interface protocol includes an interface function, for example, in the embodiment of the present disclosure.
- an interface function of onXXXDataChange is designed (where XXX represents the name of the software model).
- XXX represents the name of the software model.
- a form of an interface is designed inside each software model to expose a data change message inside the data layer, thereby effectively reducing the coupling relationship between the data layer and the view layer, and improving the software. Scalability and maintainability.
- Step S130 the view layer performs corresponding view switching or display according to the received data change message.
- the logic of the switching view performed by the control layer is transplanted to the view layer, and the trigger condition of the switching view is changed to the data change message of the data layer to perform corresponding triggering.
- Each view in the view layer is configured to carry a part of data.
- the view interface needs to be exposed in the view layer, and then the target data point to be monitored is registered in the view layer by calling the register function.
- the software model is thus able to obtain the reference relationship of the view layer.
- the view layer receives the data change information of the data layer by rewriting the interface function.
- the view layer needs to listen to multiple target data points, it is necessary to implement a corresponding interface for each target data point, and establish a relationship between the view layer and the data layer, so that the view layer passes The interface acquires data change information sent by the data layer.
- the view layer receives the data change message, invokes the interface function, and performs corresponding view switching or presentation logic in the interface function.
- the data layer has established an association with the view layer through an interface. Since the view layer has previously registered the intercept target data point, when receiving the data change message, the view layer actively triggers the onXXXDataChange function to execute the corresponding view switch or display logic in the onXXXDataChange function.
- an embodiment of the present disclosure further provides a data notification apparatus 110, which is applied to the electronic device 100 shown in FIG. 1.
- the electronic device 100 includes a software model, and the software model includes a data layer and a view.
- a layer the data layer configured to perform data processing and conversion, the view layer being configured to perform a presentation of the software view based on data in the data layer.
- the device includes a display unit 113, a notification unit 112, and a display unit 113.
- the detecting unit 111 is configured to detect a data change of the target data point in the data layer to generate a data change message.
- the detecting unit 111 may be configured to perform step S110 shown in FIG. 2, and the description of the step S110 may be referred to with a specific description of the detecting unit 111.
- the notification unit 112 is configured to send the data change message to a view layer that registers to listen for changes in the target data point.
- the notification unit 112 may be configured to perform step S120 shown in FIG. 2, and the description of the step S120 may be referred to with a specific description of the notification unit 112.
- the software model includes a set of listeners, and the plurality of view layers monitor changes of the target data points through the set of the listeners.
- the manner in which the notification unit 112 sends the data change message to the view layer includes:
- the notification unit 112 traverses the set of listeners, and sends the data change message to a view layer that registers to listen for changes in the target data point.
- each of the listeners is configured with a corresponding priority level
- the notification unit 112 traverses the set of the listeners, and sends the data change message to register to listen to the target data point.
- Changing view layers including:
- the notification unit 112 traverses from the highest priority listener to the lowest priority listener in the set of listeners according to the priority level of the respective listeners in the data layer, and the data is traversed.
- the change information is sent to the view layer that is registered to listen for changes in the target data point.
- the listener is an interface protocol between the data layer and the view layer, and the interface protocol includes an interface function;
- the notification unit 112 The way data change messages are sent to the view layer includes:
- the notification unit 112 sends a data change message to the view layer through the interface function.
- the display unit 113 is configured to perform corresponding view switching or display according to the received data change message in the view layer.
- the display unit 113 may be configured to perform step S130 shown in FIG. 2, and the description of the step S130 may be referred to with a specific description of the display unit 113.
- the manner in which the display unit 113 performs corresponding view switching or display includes:
- the view layer receives the data change message, invokes the interface function, and performs corresponding view switching or presentation logic in the interface function.
- the detecting unit 111 detects a data change of the target data point in the data layer, and generates a data change message, including:
- the detecting unit 111 generates data change information when receiving a data change event for the target data point in the data layer; or
- the detecting unit 111 periodically detects and records the data value of the target data point in the data layer, and generates data change information when the current data value of the target data point is detected to be inconsistent with the last recorded data value; or
- the detecting unit 111 generates data change information when detecting that the data value of the target data point is changed from the first preset value to the second preset value in the data layer.
- the apparatus further includes a registration unit 114.
- the registration unit 114 is configured to register, by the register function, the target data point that needs to be monitored for the view layer.
- an embodiment of the present disclosure further provides a readable storage medium, the readable storage medium comprising a computer program, the computer program controlling the electronic device where the readable storage medium is located to execute the data notification method.
- the data notification method, apparatus, and readable storage medium omit the control layer in the software MVC model, and simplify the MVC model into a data layer and a view layer, and the data layer is configured to perform data processing. And converting, the view layer is configured to perform a presentation of the software view based on data in the data layer. Obtaining a change of the target data point through the data layer, and notifying the registration to listen to the view layer of the target data point change, so that the view layer performs corresponding view display or switching according to the change of the target data point. In this way, the coupling relationship between software levels is reduced, and the scalability and maintainability of the software are improved.
- each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that comprises one or more of the Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may also occur in a different order than those illustrated in the drawings.
- each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
- each functional module in various embodiments of the present disclosure may be integrated to form a separate part, or each module may exist separately, or two or more modules may be integrated to form a separate part.
- the functions, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium.
- a computer readable storage medium including: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like.
- the data notification method, apparatus and readable storage medium omits the control layer in the software MVC model, and the MVC model is simplified into a data layer and a view layer, and the data layer is configured to perform data processing and conversion.
- the view layer is configured to perform a presentation of a software view based on data in the data layer. Obtaining a change of the target data point through the data layer, and notifying the registration to listen to the view layer of the target data point change, so that the view layer performs corresponding view display or switching according to the change of the target data point. In this way, the coupling relationship between software levels is reduced, and the scalability and maintainability of the software are improved.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本公开实施例提供一种数据通知方法、装置及可读存储介质,应用于软件模型,所述软件模型包括数据层及视图层,所述数据层配置成进行数据处理和转化,所述视图层配置成根据所述数据层中的数据进行软件视图的展示;所述方法包括:所述数据层检测目标数据点的数据变更,生成数据变更消息;所述数据层将所述数据变更消息发送到注册监听该目标数据点变化的视图层;所述视图层根据接收到的数据变更消息进行相应的视图切换或展示。通过数据层获取目标数据点的变化,并通知注册监听该目标数据点变化的视图层,使视图层根据所述目标数据点的变化进行相应的视图展示或切换。如此,减少了软件层级之间的耦合关系,提高了软件的扩展性和可维护性。
Description
相关申请的交叉引用
本申请要求于2017年05月02日提交中国专利局的申请号为201710301939.5名称为“数据通知方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本公开涉及软件数据模型设计技术领域,具体而言,涉及一种数据通知方法、装置及可读存储介质。
现有技术的软件开发设计中,通常采用MVC(Model-View-Controller,模型(Model)-视图(view)-控制(controller))框架进行软件模型的设计,其中,模型(Model)层负责数据的数据工作,视图(View)层负责视图的展示工作,控制(Controller)层负责将模型层的数据传输到视图层并控制视图层进行相应的展示。但是,在现有技术的软件模型中,模型层和视图层需要通过控制层相耦合,从而导致控制层增加了层级之间的耦合关系,使模型层和视图层的业务逻辑非常复杂,并且控制层还耦合了一些业务逻辑的实现,影响了软件的扩展性,不方便软件代码的维护。
发明内容
为了克服现有技术中的上述至少一种不足,本公开的目的包括,提供一种数据通知方法,应用于软件模型,所述软件模型包括数据层及视图层,所述数据层配置成进行数据处理和转化,所述视图层配置成根据所述数据层中的数据进行软件视图的展示;所述方法包括:
所述数据层检测目标数据点的数据变更,生成数据变更消息;
所述数据层将所述数据变更消息发送到注册监听该目标数据点变化的视图层;
所述视图层根据接收到的数据变更消息进行相应的视图切换或展示。
可选地,在上述方法中,所述软件模型中包括一监听器的集合,多个所述视图层通过所述监听器的集合监听所述目标数据点的变化;所述数据层将所述数据变更消息发送到注册监听该目标数据点变化的视图层的步骤,包括:
所述数据层遍历所述监听器的集合,将所述数据变更消息发送到注册监听该目标数据点变化的视图层。
可选地,在上述方法中,各个所述监听器配置有相应的优先等级,所述数据层遍历所述监听器的集合,将所述数据变更消息发送到注册监听该目标数据点变化的视图层, 包括:
所述数据层根据所述各个监听器的优先等级,在所述监听器的集合中从优先等级最高的监听器向优先等级最低的监听器进行遍历,将所述数据变更信息发送到注册监听该目标数据点变化的视图层。
可选地,在上述方法中,所述监听器为一所述数据层与所述视图层之间的接口协议,所述接口协议中包括一接口函数;所述将所述数据变更消息发送到注册监听了该目标数据点变化的视图层的步骤,包括:
所述数据层通过所述接口函数将数据变更消息发送给所述视图层。
可选地,在上述方法中,所述视图层根据接收到的数据变更消息进行相应的视图切换或展示的步骤,包括:
所述视图层接收所述数据变更消息,调用所述接口函数,执行所述接口函数中相应的视图切换或展示逻辑。
可选地,在上述方法中,所述数据层检测目标数据点的数据变更,生成数据变更消息,包括:
所述数据层接收到针对目标数据点的数据变更事件时,生成数据变更信息;或
所述数据层周期性检测并记录目标数据点的数据值,当前检测到所述目标数据点的当前数据值与上次记录的数据值不一致时,生成数据变更信息;或者
所述数据层检测到目标数据点的数据值从第一预设值变更为第二预设值时,生成数据变更信息。
可选地,在上述方法中,所述方法还包括:
所述视图层通过register函数注册需要监听的目标数据点。
本公开的另一目的在于提供一种数据通知装置,应用于软件模型,所述软件模型包括数据层及视图层,所述数据层配置成进行数据处理和转化,所述视图层配置成根据所述数据层中的数据进行软件视图的展示;所述装置包括:
检测单元,配置成在数据层中检测目标数据点的数据变更,生成数据变更消息;
通知单元,配置成将所述数据变更消息发送到注册监听该目标数据点变化的视图层;
显示单元,配置成在视图层中根据接收到的数据变更消息进行相应的视图切换或展示。
可选地,在上述装置中,所述软件模型中包括一监听器的集合,多个所述视图层通过所述监听器的集合监听所述目标数据点的变化;所述通知单元将所述数据变更消息发送到视图层的方式,包括:
所述通知单元遍历所述监听器的集合,将所述数据变更消息发送到注册监听该目标数据点变化的视图层。
可选地,在上述装置中,各个所述监听器配置有相应的优先等级,所述通知单元遍历所述监听器的集合,将所述数据变更消息发送到注册监听该目标数据点变化的视图层,包括:
所述通知单元在所述数据层中根据所述各个监听器的优先等级,在所述监听器的集合中从优先等级最高的监听器向优先等级最低的监听器进行遍历,将所述数据变更信息发送到注册监听该目标数据点变化的视图层。
可选地,在上述装置中,所述监听器为一所述数据层与所述视图层之间的接口协议,所述接口协议中包括一接口函数;所述通知单元将所述数据变更消息发送到视图层的方式,包括:
所述通知单元通过所述接口函数将数据变更消息发送给所述视图层。
可选地,在上述装置中,所述显示单元进行相应的视图切换或展示的方式,包括:
所述显示单元接收所述数据变更消息,调用所述接口函数,执行所述接口函数中相应的视图切换或展示逻辑。
可选地,在上述装置中,所述检测单元在数据层中检测目标数据点的数据变更,生成数据变更消息,包括:
所述检测单元在所述数据层中接收到针对目标数据点的数据变更事件时,生成数据变更信息;或
所述检测单元在所述数据层中周期性检测并记录目标数据点的数据值,当前检测到所述目标数据点的当前数据值与上次记录的数据值不一致时,生成数据变更信息;或者
所述检测单元在所述数据层中检测到目标数据点的数据值从第一预设值变更为第二预设值时,生成数据变更信息。
可选地,在上述装置中,所述装置还包括:
注册单元,配置成通过register函数为所述视图层注册需要监听的目标数据点。
本公开的另一目的在于提供一种可读存储介质,所述可读存储介质包括计算机程序,所述计算机程序运行时控制所述可读存储介质所在电子设备执行所述数据通知方法。
相对于现有技术而言,本公开包括以下有益效果:
本公开提供的数据通知方法、装置及可读存储介质,在软件MVC模型中省略了控制层,将MVC模型简化为数据层和视图层,所述数据层配置成进行数据处理和转化,所述视图层配置成根据所述数据层中的数据进行软件视图的展示。通过数据层获取目标数据点的变化,并通知注册监听该目标数据点变化的视图层,使视图层根据所述目标数据点的变化进行相应的视图展示或切换。如此,减少了软件层级之间的耦合关系,提高了软件的扩展性 和可维护性。
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。
图1为本公开实施例提供的电子设备的示意图;
图2为本公开实施例提供的数据通知方法的步骤流程示意图;
图3为本公开实施例提供的数据通知装置的示意图之一;
图4为本公开实施例提供的数据通知装置的示意图之二。
图标:100-电子设备;110-数据通知装置;111-检测单元;112-通知单元;113-显示单元;114-注册单元;120-存储器;130-处理器。
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。
因此,以下对在附图中提供的本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。
在本公开的描述中,需要说明的是,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
在本公开的描述中,还需要说明的是,除非另有明确的规定和限定,术语“设置”、“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本公开中的具体含义。
请参照图1,图1为本公开实施例提供的电子设备100的方框示意图。所述电子设备100包括数据通知装置110、存储器120及处理器130。
所述存储器120以及处理器130相互之间直接或间接地电性连接,以实现数据的传输 或交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。所述数据通知装置110包括至少一个可以软件或固件(firmware)的形式存储于所述存储器120中或固化在所述电子设备100的操作系统(operating system,OS)中的软件功能模块。所述处理器130配置成执行所述存储器120中存储的可执行模块,例如所述数据通知装置110所包括的软件功能模块及计算机程序等。
其中,所述存储器120可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。其中,存储器120配置成存储程序,所述处理器130在接收到执行指令后,执行所述程序。
所述处理器130可能是一种集成电路芯片,具有信号的处理能力。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(DSP))、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本公开实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
在本公开实施例中,所述电子设备100中包括一软件模型,所述软件模型包括数据层及视图层,其中,所述数据层配置成进行数据处理和转化,所述视图层配置成根据所述数据层中的数据进行软件视图的展示。
请参照图2,图2为应用于所述软件模型的一种数据通知方法的流程图,以下将对所述方法包括各个步骤进行详细阐述。
步骤S110,所述数据层检测目标数据点的数据变更,生成数据变更消息。
在本公开实施例中,所述软件模型为上述MVC模型中去掉了控制层而形成的新的软件模型,由于从所述软件模型中去掉了MVC层级中的控制层,所以原来在控制层对数据的处理业务逻辑转移到了数据层来进行处理了,即,所述数据层主要负责两个部分的工作,其一是对目标数据点的数据变更获取,其次是将数据转换成所述视图层需要的数据格式,也就是数据层发送给视图层的数据变更信息为进行格式转换后的信息。
当数据层完成原始数据的获取并转换后,接下来通过步骤S120将数据的数据变更消息发送到视图层中。
其中,所述目标数据点可以理解为是类似需要监控的一个变量,所述数据层对目标数据点进行实时监控,以对所述目标数据点进行检测,在检测到目标数据点的数据发生变更 时,生成一数据变更消息发送至视图层。
另外,可选地,对目标数据点的数据变更进行检测的方式可以为:所述数据层接收到针对目标数据点的数据变更事件时,生成数据变更信息。例如,在目标数据点的数据发生变更时,向数据层发送一表示数据变更的数据变更事件,数据变更事件可以为一变更指令,或者为数据变更提示信息等,则所述数据层接收到这一数据变更事件后,知晓该目标数据点的数据已发生变更,则生成一数据变更信息发送至视图层。
或者,对目标数据点的数据变更进行检测的方式还可以为:所述数据层周期性检测并记录目标数据点的数据值,当前检测到所述目标数据点的当前数据值与上次记录的数据值不一致时,生成数据变更信息。例如,所述数据层对目标数据点的数据值进行周期性的检测,如周期为1s,所述数据层间隔1s对目标数据点进行检测,若在上一秒检测并记录到目标数据点的数据值为1,这一秒检测到目标数据点的数据值为2,则表示所述目标数据点的当前数据值与上次记录的数据值不一致,即目标数据点的数据发生了变更,则生成一数据变更信息发送至视图层。
或者,对目标数据点的数据变更进行检测的方式还可以为:所述数据层检测到目标数据点的数据值从第一预设值变更为第二预设值时,生成数据变更信息。例如,第一预设值为0,第二预设值为1,当然,第一预设值与第二预设值可以根据需要自行定义,当数据层检测到目标数据点的数据从0变为1时,即表示目标数据点的数据发生了变更,则生成一数据变更信息发送至视图层。
步骤S120,所述数据层将所述数据变更消息发送到注册监听该目标数据点变化的视图层。
在本公开实施例中,所述软件模型中包括一监听器的集合,多个所述视图层通过所述监听器的集合监听所述目标数据点的变化。
在本公开实施例中,为了减少层级关系从而去掉控制层,所以在所述软件模型中设计了一监听器。为了解决多个所述视图层监听同一个目标数据点的变化的应用场景,将该监听器设计为一个集合的形式,如此多个所述视图层通过所述监听器的集合监听所述目标数据点的变化,就可以在所述监听器的集合中保存多个视图层的监听请求。
当所述数据层通过步骤S110生成数据变更消息后,所述数据层遍历所述监听器的集合,将所述数据变更消息发送到注册监听该目标数据点变化的视图层。也就是说,一个视图层通过多个监听器对目标数据点进行监听,该视图层预先与监听目标数据点的对应的多个监听器进行关联,由此,在数据层生成数据变更信息后,对所述监听器的集合进行遍历,以查找到合适的监听器,从而将数据变更信息发送至该视图层。
可选地,各个所述监听器配置有相应的优先等级,所述数据层还可以根据所述各个监 听器的优先等级,在所述监听器的集合中从优先等级最高的监听器向优先等级最低的监听器进行遍历,将所述数据变更信息发送到注册监听该目标数据点变化的视图层。例如,当数据发生变更时,可以根据监听器的优先级依次发送数据变更信息,即,优先级高的监听器先被调用,用于发送数据变更信息。
可选地,在本公开实施例中,所述监听器为一所述数据层与所述视图层之间的接口协议,所述接口协议中包括一接口函数,例如,在本公开实施例中,在监听器的接口协议中设计了一个onXXXDataChange的接口函数(其中,XXX表示的是软件模型的名称),当所述数据层有数据发生变化时,将数据变更信息通过接口函数onXXXDataChange暴露给视图层,以供所述视图层回调onXXXDataChange接口函数,从而获取到数据层发送的数据变更信息。
基于上述设计,在每一个软件模型内部设计接口的形式来暴露所述数据层内部的数据变更消息,从而有效的降低了所述数据层和所述视图层之间的耦合关系,提高了软件的扩展性和可维护性。
步骤S130,所述视图层根据接收到的数据变更消息进行相应的视图切换或展示。
在本公开实施例中,由于减少了控制层,故将控制层进行的切换视图的逻辑移植到视图层来实现,并且切换视图的触发条件变更为数据层的数据变更消息来进行相应的触发。
所述视图层中每一个视图都是配置成承载一部分数据,在本公开实施例中,所述视图层中需要暴露视图接口,然后再通过调用register函数在视图层注册需要监听的目标数据点,如此所述软件模型就能够获取到所述视图层的引用关系。
由于所述数据层已经定义好数据变更消息的通知接口,故在本公开实施例中,所述视图层通过复写所述接口函数来接收数据层的数据变更信息。但是,如果所述视图层需要监听多个目标数据点,就需要对每一个目标数据点都实现对应的接口,并建立所述视图层与所述数据层之间的关系,以此视图层通过所述接口获取数据层发送的数据变更信息。
所述视图层接收所述数据变更消息,调用所述接口函数,执行所述接口函数中相应的视图切换或展示逻辑。
例如,通过上述步骤,所述数据层已经和所述视图层通过接口的方式建立起了关联性。所述视图层由于之前已经注册了监听目标数据点,所以在接收到数据变更消息时,所述视图层就会主动回调触发onXXXDataChange函数,执行onXXXDataChange函数中相应的视图切换或展示逻辑。
请参照图3,本公开实施例还提供一种数据通知装置110,应用于图1中所示的电子设备100,所述电子设备100中包括一软件模型,所述软件模型包括数据层及视图层,所述数据层配置成进行数据处理和转化,所述视图层配置成根据所述数据层中的数据进行软件 视图的展示。所述装置包括显示单元113、通知单元112及显示单元113。
所述检测单元111,配置成在数据层中检测目标数据点的数据变更,生成数据变更消息。
在本公开实施例中,所述检测单元111可配置成执行图2所示的步骤S110,关于所述检测单元111的具体描述可参对所述步骤S110的描述。
所述通知单元112,配置成将所述数据变更消息发送到注册监听该目标数据点变化的视图层。
在本公开实施例中,所述通知单元112可配置成执行图2所示的步骤S120,关于所述通知单元112的具体描述可参对所述步骤S120的描述。
可选地,在本公开实施例中,所述软件模型中包括一监听器的集合,多个所述视图层通过所述监听器的集合监听所述目标数据点的变化。所述通知单元112将所述数据变更消息发送到视图层的方式包括:
所述通知单元112遍历所述监听器的集合,将所述数据变更消息发送到注册监听该目标数据点变化的视图层。
可选地,在本公开实施例中,各个所述监听器配置有相应的优先等级,所述通知单元112遍历所述监听器的集合,将所述数据变更消息发送到注册监听该目标数据点变化的视图层,包括:
所述通知单元112在所述数据层中根据所述各个监听器的优先等级,在所述监听器的集合中从优先等级最高的监听器向优先等级最低的监听器进行遍历,将所述数据变更信息发送到注册监听该目标数据点变化的视图层。
可选地,在本公开实施例中,所述监听器为一所述数据层与所述视图层之间的接口协议,所述接口协议中包括一接口函数;所述通知单元112将所述数据变更消息发送到视图层的方式包括:
所述通知单元112通过所述接口函数将数据变更消息发送给所述视图层。
所述显示单元113,配置成在视图层中根据接收到的数据变更消息进行相应的视图切换或展示。
在本公开实施例中,所述显示单元113可配置成执行图2所示的步骤S130,关于所述显示单元113的具体描述可参对所述步骤S130的描述。
可选地,在本公开实施例中,所述显示单元113进行相应的视图切换或展示的方式包括:
所述视图层接收所述数据变更消息,调用所述接口函数,执行所述接口函数中相应的视图切换或展示逻辑。
可选地,在本公开实施例中,所述检测单元111在数据层中检测目标数据点的数据 变更,生成数据变更消息,包括:
所述检测单元111在所述数据层中接收到针对目标数据点的数据变更事件时,生成数据变更信息;或
所述检测单元111在所述数据层中周期性检测并记录目标数据点的数据值,当前检测到所述目标数据点的当前数据值与上次记录的数据值不一致时,生成数据变更信息;或者
所述检测单元111在所述数据层中检测到目标数据点的数据值从第一预设值变更为第二预设值时,生成数据变更信息。
可选地,请参照图4,在本公开实施例中,所述装置还包括注册单元114。
所述注册单元114,配置成通过register函数为所述视图层注册需要监听的目标数据点。
另外,本公开实施例还提供一种可读存储介质,所述可读存储介质包括计算机程序,所述计算机程序运行时控制所述可读存储介质所在电子设备执行所述数据通知方法。
综上所述,本公开提供的数据通知方法、装置及可读存储介质,在软件MVC模型中省略了控制层,将MVC模型简化为数据层和视图层,所述数据层配置成进行数据处理和转化,所述视图层配置成根据所述数据层中的数据进行软件视图的展示。通过数据层获取目标数据点的变化,并通知注册监听该目标数据点变化的视图层,使视图层根据所述目标数据点的变化进行相应的视图展示或切换。如此,减少了软件层级之间的耦合关系,提高了软件的扩展性和可维护性。
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本公开的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个配置成实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
另外,在本公开各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现 有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。
本公开实施例提供的数据通知方法、装置及可读存储介质,在软件MVC模型中省略了控制层,将MVC模型简化为数据层和视图层,所述数据层配置成进行数据处理和转化,所述视图层配置成根据所述数据层中的数据进行软件视图的展示。通过数据层获取目标数据点的变化,并通知注册监听该目标数据点变化的视图层,使视图层根据所述目标数据点的变化进行相应的视图展示或切换。如此,减少了软件层级之间的耦合关系,提高了软件的扩展性和可维护性。
Claims (15)
- 一种数据通知方法,应用于软件模型,其特征在于,所述软件模型包括数据层及视图层,所述数据层配置成进行数据处理和转化,所述视图层配置成根据所述数据层中的数据进行软件视图的展示;所述方法包括:所述数据层检测目标数据点的数据变更,生成数据变更消息;所述数据层将所述数据变更消息发送到注册监听该目标数据点变化的视图层;所述视图层根据接收到的数据变更消息进行相应的视图切换或展示。
- 根据权利要求1所述的方法,其特征在于,所述软件模型中包括一监听器的集合,多个所述视图层通过所述监听器的集合监听所述目标数据点的变化;所述数据层将所述数据变更消息发送到注册监听该目标数据点变化的视图层的步骤,包括:所述数据层遍历所述监听器的集合,将所述数据变更消息发送到注册监听该目标数据点变化的视图层。
- 根据权利要求2所述的方法,其特征在于,各个所述监听器配置有相应的优先等级,所述数据层遍历所述监听器的集合,将所述数据变更消息发送到注册监听该目标数据点变化的视图层,包括:所述数据层根据所述各个监听器的优先等级,在所述监听器的集合中从优先等级最高的监听器向优先等级最低的监听器进行遍历,将所述数据变更信息发送到注册监听该目标数据点变化的视图层。
- 根据权利要求2所述的方法,其特征在于,所述监听器为一所述数据层与所述视图层之间的接口协议,所述接口协议中包括一接口函数;所述将所述数据变更消息发送到注册监听了该目标数据点变化的视图层的步骤,包括:所述数据层通过所述接口函数将数据变更消息发送给所述视图层。
- 根据权利要求4所述的方法,其特征在于,所述视图层根据接收到的数据变更消息进行相应的视图切换或展示的步骤,包括:所述视图层接收所述数据变更消息,调用所述接口函数,执行所述接口函数中相应的视图切换或展示逻辑。
- 根据权利要求1所述的方法,其特征在于,所述数据层检测目标数据点的数据变更,生成数据变更消息,包括:所述数据层接收到针对目标数据点的数据变更事件时,生成数据变更信息;或所述数据层周期性检测并记录目标数据点的数据值,当前检测到所述目标数据点的当前数据值与上次记录的数据值不一致时,生成数据变更信息;或者所述数据层检测到目标数据点的数据值从第一预设值变更为第二预设值时,生成数据变更信息。
- 根据权利要求1-6任一所述的方法,其特征在于,所述方法还包括:所述视图层通过register函数注册需要监听的目标数据点。
- 一种数据通知装置,应用于软件模型,其特征在于,所述软件模型包括数据层及视图层,所述数据层配置成进行数据处理和转化,所述视图层配置成根据所述数据层中的数据进行软件视图的展示;所述装置包括:检测单元,配置成在数据层中检测目标数据点的数据变更,生成数据变更消息;通知单元,配置成将所述数据变更消息发送到注册监听该目标数据点变化的视图层;显示单元,配置成在视图层中根据接收到的数据变更消息进行相应的视图切换或展示。
- 根据权利要求8所述的装置,其特征在于,所述软件模型中包括一监听器的集合,多个所述视图层通过所述监听器的集合监听所述目标数据点的变化;所述通知单元将所述数据变更消息发送到视图层的方式,包括:所述通知单元遍历所述监听器的集合,将所述数据变更消息发送到注册监听该目标数据点变化的视图层。
- 根据权利要求9所述的装置,其特征在于,各个所述监听器配置有相应的优先等级,所述通知单元遍历所述监听器的集合,将所述数据变更消息发送到注册监听该目标数据点变化的视图层,包括:所述通知单元在所述数据层中根据所述各个监听器的优先等级,在所述监听器的集合中从优先等级最高的监听器向优先等级最低的监听器进行遍历,将所述数据变更信息发送到注册监听该目标数据点变化的视图层。
- 根据权利要求9所述的装置,其特征在于,所述监听器为一所述数据层与所述视图层之间的接口协议,所述接口协议中包括一接口函数;所述通知单元将所述数据变更消息发送到视图层的方式,包括:所述通知单元通过所述接口函数将数据变更消息发送给所述视图层。
- 根据权利要求11所述的装置,其特征在于,所述显示单元进行相应的视图切换或展示的方式,包括:所述显示单元接收所述数据变更消息,调用所述接口函数,执行所述接口函数中相应的视图切换或展示逻辑。
- 根据权利要求8所述的装置,其特征在于,所述检测单元在数据层中检测目标 数据点的数据变更,生成数据变更消息,包括:所述检测单元在所述数据层中接收到针对目标数据点的数据变更事件时,生成数据变更信息;或所述检测单元在所述数据层中周期性检测并记录目标数据点的数据值,当前检测到所述目标数据点的当前数据值与上次记录的数据值不一致时,生成数据变更信息;或者所述检测单元在所述数据层中检测到目标数据点的数据值从第一预设值变更为第二预设值时,生成数据变更信息。
- 根据权利要求8-14任一所述的装置,其特征在于,所述装置还包括:注册单元,配置成通过register函数为所述视图层注册需要监听的目标数据点。
- 一种可读存储介质,所述可读存储介质包括计算机程序,所述计算机程序运行时控制所述可读存储介质所在电子设备执行权利要求1~7任一项所述的数据通知方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710301939.5 | 2017-05-02 | ||
| CN201710301939.5A CN107133041B (zh) | 2017-05-02 | 2017-05-02 | 数据通知方法及装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018201871A1 true WO2018201871A1 (zh) | 2018-11-08 |
Family
ID=59716726
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/082919 Ceased WO2018201871A1 (zh) | 2017-05-02 | 2018-04-13 | 数据通知方法、装置及可读存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107133041B (zh) |
| WO (1) | WO2018201871A1 (zh) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107133041B (zh) * | 2017-05-02 | 2019-09-06 | 武汉斗鱼网络科技有限公司 | 数据通知方法及装置 |
| CN107577540B (zh) * | 2017-08-31 | 2020-03-17 | 武汉斗鱼网络科技有限公司 | 视频交友中实现举报功能的方法、存储介质、设备及系统 |
| CN108549570B (zh) * | 2018-04-28 | 2021-10-26 | 北京小米移动软件有限公司 | 用户界面的更新方法及装置 |
| CN108563487B (zh) * | 2018-04-28 | 2021-10-01 | 北京小米移动软件有限公司 | 用户界面的更新方法及装置 |
| CN109144750B (zh) * | 2018-08-21 | 2021-06-15 | 武汉斗鱼网络科技有限公司 | 一种消息处理方法、装置、电子设备及存储介质 |
| CN111309405A (zh) * | 2020-01-17 | 2020-06-19 | 深圳市共进电子股份有限公司 | 软件模块交互方法、装置、计算机设备和可读存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102325159A (zh) * | 2011-07-14 | 2012-01-18 | 华中科技大学 | 一种虚拟实验平台离线应用交互系统 |
| CN102650952A (zh) * | 2011-02-28 | 2012-08-29 | 北京航空航天大学 | 基于mvc框架的建模工具命令调用方法及系统 |
| US8489704B1 (en) * | 2009-10-05 | 2013-07-16 | Glance Networks, Inc. | Method and apparatus for providing information on a remote viewing session |
| CN107133041A (zh) * | 2017-05-02 | 2017-09-05 | 武汉斗鱼网络科技有限公司 | 数据通知方法及装置 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101694618B (zh) * | 2009-09-01 | 2013-03-06 | 卡斯柯信号有限公司 | 适用于ajax框架的模型层与视图层数据自动映射方法 |
| EP2558955A1 (en) * | 2010-04-12 | 2013-02-20 | Google, Inc. | Rich content in a browser-based word processor |
| CN102722372B (zh) * | 2012-05-25 | 2015-04-22 | 上海学智科技有限公司 | 一种通过分类配置自动生成代码的方法及系统 |
| CN106126249B (zh) * | 2016-06-29 | 2019-06-04 | 武汉斗鱼网络科技有限公司 | 一种在前端实现行为、数据、视图联动的方法及系统 |
-
2017
- 2017-05-02 CN CN201710301939.5A patent/CN107133041B/zh active Active
-
2018
- 2018-04-13 WO PCT/CN2018/082919 patent/WO2018201871A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8489704B1 (en) * | 2009-10-05 | 2013-07-16 | Glance Networks, Inc. | Method and apparatus for providing information on a remote viewing session |
| CN102650952A (zh) * | 2011-02-28 | 2012-08-29 | 北京航空航天大学 | 基于mvc框架的建模工具命令调用方法及系统 |
| CN102325159A (zh) * | 2011-07-14 | 2012-01-18 | 华中科技大学 | 一种虚拟实验平台离线应用交互系统 |
| CN107133041A (zh) * | 2017-05-02 | 2017-09-05 | 武汉斗鱼网络科技有限公司 | 数据通知方法及装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107133041A (zh) | 2017-09-05 |
| CN107133041B (zh) | 2019-09-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3952423B1 (en) | Method and device for determining terminal behavior analysis | |
| CN111694674B (zh) | 消息分发处理方法、装置、设备及存储介质 | |
| CN104125206B (zh) | 一种客户端的硬件环境适配方法、装置、服务器及系统 | |
| WO2016184266A1 (zh) | 一种预警方法、装置及处理服务器 | |
| US20160105389A1 (en) | Method, server and electronic devices of synchronizing notification messages for electronic devices | |
| WO2019001074A1 (zh) | 一种远程过程调用的方法、装置及计算机设备 | |
| US10455542B2 (en) | Method of synchronizing notification messages for electronic devices and electronic devices | |
| WO2017181709A1 (zh) | 推送消息获取、消息推送方法及装置 | |
| WO2015149471A1 (zh) | 一种信息推送方法、系统、设备及计算机存储介质 | |
| WO2013189263A1 (zh) | 在移动终端中监控api函数调用的方法和装置 | |
| JP2008519477A5 (zh) | ||
| CN107483319A (zh) | 消息发送方法、装置、存储介质、服务器及电子设备 | |
| CN104065526A (zh) | 一种服务器故障报警的方法和装置 | |
| CN107995351A (zh) | 通话方法及装置 | |
| WO2024032460A1 (zh) | 数据收集方法、装置及通信设备 | |
| WO2017197944A1 (zh) | 终端间的通知消息提示方法及终端 | |
| CN112269631A (zh) | 虚拟机共享键鼠系统 | |
| CN113346973B (zh) | 事件提示方法及装置、电子设备、计算机可读存储介质 | |
| CN104572105B (zh) | 数据更新方法及装置 | |
| WO2023130845A1 (zh) | 通信方法、装置、计算机可读存储介质、电子设备及程序产品 | |
| CN102420861A (zh) | 服务器的消息监听方法、装置及系统 | |
| WO2017084315A1 (zh) | 视频通话连接方法、系统、设备及视频服务端 | |
| CN110865823A (zh) | 预装应用控制方法、预装应用控制装置及存储介质 | |
| WO2015172440A1 (zh) | 一种漏话提醒方法及系统 | |
| WO2024098938A1 (zh) | 网络存储功能故障检测及容灾方法及相关设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18793990 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18793990 Country of ref document: EP Kind code of ref document: A1 |