Summary of the invention
When switching between different services or sub-services due to existing robot, need ceaselessly to restart,
It is more troublesome, the efficiency the problem of substantially reducing for causing information to be transmitted, the embodiment of the present invention proposes to apply in a kind of smart machine
Service operation control method and device.
In a first aspect, the embodiment of the present invention proposes application service progress control method in a kind of smart machine, comprising:
It obtains the corresponding execution feature of each application service and terminates feature;The execution feature is application service unlatching
Whether automatic continuous operation or whether need to take turns interaction afterwards more;Whether the end feature has for application service explicitly terminates to flow
Journey;
The execution feature and the end feature are analyzed respectively, determine that each application service is respectively right respectively
The type answered;
The target application service for distinguishing real time execution in the smart machine is extracted, is taken respectively according to each target application
Corresponding type of being engaged in switches over each target application service;
Corresponding response results are exported respectively according to the sequence of each target application service described after switching.
Optionally, described that the type of each application service is determined according to the execution feature and the end feature, into
One step includes:
If the execution feature of target application service is automatic continuous operation after opening, terminating feature is that nothing explicitly terminates to flow
Journey, then the type of the target application service is the application service of A class;
If the execution feature of target application service is without taking turns interaction more, terminating feature is to have explicitly to terminate process, then
The type of the target application service is the application service of B class;
If the execution feature of target application service is to need more wheel interactions, terminating feature is to have explicitly to terminate process, then
The type of the target application service is the application service of C class.
Optionally, the application service switching law are as follows:
If needing to start the B class application service in the A class application service operational process, the A class application is kept
Service operation simultaneously starts the B class application service, or suspends the A class application service and start the B class application service, to institute
After stating B class application service end of run, the A class application service is continued to run;
If the A class application service and the B class application service need to start the C class application during running parallel
Service, then start the C class application service, and terminate the A class application service and the B class application service;
If the B class application service and the C class application service need to start the A class application during running parallel
Service, then start the A class application service, and terminate the B class application service and the C class application service.
Optionally, described to obtain the corresponding execution feature of each application service and terminate feature, further comprise:
According to the runing time and interactive information run each time in the corresponding running log of each application service, determine
The corresponding execution feature of each application service;
According to the identification information of end of run each time in the corresponding running log of each application service, each application is determined
Service the corresponding end feature.
Optionally, the method also includes:
Record the effective information in each application service interactive process.
Optionally, the effective information recorded in each application service interactive process further comprises:
If the data of the effective information change, the legacy data of the effective information is deleted, and described in record
The new data of effective information.
Optionally, the method also includes:
If the target application service operation terminates, all effective informations of the target application service are deleted.
Second aspect, the embodiment of the present invention also propose application service operating control device in a kind of smart machine, comprising:
Feature obtains module, for obtaining the corresponding execution feature of each application service and terminating feature;The execution
Whether whether feature be automatic continuous operation or to need to take turns interaction after application service is opened more;The end feature is application service
Whether have explicitly terminates process;
Determination type module determines institute for being analyzed respectively the execution feature and the end feature respectively
State the corresponding type of each application service;
Application service switching module, for extracting the target application service for distinguishing real time execution in the smart machine, point
Corresponding type is not serviced according to each target application to switch over each target application service;
As a result output module, for exporting corresponding response respectively according to the sequence of each target application service described after switching
As a result.
Optionally, the application service switching module further comprises:
A class determination unit terminates feature if the execution feature for target application service is automatic continuous operation after opening
For without explicitly process is terminated, then the type of the target application service is the application service of A class;
B class determination unit, if the execution feature for target application service is that it is bright to have to terminate feature without taking turns interaction more
True end process, then the type of the target application service is the application service of B class;
It is bright to have to terminate feature if the execution feature for target application service is the more wheel interactions of needs for C class determination unit
True end process, then the type of the target application service is the application service of C class.
Optionally, application service switching law described in the operation control module are as follows:
If needing to start the B class application service in the A class application service operational process, the A class application is kept
Service operation simultaneously starts the B class application service, or suspends the A class application service and start the B class application service, to institute
After stating B class application service end of run, the A class application service is continued to run;
If the A class application service and the B class application service need to start the C class application during running parallel
Service, then start the C class application service, and terminate the A class application service and the B class application service;
If the B class application service and the C class application service need to start the A class application during running parallel
Service, then start the A class application service, and terminate the B class application service and the C class application service.
Optionally, the feature acquisition module further comprises:
Characteristics determining unit is executed, for according to the fortune run each time in the corresponding running log of each application service
Row time and interactive information determine the corresponding execution feature of each application service;
Terminate characteristics determining unit, for according to end of run each time in the corresponding running log of each application service
Identification information, determine the corresponding end feature of each application service.
Optionally, described device further include:
Information logging modle, for recording the effective information in each application service interactive process.
Optionally, the effective information recorded in each application service interactive process further comprises:
Information updating module deletes the original of the effective information if the data for the effective information change
There are data, and records the new data of the effective information.
Optionally, described device further include:
Information deletion module deletes the target application service if terminating for the target application service operation
All effective informations.
As shown from the above technical solution, the embodiment of the present invention is according to the execution feature and end feature of application service to application
Service is classified, and carries out classification control to application service, so that the switching between application service and application service is not according to
Same type is controlled, so that user robot when initiating new command be enable more effectively to manage the shape of current application service
State, it is ensured that quickly and conveniently switch application service, timely respond to the needs of user, improve the efficiency of information transmission.
Specific embodiment
With reference to the accompanying drawing, further description of the specific embodiments of the present invention.Following embodiment is only used for more
Technical solution of the present invention is clearly demonstrated, and not intended to limit the protection scope of the present invention.
Fig. 1 shows the process signal of application service progress control method in a kind of smart machine provided in this embodiment
Figure, comprising:
S101, it obtains the corresponding execution feature of each application service and terminates feature;
Wherein, the smart machine can be robot or other equipment with automatic calculating and processing capacity.
Whether whether the execution feature be automatic continuous operation or to need to take turns interaction after application service is opened more;Expression is answered
Continue automatic executive capability with whether service has, or take turns whether is supported to interact more.More wheel interactions indicate multiple continuous
Interactive process, and rely on context and execute instruction.For example, music application service can be automatic continuous, it is actively not whole in user
It is persistently played when only servicing, therefore has and continue automatic executive capability;The current play instruction of music application service simultaneously
Last instruction may be needed to rely on, and (last instruction is " playing rock music ", this instruction is " to play songstress
Song "), therefore hold more wheel interactions.
The end feature explicitly terminates process for whether application service has.For example, application service of calling a taxi is that have completion
Node, completion process of calling a taxi completes service, therefore with the specific process that terminates.
The execution feature and end feature of application service have determined that can application service support other to answer in the process of running
It is concurrent with service, or can continue to service after being interrupted, and user experience is unaffected;It has been determined that application service is at it simultaneously
Whether its application service can provide service and simultaneously not by other application service impact during carrying out.
S102, the execution feature and the end feature are analyzed respectively, determines each application service respectively
Corresponding type;
Wherein, the type is classify to application service according to different execution features and different end features
The result arrived.
Specifically, by the execution feature of application service and terminate feature definition it is clear after, the application service of any complexity
Corresponding types can be divided to, to be able to carry out specific switching law when switching over application service.
S103, the target application service of real time execution respectively in the smart machine is extracted, respectively according to each target
The corresponding type of application service switches over each target application service.
Wherein, the application service that the target application service switches over for needs.
Specifically, the target application service for distinguishing real time execution in the smart machine is extracted, is switched according to application service
Rule, user's triggering command and each target application service corresponding type, switch over to each target application service.
Rule when the application service switching law switches between different types of application service predetermined
Then.
Specifically, the application service switching law is that special place has been done in switching between different types of application service
Reason, to change the application service switching mode of single solution for diverse problems, while guaranteeing have one to be cased with when being continuously increased new application service
The rule of sequence executes, and without designing switch mode one by one, while keeping the interactive process of user and robot more natural.
The triggering robot that user's triggering command is the voice inputted according to user or image information identifies is dynamic
The instruction of work.
The operation to each application service carries out control to control existing when new application service needs to start
Application service remain operational, operation suspension or terminate operation.The redundancy loop in application service interactive process can effectively be evaded
Section, guarantees that the implementation procedure of application service is succinctly quick.
Different application service is switched over according to the application service switching law, can guarantee the continuous touching to user
Hair is responded.
S104, corresponding response results are exported according to the sequence of each target application service described after switching respectively.
Wherein, the sequence of each target application service is the operation after the service switching of each target application after the switching
Sequentially.
The response results are the response that smart machine is made after target application service switches.Such as: from music
Application service switches to call a taxi application service after, the response results of the smart machine are as follows: pause music application service, fortune
Capable application service of calling a taxi.
The present embodiment classifies to application service according to the execution feature and end feature of application service, and takes to application
Business carries out classification control, so that the switching between application service and application service is controlled according to different type, to use
Family robot when initiating new command can more effectively manage the state of current application service, it is ensured that quickly and conveniently switching is answered
With service, the needs of user are timely responded to, improve the efficiency of information transmission.
It is further, described according to the execution feature and the end feature on the basis of above method embodiment,
The type for determining each application service further comprises:
If the execution feature of target application service is automatic continuous operation after opening, terminating feature is that nothing explicitly terminates to flow
Journey, then the type of the target application service is the application service of A class.
Specifically, the A class application service be after opening without clearly instruction can automatic continuous operation application service, and nothing
Explicitly terminate process, except non-user requires to terminate, otherwise sustainable operation.
For example, music application service does not require stopping broadcasting then can be with continuous music play after meeting unlatching
Feature, so belonging to A class application service.
If the execution feature of target application service is without taking turns interaction more, terminating feature is to have explicitly to terminate process, then
The type of the target application service is the application service of B class.
For example, weather lookup application service, which meets after user inquires weather, directly broadcasts Weather information (without more wheel friendships
Mutually), and after the completion of casting it ends automatically, so belonging to B class application service.
If the execution feature of target application service is to need more wheel interactions, terminating feature is to have explicitly to terminate process, then
The type of the target application service is the application service of C class.
For example, application service of calling a taxi meets user and needs to complete to order afterwards by step offer multiclass information (more wheel interactions)
It is single to submit, so belonging to C class application service.
The present embodiment is divided into different type according to the specific features of application service, consequently facilitating being different type
The switched design of application service meet the switching law of its feature.
Further, on the basis of above method embodiment, the application service switching law are as follows:
If needing to start the B class application service in the A class application service operational process, the A class application is kept
Service operation simultaneously starts the B class application service, or suspends the A class application service and start the B class application service, to institute
After stating B class application service end of run, the A class application service is continued to run.
Wherein, pre- according to user when needing to start the B class application service in the A class application service operational process
The rule first set executes: the A class application service can be kept to run and start the B class application service, can also be suspended
The A class application service simultaneously starts the B class application service, after the B class application service end of run, continues to run described
A class application service.
For example, with music application service (application service of A class) and weather lookup application service (B class application clothes
Business) it illustrates, it during playing music, needs to inquire weather, then can be broadcast on one side according to the preset rule of user
It puts the music on, inquires weather on one side;Or pause plays music, (this scene is generally adapted to need voice broadcast day inquiry weather
Gas).
Alternatively, robot is connected to the instruction of weather lookup when playing music, robot turns volume of music down, and with
Relatively large volume output weather lookup is as a result, the volume of music is restored and continues to play music after weather casting.With
On, music application service is not interrupted and broadcasts the instruction of weather and also smoothly exports.
In addition, robot is connected to instruction of calling a taxi when playing music, then music stops playing and switching to calling a taxi using clothes
Business.Since chauffeur process needs to input the multiclass information element such as destination, departure place, personal information successively, to guarantee information record
The accuracy that enters and guarantee user not by interference with music, so selection stops music application service and is directly entered chauffeur application clothes
Business.
If the A class application service and the B class application service need to start the C class application during running parallel
Service, then start the C class application service, and terminate the A class application service and the B class application service.
For example, with music application service (application service of A class), weather lookup application service (B class application clothes
Business) and application service of calling a taxi (application service of C class) illustrate, when one side plays music, inquires weather on one side, need dozen
Vehicle then starts the service of calling a taxi, and terminates music and weather lookup.
If the B class application service and the C class application service need to start the A class application during running parallel
Service, then start the A class application service, and terminate the B class application service and the C class application service.
For example, with music application service (application service of A class), weather lookup application service (B class application clothes
Business) and application service of calling a taxi (application service of C class) illustrate, when one side inquiry weather, when calling a taxi on one side, need to play sound
It is happy, then start music service, terminates weather lookup and call a taxi.
Different application service switching laws is followed by different types of application service, enables to any one application
Service can execute the switching law of corresponding types, quickly switch over, and preferably guarantee the formedness of interactive experience.
Further, on the basis of above method embodiment, the S101 further comprises:
S1011, believed according to the runing time and interaction that are run each time in the corresponding running log of each application service
Breath, determines the corresponding execution feature of each application service.
Wherein, the runing time is runing time distribution situation of the application service in an operational process, described
Interactive information is the interaction times and interaction content of the application service and user, determines whether the application service is automatic continuous with this
Operation, while can determine whether the application service needs take turns to interact more.
S1012, according to the identification information of end of run each time in the corresponding running log of each application service, determine
The corresponding end feature of each application service.
Wherein, the identification information of the end of run, which is the end of the application service, is referred to due to receiving the end of user
It enables or interactive process terminates and terminates application service.
Specifically, the corresponding resource occupation of each application service that every equipment is run in monitoring server running log
Situation, if monitoring that certain application service occupies resource in certain time period and is greater than mean value, which is the application service
Runing time, detect certain application service certain period occur repeatedly occupy resource be greater than mean value, then the application service need
To take turns interaction more.Such as monitor that the corresponding occupancy resource of certain application service is bordering on zero, then the application service end of run, it may be determined that
The corresponding end feature of the application service.
The relevant information in running log by analyzing application service, can quickly and easily obtain holding for application service
Row feature and end feature.
Further, on the basis of above method embodiment, the method also includes:
Record the effective information in each application service interactive process.
Wherein, the effective information is the letter executed for determining application program obtained from user in interactive process
Breath.
Specifically, the record time of the effective information is to terminate the time as node using application service.
By taking turns concept for Application service definition, allow the robot to more rationally effectively record relevant effective letter more
Breath;By recording effective information, keep the handoff procedure of application service simpler.
Further, described to record in each application service interactive process on the basis of above method embodiment
Effective information further comprises:
If the data of the effective information change, the legacy data of the effective information is deleted, and described in record
The new data of effective information.
For example, user can repeatedly input same effective information, such as input " destination S " for the first time,
Second of input " destination T ", it is clear that user has found the input error of first time, therefore re-enters correctly.So
The data of deletion error are needed, and record correct data.
By deleting the legacy data of effective information, and the new data of effective information is recorded, can guarantee that data are correct
Property while, save memory space.
Further, on the basis of above method embodiment, the method also includes:
If the target application service operation terminates, all effective informations of the target application service are deleted.
For example, it when application service is called a taxi in end, by the relevant destination of application service of calling a taxi of record, sets out
The information such as ground, departure time are deleted.
By deleting the effective information of the application service of end of run, it can be avoided a large amount of invalid information redundancies, simultaneously
Privacy of user can be protected in business machine people.
Specifically, a complex services, can include multiple and different sub-services, and a sub-services need robot to
User collects one or more information elements and could execute, so switching when between different sub-services of the user under same service
When, the record of effective information can allow robot to become more intelligent, and when service or sub-services exit, then it removes all effective
Information, to protect privacy of user.
By taking camera function as an example: if the camera function of robot includes three functions: taking pictures, video and photograph album are checked, use
Family enters process of taking pictures after assigning the instruction taken pictures, and user requires to add textures on camera lens at this time, and (not taking pictures) requires again
It checks photograph album, shooting video is required after leafing through to third photo, and assign instruction and open " video U.S. face ".From the above operation
The effective information that can be extracted includes photograph textures, photograph album third photo, video U.S. face, and robot will before exiting camera function
These effective informations are recorded, then when user switches to from shooting video again and takes pictures, it is found that remain as him on camera lens and protect
The textures selected just now are stayed, photo browsing is retained in third when being switched to photograph album, and entire interactive experience is more friendly.When with
Family is switched to from camera applications service when calling a taxi application service, and the effective information stored in camera applications service will be by all clear
It removes.
Fig. 2 shows the structural representations of application service operating control device in a kind of smart machine provided in this embodiment
Figure, described device include: that feature obtains module 201, determination type module 202, application service switching module 203 and result output
Module 204, in which:
The feature obtains module 201 for obtaining the corresponding execution feature of each application service and terminating feature;Institute
It states and executes feature is whether automatic continuous operation or whether to need to take turns interaction after application service is opened more;The end feature is to answer
Explicitly terminate process with whether service has;
The determination type module 202 for analyzing the execution feature and the end feature respectively, respectively
Determine the corresponding type of each application service;
The application service switching module 203 is used to extract the target application clothes that real time execution is distinguished in the smart machine
Business services corresponding type according to each target application respectively and switches over to each target application service.
The result output module 204, for being exported respectively pair according to the sequence of each target application service described after switching
The response results answered.
Specifically, the feature obtains module 201 and obtains the corresponding execution feature of each application service and terminate feature;
Whether whether the execution feature be automatic continuous operation or to need to take turns interaction after application service is opened more;The end feature is
Whether application service, which has, explicitly terminates process;The determination type module 202 is to the execution feature and the end feature
It is analyzed respectively, determines the corresponding type of each application service respectively;The application service switching module 203 is extracted
The target application service of real time execution is distinguished in the smart machine, and corresponding type is serviced according to each target application respectively
Each target application service is switched over.The result output module 204 is according to each target application service described after switching
Sequence export corresponding response results respectively.
The present embodiment classifies to application service according to the execution feature and end feature of application service, and takes to application
Business carries out classification control, so that the switching between application service and application service is controlled according to different type, to use
Family robot when initiating new command can more effectively manage the state of current application service, it is ensured that quickly and conveniently switching is answered
With service, the needs of user are timely responded to, improve the efficiency of information transmission.
Further, on the basis of above-mentioned apparatus embodiment, the application service switching module 203 further comprises:
A class determination unit terminates feature if the execution feature for target application service is automatic continuous operation after opening
For without explicitly process is terminated, then the type of the target application service is the application service of A class;
B class determination unit, if the execution feature for target application service is that it is bright to have to terminate feature without taking turns interaction more
True end process, then the type of the target application service is the application service of B class;
It is bright to have to terminate feature if the execution feature for target application service is the more wheel interactions of needs for C class determination unit
True end process, then the type of the target application service is the application service of C class.
Further, on the basis of above-mentioned apparatus embodiment, the switching of application service described in the operation control module
Rule are as follows:
If needing to start the B class application service in the A class application service operational process, the A class application is kept
Service operation simultaneously starts the B class application service, or suspends the A class application service and start the B class application service, to institute
After stating B class application service end of run, the A class application service is continued to run;
If the A class application service and the B class application service need to start the C class application during running parallel
Service, then start the C class application service, and terminate the A class application service and the B class application service;
If the B class application service and the C class application service need to start the A class application during running parallel
Service, then start the A class application service, and terminate the B class application service and the C class application service.
Further, on the basis of above-mentioned apparatus embodiment, the feature obtains module 201 and further comprises:
Characteristics determining unit is executed, for according to the fortune run each time in the corresponding running log of each application service
Row time and interactive information determine the corresponding execution feature of each application service;
Terminate characteristics determining unit, for according to end of run each time in the corresponding running log of each application service
Identification information, determine the corresponding end feature of each application service.
Further, on the basis of above-mentioned apparatus embodiment, described device further include:
Information logging modle, for recording the effective information in each application service interactive process.
Further, described to record in each application service interactive process on the basis of above-mentioned apparatus embodiment
Effective information further comprises:
Information updating module deletes the original of the effective information if the data for the effective information change
There are data, and records the new data of the effective information.
Further, on the basis of above-mentioned apparatus embodiment, described device further include:
Information deletion module deletes the target application service if terminating for the target application service operation
All effective informations.
Application service operating control device can be used for executing above method implementation in smart machine described in the present embodiment
Example, principle is similar with technical effect, and details are not described herein again.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member
It is physically separated with being or may not be, component shown as a unit may or may not be physics list
Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs
In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness
Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
It is noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although reference
Invention is explained in detail for previous embodiment, those skilled in the art should understand that: it still can be right
Technical solution documented by foregoing embodiments is modified or equivalent replacement of some of the technical features;And this
It modifies or replaces, the spirit and model of technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution
It encloses.