fastcs.controllers.controller_api#
Members
Attributes, Methods and sub APIs of a Controller to expose in a Transport |
- class fastcs.controllers.controller_api.ControllerAPI(path: list[str] = <factory>, attributes: dict[str, ~fastcs.attributes.attribute.Attribute] = <factory>, command_methods: dict[str, ~fastcs.methods.command.Command] = <factory>, scan_methods: dict[str, ~fastcs.methods.scan.Scan] = <factory>, sub_apis: dict[str, ~fastcs.controllers.controller_api.ControllerAPI] = <factory>, description: str | None = None)[source]#
Attributes, Methods and sub APIs of a Controller to expose in a Transport
This provides a view of the
Attributes,Methods of aController- and its sub controllers - to theTransportlayer, without direct access to its internal state.- sub_apis: dict[str, ControllerAPI]#
The
ControllerAPIs of the sub controllers of theController
- walk_api() Iterator[ControllerAPI][source]#
Walk through all the nested
ControllerAPIs of thisControllerAPI.Yields the
ControllerAPIs from a depth-first traversal of the tree, includingself.