action_server.action_factory¶
Classes¶
The action factory creates Action instances based on an action name. |
Functions¶
Module Contents¶
- action_server.action_factory.class_name_camelcase_to_dashes(name)¶
- class action_server.action_factory.ActionFactory¶
Bases:
object
The action factory creates Action instances based on an action name.
The ./actions/ directory is inspected for child classes of Action. These classes are registered in the _action_name_to_class dict. The user can get the registered action names by calling get_action_names() and an instance of an action can be created by calling get_action(<action_name>).
- _action_name_to_class¶
- _register_skill(action_type, skill)¶
- get_action_names()¶
Get a list of the action names of the registered actions
- get_action(action_name)¶
Get the Action class for the requested action_name