NUGU SDK Linux
1.7.6
|
IRoutineManager interface. More...
#include <routine_manager_interface.hh>
Public Member Functions | |
virtual void | addListener (IRoutineManagerListener *listener)=0 |
Add IRoutineManagerListener. More... | |
virtual void | finish ()=0 |
Finish action. | |
virtual unsigned int | getCountableActionIndex ()=0 |
Get index of current countable action. More... | |
virtual unsigned int | getCountableActionSize ()=0 |
Get size of countable actions. More... | |
virtual unsigned int | getCurrentActionIndex ()=0 |
Get index of current active action. More... | |
virtual std::string | getCurrentActionToken ()=0 |
Get token of current active action. More... | |
virtual bool | hasRoutineDirective (const NuguDirective *ndir)=0 |
Check whether routine directive exist in NuguDirective. More... | |
virtual bool | hasToSkipMedia (const std::string &dialog_id)=0 |
Check whether current condition should skip media play. More... | |
virtual void | interrupt ()=0 |
Interrupt routine. | |
virtual bool | isActionProgress (const std::string &dialog_id)=0 |
Check whether action is in progress currently. More... | |
virtual bool | isActionValid (const NJson::Value &action)=0 |
Check whether the action is valid. More... | |
virtual bool | isConditionToCancel (const NuguDirective *ndir)=0 |
Check whether current condition is to cancel directive. More... | |
virtual bool | isConditionToFinishAction (const NuguDirective *ndir)=0 |
Check whether current condition is possible to finish progressing action. More... | |
virtual bool | isConditionToStop (const NuguDirective *ndir)=0 |
Check whether current condition is to stop routine. More... | |
virtual bool | isMuteDelayed ()=0 |
Check whether mute delay is processed. More... | |
virtual bool | isRoutineAlive ()=0 |
Check whether routine has remained action to execute. More... | |
virtual bool | isRoutineProgress ()=0 |
Check whether routine is in progress currently. More... | |
virtual bool | move (unsigned int index)=0 |
Move to the specific action and process. More... | |
virtual void | presetActionTimeout ()=0 |
Set default time (5 sec) when action timeout is not set. | |
virtual void | removeListener (IRoutineManagerListener *listener)=0 |
Remove IRoutineManagerListener. More... | |
virtual void | resume ()=0 |
Resume routine. | |
virtual void | setDataRequester (DataRequester requester)=0 |
Set DataRequester delegate for handling data type action. More... | |
virtual void | setPendingStop (const NuguDirective *ndir)=0 |
Set pending stop after checking whether Routine.Stop directive exists. More... | |
virtual void | setTextRequester (TextRequester requester)=0 |
Set TextRequester delegate for handling text type action. More... | |
virtual bool | start (const std::string &token, const NJson::Value &actions)=0 |
Start routine. More... | |
virtual void | stop ()=0 |
Stop routine. | |
IRoutineManager interface.
|
pure virtual |
[in] | listener | IRoutineManagerListener instance |
|
pure virtual |
Remove IRoutineManagerListener.
[in] | listener | IRoutineManagerListener instance |
|
pure virtual |
Set TextRequester delegate for handling text type action.
[in] | requester | TextRequester delegate |
|
pure virtual |
Set DataRequester delegate for handling data type action.
[in] | requester | DataRequester delegate |
|
pure virtual |
Start routine.
[in] | token | token which is delivered from routine play |
[in] | actions | action list |
|
pure virtual |
Move to the specific action and process.
[in] | index | action index |
true | succeed to move and process |
false | fail to move and process |
|
pure virtual |
Get token of current active action.
|
pure virtual |
Get index of current active action.
|
pure virtual |
Get size of countable actions.
|
pure virtual |
Get index of current countable action.
|
pure virtual |
Check whether the action is valid.
|
pure virtual |
Check whether routine is in progress currently.
|
pure virtual |
Check whether routine has remained action to execute.
|
pure virtual |
Check whether action is in progress currently.
[in] | dialog_id | dialog id of action |
|
pure virtual |
Check whether routine directive exist in NuguDirective.
[in] | ndir | NuguDirective object |
|
pure virtual |
Check whether current condition is to stop routine.
[in] | ndir | NuguDirective object |
|
pure virtual |
Check whether current condition is possible to finish progressing action.
[in] | ndir | NuguDirective object |
|
pure virtual |
Check whether current condition is to cancel directive.
[in] | ndir | NuguDirective object |
|
pure virtual |
Check whether mute delay is processed.
true | in progress |
false | not in progress |
|
pure virtual |
Set pending stop after checking whether Routine.Stop directive exists.
[in] | ndir | NuguDirective object |
|
pure virtual |
Check whether current condition should skip media play.
[in] | dialog_id | dialog id |
true | skip |
false | not skip |