CallTask¶
- class hive.registry.CallTask(action)¶
Bases:
objectConnect the automatic task and the triggers chosen from the config file.
- Parameters
action (
CallAction) – interface object to send command from diverse catalogs of actions
- _trigger¶
- Type
hive.triger.Trigger
- _task¶
Attributes Summary
give the automatic task chosen.
Methods Summary
add_trigger(keyword, **kwargs)Create a trigger based on a name of class in
hive.trigger.create_task(keyword, **kwargs)Set the automatic mode based on a name of class in
hive.implementation.Attributes Documentation
- task¶
give the automatic task chosen.
Note
Not modifiable directly from outside. To set a new auto-mode, use the
create_taskmethod
Methods Documentation
- add_trigger(keyword, **kwargs)¶
Create a trigger based on a name of class in
hive.trigger.- Parameters
keyword (
str, {Server, Keyboard}) – Trigger class name**kwargs (options relative to the trigger class called) –
See also
hive.trigger.Serverexternal trigger send by the Peira server
hive.trigger.Keyboardexternal trigger send through the keyboard by the user
- Raises
ValueError – If the keyword has no corresponding class
- create_task(keyword, **kwargs)¶
Set the automatic mode based on a name of class in
hive.implementation.- Parameters
keyword (
str, {SequenceTask}) – Automatic mode class name
See also
hive.implementation.sequence_task.SequenceTask- Raises
ValueError – If no trigger already specified (see
create_trigger) If the keyword has no corresponding class