WO2021057925A1 - 智能设备的控制方法、装置以及智能设备、存储介质 - Google Patents
智能设备的控制方法、装置以及智能设备、存储介质 Download PDFInfo
- Publication number
- WO2021057925A1 WO2021057925A1 PCT/CN2020/117897 CN2020117897W WO2021057925A1 WO 2021057925 A1 WO2021057925 A1 WO 2021057925A1 CN 2020117897 W CN2020117897 W CN 2020117897W WO 2021057925 A1 WO2021057925 A1 WO 2021057925A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- service
- page
- proxy object
- proxy
- information
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
Definitions
- the present disclosure relates to the field of data processing technology, and in particular to a method and device for controlling smart devices, smart devices, and storage media.
- intelligent robots are widely used in various fields of social life, such as: intelligent office counters in banks, intelligent diagnosis robots in hospitals, shopping guide robots in shopping malls, etc. Through the application of intelligent robots, people's Life is more convenient.
- MVP mode Model-View-Presenter mode
- Model provides data
- View is responsible for display
- Presenter is responsible for logic processing
- Model business layer and View are realized through the Presenter layer.
- Data interaction at the page layer is not suitable for the data interaction between the robot's multi-business logic and the page, and the business logic and the page cannot communicate effectively.
- the embodiments of the present disclosure provide a method and device for controlling a smart device, a smart device, and a storage medium, so as to solve the problem that the business logic of the smart device cannot directly drive the page in the prior art.
- embodiments of the present disclosure provide a method for controlling a smart device, the method including:
- the business logic of the specified service is executed according to the instruction, and when the page needs to be rendered in the process of executing the business logic, the information of the proxy object used to render the page is obtained according to the global context; wherein, the business logic is executed
- the thread is different from the thread that renders the page.
- the global context is the context shared by the thread that executes business logic and the thread that renders the page;
- the information of the proxy object is sent to the page service manager through the cross-thread communication method in the global context, and based on the page service manager calling the registered service object corresponding to the information of the proxy object to render the page.
- the instruction of the designated service is triggered through a non-interface interaction manner.
- the obtaining the information of the proxy object used to render the page according to the global context includes:
- the information of the proxy object is obtained.
- obtaining the information of the proxy object includes:
- the method also includes:
- registering the proxy object in the business service manager based on the acquired information of the service object includes:
- the method further includes:
- the logout method of the specified service object is obtained from the global context through the corresponding context; where the corresponding context when the specified service object is a page service is the page context, and when the proxy object is specified as a business logic service, the corresponding context is corresponding The context of is the business context;
- unregistering the proxy object corresponding to the designated service object in the service manager registered with the proxy object corresponding to the designated service object includes:
- the proxy object corresponding to the specified service object is unregistered in the service manager where the proxy object is located.
- the method before creating a service object based on the instance of the page service to be registered, the method further includes:
- the method further includes:
- embodiments of the present disclosure provide a control device for a smart device, the device including:
- the receiving module is used to receive instructions for executing specified services
- the execution module is configured to execute the business logic of the specified service according to the instruction, and when the page needs to be rendered in the process of executing the business logic, obtain the information of the proxy object used to render the page according to the global context; wherein , The thread that executes business logic is different from the thread that renders the page.
- the global context is the context shared by the thread that executes the business logic and the thread that renders the page;
- the sending module is configured to send the information of the proxy object to the page service manager through the cross-thread communication method in the global context, and call the registered information corresponding to the proxy object based on the page service manager
- the server object renders the page.
- the instruction of the designated service is triggered through a non-interface interaction manner.
- the execution module is specifically configured to: obtain an obtaining method of the proxy object used for rendering the page from the global context; and obtain the information of the proxy object according to the obtaining method.
- the execution module is specifically used to: obtain the information of the proxy object in the business service manager;
- the device further includes:
- the registration module is used to create a service object based on the instance of the page service to be registered; obtain the method of registering the service object from the global context; register the service object in the page service manager by using the method of registering the service object; obtain the registered service Object information; based on the obtained service object information, the proxy object is registered in the business service manager.
- the registration module is specifically configured to: create a proxy service according to the information of the service object; generate a proxy object according to the proxy service; and register the proxy object with the business service manager.
- the device further includes:
- the logout module is used to obtain the logout method of the specified service object from the global context through the corresponding context when logging out the specified service object; wherein, when the specified service object is a page service, the corresponding context is the page context, and the designated proxy object is the business For logical services, the corresponding context is the business context; the designated service object is registered in the corresponding service manager based on the obtained logout method; the designated service object is unregistered in the service manager where the proxy object corresponding to the designated service object is located The corresponding proxy object.
- the logout module is specifically configured to: send the information of the service object that is logged out to the service manager where the proxy object is located, so that the service manager where the proxy object is located notify the corresponding thread to logout through the Handler Proxy object; in response to the service manager where the proxy object is located notifying the operation of the corresponding thread through the Handler, the proxy object corresponding to the specified service object is unregistered in the service manager where the proxy object is located.
- the registration module creates a service object based on the instance of the page service to be registered, it is also used to: determine the page called by the business logic, determine the service in the page as the page service to be registered; The logic establishes a binding relationship with the called page service to be registered;
- the registration module After the registration module registers the proxy object in the business service manager based on the acquired information of the service object, it is also used to notify the bound business logic of a message that the registration of the proxy object is completed.
- an embodiment of the present invention also provides a smart device, including:
- Memory used to store program instructions
- the processor is configured to call the program instructions stored in the memory, and execute any smart device control method in the first aspect according to the obtained program instructions.
- an embodiment of the present invention also provides a computer storage medium, wherein the computer storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by the processor of the smart device, the smart device can Perform any smart device control method in the first aspect.
- embodiments of the present invention also provide a computer program product, which when invoked and executed by a smart device, enables the smart device to execute any smart device control method in the first aspect.
- Embodiments of the present disclosure provide a smart device control method, device, smart device, and storage medium, which can realize cross-thread information interaction between business logic and pages, and can drive pages through business logic.
- FIG. 1 is a schematic flowchart of a method for controlling a smart device according to an embodiment of the present disclosure
- FIG. 2 is a timing diagram of rendering a page provided by an embodiment of the disclosure
- FIG. 3 is a schematic diagram of a process of registering a proxy object with a page service management module provided by an embodiment of the present disclosure
- FIG. 4 is a sequence diagram of registering a proxy object with a page service management module provided by an embodiment of the present disclosure
- FIG. 5 is a schematic diagram of a process of unregistering objects from a page service management module provided by an embodiment of the present disclosure
- FIG. 6 is a sequence diagram of deregistering objects from the page service management module provided by an embodiment of the disclosure.
- FIG. 7 is a schematic structural diagram of a control device for a smart device provided by an embodiment of the disclosure.
- FIG. 8 is a schematic structural diagram of a smart device provided by an embodiment of the disclosure.
- the smart device is a device with data processing capabilities, including but not limited to: robots, banks to handle credit card business The super counter and so on.
- robots for example, at a super counter that handles credit card business at a bank, when you enter the user's identity information on the initial interface of the super counter and click Confirm, the initial interface will jump to the card selection interface.
- page jumps are usually implemented by page-driven background business logic, so corresponding services are completed by driving different pages.
- control method of the above smart device is limited by the need to have a page first, and the page must drive the entire business.
- the way of pure page interaction to drive the business is limited in many usage scenarios, and it is difficult to communicate between business logic and pages. Communication, based on this, the present disclosure provides a smart device control method.
- Words can include:
- Global context WholeContext, which runs through the entire application, is equivalent to a bridge between business logic and page interaction.
- the global context includes: proxy object acquisition method, page and business logic calling method, page and The method of unregistering between business logic, etc., and in order to adapt to future expansion requirements, the global context can also include storage of system resources and various other abstract methods defined, such as: obtaining system services, sending broadcasts, etc.
- Page context FragmentContext, each page corresponds to a page context, where page information and global context handle information are stored in the page context, so that the page can call system resources and indirectly realize the interaction with business logic.
- Business context ModuleContext, each business logic corresponds to a business context, where business logic information and global context handle information are stored in the business context, so that the business logic can call system resources and indirectly realize the interaction between pages.
- ActivityContext Used to intercept user-based click events on the page and start the page in the activity (Activity).
- an embodiment of the present disclosure provides a method for controlling a smart device, and the method specifically includes:
- Step 101 Receive an instruction to execute a specified service.
- the instruction of the designated service may be, but not limited to, triggered through a non-interface interaction manner.
- an instruction to execute a specified service can be triggered by voice, by collecting human body movement information, by capturing human eye movement information, and so on. Take the voice trigger command as an example to illustrate. For example, for a super counter where a bank handles credit card business, the user only needs to tell the super counter that I want to handle a credit card to trigger the super counter to handle credit card business. No specific limitation is made here, and all methods of triggering business instructions through non-interface interaction are applicable to the present disclosure.
- Step 102 Execute the business logic of the specified service according to the instruction.
- the page needs to be rendered during the execution of the business logic, obtain the information of the proxy object used to render the page according to the global context; among them, the thread that executes the business logic and the page rendering Different threads, the global context is a context shared by the thread that executes business logic and the thread that renders the page.
- the business logic calls the proxy object in the auxiliary thread, and the page calls the proxy object in the main thread. Since the business logic and the page are not in the same thread, it is impossible to directly call the functions provided by the other party and related information of the other party.
- the communication between the page and the business logic is achieved through the use of the global context as a bridge.
- obtaining the information of the proxy object used to render the page according to the global context includes: obtaining the method of obtaining the proxy object used to render the page from the global context; and obtaining the proxy according to the obtaining method Information about the object.
- the acquisition method of the proxy object can be obtained from the global context, and information of the proxy object can be obtained based on the acquisition method, and the page can be rendered through the proxy object.
- Step 103 Send the information of the proxy object to the page service manager through the cross-thread communication method in the global context, and call the registered service object corresponding to the information of the proxy object to render the page based on the page service manager.
- the page may be rendered in the manner shown in FIG. 2 specifically, where Module is the business logic of the page to be rendered, ModuleContext is the business context corresponding to the business logic of the page to be rendered, WholeContext is the global context, and ModuleServiceManager It is the business service manager, ServiceProxy serves the proxy object, MethodPackageinfo is the message encapsulation class of the proxy object, ModuleHander is mainly used to solve cross-thread problems, FragmentServiceManager is the page service manager, and IService is the page service. The meanings of the same names in the following are the same, and will not be repeated hereafter.
- Step S1 Notify the business context to pre-acquire the service of rendering the page.
- Step S2 A method for obtaining the service object from the global context through the handle based on the service of pre-obtaining the rendered page.
- Step S3 Obtain the information of the service object based on the method of obtaining the service object.
- Step S4 Send the pre-registered proxy object information to the proxy service based on the known service object information.
- Step S5 Cache the calling function of the proxy object.
- Step S6 Package the calling function.
- Step S7 Pass the calling function to ModuleHander.
- Step S8 Transform the thread through the ModuleHander and send the proxy object information to the page service manager.
- Step S9 Render the corresponding page by calling the function.
- the page can be driven by business logic.
- the pages corresponding to the business logic will be displayed in sequence, thereby realizing the communication between the business logic and the pages.
- the proxy object information is obtained in the business service manager.
- the embodiment of the present disclosure further includes a method of registering the proxy object with the page service management module, as shown in FIG. 3, including:
- Step 301 Create a service object based on the instance of the page service to be registered.
- the page called by the business logic is determined, and the service in the page is determined as the page service to be registered; the business logic and the called page service to be registered are established in a binding relationship.
- Step 302 Obtain a method for registering the service object from the global context.
- Step 303 Register the service object in the page service manager by using the method of registering the service object.
- Step 304 Obtain the information of the registered service object.
- Step 305 Register the proxy object in the business service manager based on the acquired information of the service object.
- the proxy object in the business service manager after registering the proxy object in the business service manager based on the acquired information of the service object, it further includes: notifying the bound business logic of a message that the proxy object has been registered.
- step 305 may include: first creating a proxy service based on the information of the service object, then generating a proxy object based on the proxy service, and finally registering the proxy object to the business service manager.
- the proxy object registration can be through the method shown in Figure 4, where Service is the business logic service, ServiceInfo is the packaging class of the registered service, ServiceProxy is the proxy object service, ServiceHander is mainly used to solve cross-thread problems, and Fragment is the page .
- Step A1 Inform the business context that the service object will be registered on the page.
- Step A2 The business context queries whether there is a page rendering service in the business logic; if so, execute step A3, if not, stop the operation of creating a service object.
- Step A3 Create a service object.
- Step A4 Obtain the method of registering the service object from the global context.
- Step A5 Call the method of registering the service object to register the service object.
- Step A6 Obtain the service object.
- Step A7 Inform the page service manager to pre-register the proxy object.
- Step A8 Obtain the proxy object.
- Step A9 Send the information of the proxy object to ServiceHander.
- Step A10 Register the proxy object to the page service manager.
- Step A11 Inform the page that the proxy object has been successfully registered.
- the embodiment of the present disclosure further includes a method for deregistering the proxy object from the page service management module, as shown in FIG. 5, including:
- Step 501 When logging out the specified service object, obtain the logout method of the specified service object from the global context through the corresponding context; wherein, when the specified service object is a page service, the corresponding context is the page context, and when the designated proxy object is a service of business logic The corresponding context is the business context.
- Step 502 Register the designated service object in the corresponding service manager based on the obtained logout method.
- Step 503 Deregister the proxy object corresponding to the designated service object in the service manager where the proxy object corresponding to the designated service object is located.
- deregistering the proxy object corresponding to the designated service object includes: sending the information of the deregistered service object to the service manager where the proxy object is located, In order to make the service manager where the proxy object is located notify the corresponding thread to cancel the proxy object through the Handler; in response to the service manager where the proxy object is notified of the operation of the corresponding thread through the Handler, the designated service object is canceled in the service manager where the proxy object is located The corresponding proxy object.
- the proxy object can be unregistered through the method shown in Figure 6, where the ServiceHander is mainly used to solve the cross-thread problem.
- Step B1 Load the service of the logout page.
- Step B2 Inform the business context to pre-unbind the business logic.
- Step B3 Obtain a method for unregistering the service object from the global context.
- Step B4 Log off the service object according to the method of logging off the service object.
- Step B5 Inform the page service manager to pre-register the proxy object.
- Step B6 Invoke the method of deregistering the proxy object.
- Step B7 Deregister the proxy object.
- Step B8 Inform the page proxy object to log out.
- the proxy object is unregistered to facilitate the later business logic to drive the page.
- the present disclosure may also include at least one of registering the proxy object with the business service management module, deregistering the proxy object with the business service management module, and invoking the proxy object from the business service management module.
- the present disclosure may also include at least one of registering the proxy object with the business service management module, deregistering the proxy object with the business service management module, and invoking the proxy object from the business service management module.
- FIG. 7 for a control device of a smart device provided by an embodiment of the present disclosure, including: a receiving module 71, an executing module 72, and a sending module 73, wherein:
- the receiving module 71 is used to receive instructions for executing specified services.
- the execution module 72 is configured to execute the business logic of the specified service according to the instruction, and when the page needs to be rendered during the execution of the business logic, obtain the information of the proxy object used to render the page according to the global context; Among them, the thread that executes the business logic is different from the thread that renders the page, and the global context is a context shared by the thread that executes the business logic and the thread that renders the page.
- the sending module 73 is configured to send the information of the proxy object to the page service manager through the cross-thread communication method in the global context, and call the registered information corresponding to the proxy object based on the page service manager.
- the server object renders the page.
- the instruction of the designated service is triggered through a non-interface interaction manner.
- the execution module is specifically configured to: obtain an obtaining method of the proxy object used for rendering the page from the global context; and obtain the information of the proxy object according to the obtaining method.
- the execution module is specifically used to: obtain the information of the proxy object in the business service manager;
- the device further includes:
- the registration module is used to create a service object based on the instance of the page service to be registered; obtain the method of registering the service object from the global context; register the service object in the page service manager by using the method of registering the service object; obtain the registered service Object information; based on the obtained service object information, the proxy object is registered in the business service manager.
- the registration module is specifically configured to: create a proxy service according to the information of the service object; generate a proxy object according to the proxy service; and register the proxy object with the business service manager.
- the device further includes:
- the logout module is used to obtain the logout method of the specified service object from the global context through the corresponding context when logging out the specified service object; wherein, when the specified service object is a page service, the corresponding context is the page context, and the designated proxy object is the business For logical services, the corresponding context is the business context; the designated service object is registered in the corresponding service manager based on the obtained logout method; the designated service object is unregistered in the service manager where the proxy object corresponding to the designated service object is located The corresponding proxy object.
- the logout module is specifically configured to: send the information of the service object that is logged out to the service manager where the proxy object is located, so that the service manager where the proxy object is located notify the corresponding thread to logout through the Handler Proxy object; in response to the service manager where the proxy object is located notifying the operation of the corresponding thread through the Handler, the proxy object corresponding to the specified service object is unregistered in the service manager where the proxy object is located.
- the registration module creates a service object based on the instance of the page service to be registered, it is also used to: determine the page called by the business logic, determine the service in the page as the page service to be registered; The logic establishes a binding relationship with the called page service to be registered;
- the registration module After the registration module registers the proxy object in the business service manager based on the acquired information of the service object, it is also used to notify the bound business logic of a message that the registration of the proxy object is completed.
- the smart device can be, but is not limited to, a robot.
- the smart device may at least include at least one processor and at least one memory.
- the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps in the smart device control method according to various exemplary embodiments of the present disclosure described above in this specification.
- the processor may execute step 101 to step 103 as shown in FIG. 1.
- the smart device 130 according to this embodiment of the present disclosure will be described below with reference to FIG. 8.
- the smart device 130 shown in FIG. 8 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
- the smart device 130 is represented in the form of a general-purpose computing device.
- the components of the smart device 130 may include, but are not limited to: the aforementioned at least one processor 131, the aforementioned at least one memory 132, and a bus 133 connecting different system components (including the memory 132 and the processor 131).
- the bus 133 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a processor, or a local bus using any bus structure among multiple bus structures.
- the memory 132 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1321 and/or a cache memory 1322, and may further include a read-only memory (ROM). 1323.
- RAM random access memory
- ROM read-only memory
- the memory 132 may also include a program/utility tool 1325 having a set (at least one) program module 1324.
- program module 1324 includes but is not limited to: an operating system, one or more application programs, other program modules, and program data. Each of the examples or some combination may include the realization of a network environment.
- the smart device 130 can also communicate with one or more external devices 134 (such as keyboards, pointing devices, etc.), and/or with any device that enables the smart device 130 to communicate with one or more other computing devices (such as routers, Modem, etc.) communication. This communication can be performed through an input/output (Input/Output, I/O) interface 135.
- the smart device 130 may also communicate with one or more networks (for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 136. As shown in the figure, the network adapter 136 communicates with other modules for the smart device 130 through the bus 133.
- LAN local area network
- WAN wide area network
- public network such as the Internet
- various aspects of the smart terminal control method provided in the present disclosure can also be implemented in the form of a program product, which includes a computer program.
- the program product runs on a computer device
- the computer program is used for
- the computer device is caused to execute the steps in the smart device control method according to various exemplary embodiments of the present disclosure described above in this specification.
- the computer device may execute step 101 to step 103 as shown in FIG. 1.
- the program product can adopt any combination of one or more readable media.
- the readable medium may be a readable signal medium or a readable storage medium.
- the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, RAM, ROM, Erasable Programmable Read-Only Only Memory, EPROM or flash memory), optical fiber, compact Disc Read-Only Memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
- CD-ROM compact Disc Read-Only Memory
- the program product for the control of the smart terminal of the embodiment of the present disclosure may adopt a CD-ROM and include a computer program, and may be run on a computing device.
- the program product of the present disclosure is not limited thereto.
- the readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device.
- the readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, in which a readable computer program is carried. This propagated data signal can take many forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- the readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device.
- the computer program contained on the readable medium can be transmitted by any suitable medium, including, but not limited to, wireless, wired, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
- any suitable medium including, but not limited to, wireless, wired, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
- the computer program for performing the operations of the present disclosure can be written in any combination of one or more programming languages.
- the programming language includes object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming. Language-such as "C" language or similar programming language.
- the computer program can be executed entirely on the target computing device, partly executed on the target device, executed as an independent software package, partly executed on the target computing device and partly executed on the remote computing device, or completely executed on the remote computing device Execute on the device or server.
- the remote computing device can be connected to the target computing device through any kind of network-LAN or WAN, or it can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet) ).
- the embodiments of the present disclosure can be provided as a method, a system, or a computer program product. Therefore, the present disclosure may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable computer programs.
- computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
- These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
- the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
- These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
- the instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
Claims (12)
- 一种智能设备的控制方法,其特征在于,包括:接收执行指定业务的指令;根据所述指令执行所述指定业务的业务逻辑,在执行所述业务逻辑的过程中需要渲染页面时,根据全局上下文,获取用于渲染所述页面的代理对象的信息;其中,执行业务逻辑的线程与渲染页面的线程不同,全局上下文为执行业务逻辑的线程和渲染页面的线程共享的上下文;将所述代理对象的信息通过所述全局上下文中的跨线程通信方法发送给页面服务管理器,并基于所述页面服务管理器调用注册的与所述代理对象的信息对应的服务对象渲染所述页面。
- 根据权利要求1所述的方法,其特征在于,所述指定业务的指令为通过非界面交互方式触发的。
- 根据权利要求1所述的方法,其特征在于,所述根据全局上下文,获取用于渲染所述页面的代理对象的信息,包括:从全局上下文中获取用于渲染所述页面的代理对象的获取方法;根据所述获取方法,获取所述代理对象的信息。
- 根据权利要求1-3任一所述的方法,其特征在于,获取所述代理对象的信息,包括:在业务服务管理器中获取代理对象的信息;所述方法还包括:基于待注册页面服务的实例创建服务对象;从所述全局上下文中获取注册服务对象的方法;利用所述注册服务对象的方法在页面服务管理器注册服务对象;获取注册的服务对象的信息;基于获取的服务对象的信息在业务服务管理器中注册代理对象。
- 根据权利要求4所述的方法,其特征在于,基于获取的服务对象的信 息在业务服务管理器中注册代理对象,包括:根据服务对象的信息创建代理服务;根据所述代理服务生成代理对象;将代理对象注册到业务服务管理器。
- 根据权利要求4所述的方法,其特征在于,所述方法还包括:注销指定服务对象时,通过相应的上下文从全局上下文中获取所述指定服务对象的注销方法;其中,指定服务对象为页面服务时相应的上下文为页面上下文,指定代理对象为业务逻辑的服务时相应的上下文为业务上下文;基于获取的注销方法在对应的服务管理器中注册所述指定服务对象;在指定服务对象对应的代理对象所在的服务管理器中注销所述指定服务对象对应的代理对象。
- 根据权利要求6所述的方法,其特征在于,在注册有所述指定服务对象对应的代理对象的服务管理器中注销所述指定服务对象对应的代理对象,包括:将注销的服务对象的信息发送给所述代理对象所在的服务管理器,以使所述代理对象所在的服务管理器通过Handler通知相应的线程注销代理对象;响应于所述代理对象所在的服务管理器通过Handler通知相应的线程的操作,在所述代理对象所在的服务管理器中注销所述指定服务对象对应的代理对象。
- 根据权利要求4所述的方法,其特征在于,基于待注册页面服务的实例创建服务对象之前,所述方法还包括:确定业务逻辑调用的页面,将该页面中的服务确定为所述待注册页面服务;将所述业务逻辑和被调用的待注册页面服务建立绑定关系;所述基于获取的服务对象的信息在业务服务管理器中注册代理对象之后,所述方法还包括:将代理对象注册完成的消息通知给绑定的业务逻辑。
- 一种智能设备的控制装置,其特征在于,包括:接收模块,用于接收执行指定业务的指令;执行模块,用于根据所述指令执行所述指定业务的业务逻辑,在执行所述业务逻辑的过程中需要渲染页面时,根据全局上下文,获取用于渲染所述页面的代理对象的信息;其中,执行业务逻辑的线程与渲染页面的线程不同,全局上下文为执行业务逻辑的线程和渲染页面的线程共享的上下文;发送模块,用于将所述代理对象的信息通过所述全局上下文中的跨线程通信方法发送给页面服务管理器,并基于所述页面服务管理器调用注册的与所述代理对象的信息对应的服务对象渲染所述页面。
- 一种智能设备,其特征在于,包括:存储器以及处理器;存储器,用于存储程序指令;处理器,用于调用所述存储器中存储的程序指令,按照获得的程序指令执行权利要求1-8任一项所述的方法。
- 一种计算机存储介质,存储有计算机可执行指令,其特征在于,所述计算机可执行指令由智能设备的处理器执行时,所述智能设备能够执行权利要求1-8中任一项所述的方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品在被智能设备调用执行时,可使所述智能设备执行权利要求1至8任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910923817.9A CN110673918B (zh) | 2019-09-27 | 2019-09-27 | 智能设备的控制方法、装置以及智能设备、存储介质 |
CN201910923817.9 | 2019-09-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021057925A1 true WO2021057925A1 (zh) | 2021-04-01 |
Family
ID=69079906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/117897 WO2021057925A1 (zh) | 2019-09-27 | 2020-09-25 | 智能设备的控制方法、装置以及智能设备、存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110673918B (zh) |
WO (1) | WO2021057925A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113535132A (zh) * | 2021-07-26 | 2021-10-22 | 中移(杭州)信息技术有限公司 | 设备接入方法、装置、终端设备以及存储介质 |
CN117436180A (zh) * | 2023-12-14 | 2024-01-23 | 中建三局集团有限公司 | 基于中心数据库的智能设备生产驱动方法、系统及介质 |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110673918B (zh) * | 2019-09-27 | 2021-10-01 | 北京猎户星空科技有限公司 | 智能设备的控制方法、装置以及智能设备、存储介质 |
CN111338775B (zh) * | 2020-02-21 | 2022-06-07 | 南京领行科技股份有限公司 | 一种执行定时任务的方法及设备 |
CN111414152B (zh) * | 2020-03-25 | 2023-04-21 | 北京字节跳动网络技术有限公司 | 业务逻辑的实现方法、系统、可读介质和电子设备 |
CN112286410B (zh) * | 2020-09-25 | 2022-09-09 | 长沙市到家悠享网络科技有限公司 | 数据处理方法、装置、电子设备及计算机可读介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1202172A1 (en) * | 2000-10-31 | 2002-05-02 | Universiteit Gent | Topological, on-the-fly classification of objects into a global set and local sets |
US20110145304A1 (en) * | 2009-12-15 | 2011-06-16 | Microsoft Corporation | Efficient garbage collection and exception handling in a hardware accelerated transactional memory system |
CN103353750A (zh) * | 2013-07-24 | 2013-10-16 | 昆明理工大学 | 一种基于多总线的微波冶金控制系统及方法 |
CN109726023A (zh) * | 2018-12-12 | 2019-05-07 | 中国航空工业集团公司西安航空计算技术研究所 | 一种支持多线程多上下文的图形任务同步管理方法 |
CN110673918A (zh) * | 2019-09-27 | 2020-01-10 | 北京猎户星空科技有限公司 | 智能设备的控制方法、装置以及智能设备、存储介质 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932390B (zh) * | 2011-08-11 | 2015-07-08 | 阿里巴巴集团控股有限公司 | 一种网络请求的处理方法和系统、网络服务提供装置 |
US10270671B2 (en) * | 2015-09-22 | 2019-04-23 | Microsoft Technology Licensing, Llc | External process user interface isolation and monitoring |
US11106274B2 (en) * | 2017-04-10 | 2021-08-31 | Intel Corporation | Adjusting graphics rendering based on facial expression |
US10346166B2 (en) * | 2017-04-28 | 2019-07-09 | Intel Corporation | Intelligent thread dispatch and vectorization of atomic operations |
US10817347B2 (en) * | 2017-08-31 | 2020-10-27 | TidalScale, Inc. | Entanglement of pages and guest threads |
CN109739505B (zh) * | 2019-01-08 | 2019-11-29 | 网易(杭州)网络有限公司 | 一种用户界面的处理方法和装置 |
-
2019
- 2019-09-27 CN CN201910923817.9A patent/CN110673918B/zh active Active
-
2020
- 2020-09-25 WO PCT/CN2020/117897 patent/WO2021057925A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1202172A1 (en) * | 2000-10-31 | 2002-05-02 | Universiteit Gent | Topological, on-the-fly classification of objects into a global set and local sets |
US20110145304A1 (en) * | 2009-12-15 | 2011-06-16 | Microsoft Corporation | Efficient garbage collection and exception handling in a hardware accelerated transactional memory system |
CN103353750A (zh) * | 2013-07-24 | 2013-10-16 | 昆明理工大学 | 一种基于多总线的微波冶金控制系统及方法 |
CN109726023A (zh) * | 2018-12-12 | 2019-05-07 | 中国航空工业集团公司西安航空计算技术研究所 | 一种支持多线程多上下文的图形任务同步管理方法 |
CN110673918A (zh) * | 2019-09-27 | 2020-01-10 | 北京猎户星空科技有限公司 | 智能设备的控制方法、装置以及智能设备、存储介质 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113535132A (zh) * | 2021-07-26 | 2021-10-22 | 中移(杭州)信息技术有限公司 | 设备接入方法、装置、终端设备以及存储介质 |
CN113535132B (zh) * | 2021-07-26 | 2024-05-07 | 中移(杭州)信息技术有限公司 | 设备接入方法、装置、终端设备以及存储介质 |
CN117436180A (zh) * | 2023-12-14 | 2024-01-23 | 中建三局集团有限公司 | 基于中心数据库的智能设备生产驱动方法、系统及介质 |
CN117436180B (zh) * | 2023-12-14 | 2024-03-19 | 中建三局集团有限公司 | 基于中心数据库的智能设备生产驱动方法、系统及介质 |
Also Published As
Publication number | Publication date |
---|---|
CN110673918A (zh) | 2020-01-10 |
CN110673918B (zh) | 2021-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021057925A1 (zh) | 智能设备的控制方法、装置以及智能设备、存储介质 | |
US9176772B2 (en) | Suspending and resuming of sessions | |
US20230236585A1 (en) | Zero footprint robotic process automation system | |
US8321594B2 (en) | Achieving low latencies on network events in a non-real time platform | |
CN108595316B (zh) | 分布式应用的生命周期管理方法、管理器、设备和介质 | |
US20050038849A1 (en) | Extensible framework for transferring session state | |
CN110716748A (zh) | 业务处理方法、装置、计算机可读介质及电子设备 | |
CN111176626A (zh) | 跨编程语言的代码调用方法及装置、介质、设备 | |
WO2020182096A1 (zh) | 一种用于生成救援指令的方法与设备 | |
US11321090B2 (en) | Serializing and/or deserializing programs with serializable state | |
CN114610404B (zh) | 基于应用框架的组件调用方法、装置和计算机设备 | |
US20240264804A1 (en) | Cloud code development system, method, apparatus, device and storage medium | |
US20220293085A1 (en) | Method for text to speech, electronic device and storage medium | |
CN113784049A (zh) | 安卓系统虚拟机的摄像头调用方法、电子设备和存储介质 | |
US9208058B2 (en) | Providing directional debugging breakpoints | |
CN113656102A (zh) | 数据埋点方法及装置、存储介质、电子设备 | |
CN111339194B (zh) | 数据库接入层中间件的自动调度方法和装置 | |
CN115600676A (zh) | 深度学习模型推理方法、装置、设备及存储介质 | |
US9386010B2 (en) | Abstracted authenticated client connectivity application programming interface (API) | |
CN114490126A (zh) | 页面处理方法、装置、电子设备和存储介质 | |
CN113849449A (zh) | 一种通信系统和信息交互方法、设备和介质 | |
CN112988289B (zh) | 调用接口的方法及系统 | |
CN111061259A (zh) | 行走机器人的事件化驱动方法、系统、设备及存储介质 | |
US11210205B2 (en) | Application debugging | |
CN115250276A (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: 20870191 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: 20870191 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 14/10/2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20870191 Country of ref document: EP Kind code of ref document: A1 |