CallTask

class hive.registry.CallTask(action)

Bases: object

Connect 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

task

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_task method

Type

hive.implementation.task.Task

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.Server

external trigger send by the Peira server

hive.trigger.Keyboard

external 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