concepts.dm.crow.interfaces.controller_interface.CrowControllerInterfaceBase#

class CrowControllerInterfaceBase[source]#

Bases: object

The base class for all controller interfaces.

The convention of the controller interface is that it takes a controller name and a list of arguments, and then calls the corresponding controller function with the arguments. If the execution fails, it should raise an exception.

Methods

register_controller(name, function)

reset()

step(action, **kwargs)

step_internal(name, *args, **kwargs)

step_without_error(action, **kwargs)

Attributes

__init__(executor=None)[source]#
Parameters:

executor (CrowExecutor | None)

__new__(**kwargs)#
register_controller(name, function)[source]#
Parameters:
reset()[source]#
step(action, **kwargs)[source]#
Parameters:

action (CrowControllerApplier)

Return type:

None

step_internal(name, *args, **kwargs)[source]#
Parameters:

name (str)

Return type:

None

step_without_error(action, **kwargs)[source]#
Parameters:

action (CrowControllerApplier)

Return type:

bool

property controllers: Dict[str, Callable]#
property executor: CrowExecutor | None#