fastcs.cs_methods#
Members
A |
|
A Command callback that is bound and can be called without |
|
Generic |
|
Generic base class for all FastCS Controller methods. |
|
Generic base class for all |
|
A Put callback that is bound and can be called without |
|
A |
|
A Scan callback that is bound and can be called without |
|
A wrapper of an unbound |
|
A Command callback that is unbound and must be called with a |
|
A Put callback that is unbound and must be called with a |
|
A wrapper of an unbound |
|
A Scan callback that is unbound and must be called with a |
- fastcs.cs_methods.MethodCallback#
Generic base class for all
Controllermethods
- class fastcs.cs_methods.Controller_T#
Generic
Controllerclass that an unbound method must be called with asselfalias of TypeVar(‘Controller_T’, bound=
BaseController)
- fastcs.cs_methods.UnboundCommandCallback#
A Command callback that is unbound and must be called with a
Controllerinstancealias of
Callable[[Controller_T],Coroutine[None,None,None]]
- fastcs.cs_methods.UnboundScanCallback#
A Scan callback that is unbound and must be called with a
Controllerinstancealias of
Callable[[Controller_T],Coroutine[None,None,None]]
- fastcs.cs_methods.UnboundPutCallback#
A Put callback that is unbound and must be called with a
Controllerinstancealias of
Callable[[Controller_T,Any],Coroutine[None,None,None]]
- fastcs.cs_methods.CommandCallback#
A Command callback that is bound and can be called without
self
- fastcs.cs_methods.ScanCallback#
A Scan callback that is bound and can be called without
self
- fastcs.cs_methods.PutCallback#
A Put callback that is bound and can be called without
self
- class fastcs.cs_methods.Method(fn: Callable[[...], Coroutine[None, None, None]], *, group: str | None = None)[source]#
Generic base class for all FastCS Controller methods.
- class fastcs.cs_methods.Command(fn: Callable[[], Coroutine[None, None, None]], *, group: str | None = None)[source]#
A
ControllerMethodthat performs a single action when called.This class contains a function that is bound to a specific
Controllerinstance and is callable outside of the class context, without an explicitselfparameter. Calling an instance of this class will call the boundControllermethod.
- class fastcs.cs_methods.Scan(fn: Callable[[], Coroutine[None, None, None]], period: float)[source]#
A
ControllerMethodthat will be called periodically in the background.This class contains a function that is bound to a specific
Controllerinstance and is callable outside of the class context, without an explicitselfparameter. Calling an instance of this class will call the boundControllermethod.
- class fastcs.cs_methods.UnboundCommand(fn: Callable[[Controller_T], Coroutine[None, None, None]], *, group: str | None = None)[source]#
A wrapper of an unbound
Controllermethod to be bound into aCommand.This generic class stores an unbound
Controllermethod - effectively a function that takes an instance of a specificControllertype (Controller_T). Instances of this class can be added atControllerdefinition, either manually or with use of thecommandwrapper, to register the method to be included in the API of theController. When theControlleris instantiated, these instances will be bound to the instance, creating aCommandinstance.
- class fastcs.cs_methods.UnboundScan(fn: Callable[[Controller_T], Coroutine[None, None, None]], period: float)[source]#
A wrapper of an unbound
Controllermethod to be bound into aScan.This generic class stores an unbound
Controllermethod - effectively a function that takes an instance of a specificControllertype (Controller_T). Instances of this class can be added atControllerdefinition, either manually or with use of thescanwrapper, to register the method to be included in the API of theController. When theControlleris instantiated, these instances will be bound to the instance, creating aScaninstance.