malcolm.modules.builtin.controllers¶
-
class
malcolm.modules.builtin.controllers.BasicController(mri: Anno(name='AMri', typ=<class 'str'>, description='The Malcolm Resource Identifier for the Block produced'), description: Anno(name='ADescription', typ=<class 'str'>, description='Description of the Block produced by the controller') = '')[source]¶ Basic Controller with Health and Title updating
Parameters:
-
class
malcolm.modules.builtin.controllers.ClientComms(mri: Anno(name='AMri', typ=<class 'str'>, description='The Malcolm Resource Identifier for the Block produced'), description: Anno(name='ADescription', typ=<class 'str'>, description='Description of the Block produced by the controller') = '')[source]¶ Abstract class for dispatching requests to a server and responses to a method
Parameters: -
sync_proxy(mri, block)[source]¶ Abstract method telling the ClientComms to sync this proxy Block with its remote counterpart. Should wait until it is connected
Parameters: - mri (str) – The mri for the remote block
- block (BlockModel) – The local proxy Block to keep in sync
-
-
class
malcolm.modules.builtin.controllers.ManagerController(mri: Anno(name='AMri', typ=<class 'str'>, description='The Malcolm Resource Identifier for the Block produced'), config_dir: Anno(name='AConfigDir', typ=<class 'str'>, description='Directory to write save/load config to'), template_designs: Anno(name='ATemplateDesigns', typ=<class 'str'>, description='A directory of templates with which to initially populate designs Attribute. These cannot be saved over.') = '', initial_design: Anno(name='AInitialDesign', typ=<class 'str'>, description='Design to load at init') = '', use_git: Anno(name='AUseGit', typ=<class 'bool'>, description='Use git to manage to saved config files') = True, description: Anno(name='ADescription', typ=<class 'str'>, description='Description of the Block produced by the controller') = '')[source]¶ RunnableDevice implementer that also exposes GUI for child parts
Parameters: - mri (str) – The Malcolm Resource Identifier for the Block produced
- config_dir (str) – Directory to write save/load config to
- template_designs (str) – A directory of templates with which to initially populate designs Attribute. These cannot be saved over.
- initial_design (str) – Design to load at init
- use_git (bool) – Use git to manage to saved config files
- description (str) – Description of the Block produced by the controller
-
class
malcolm.modules.builtin.controllers.ProxyController(mri: Anno(name='AMri', typ=<class 'str'>, description='The Malcolm Resource Identifier for the Block produced'), comms: Anno(name='AComms', typ=<class 'str'>, description='Malcolm resource id of client comms'), publish: Anno(name='APublish', typ=<class 'bool'>, description='Whether to re-publish this block via server comms') = False)[source]¶ Sync a local block with a given remote block
Parameters:
-
class
malcolm.modules.builtin.controllers.ServerComms(mri: Anno(name='AMri', typ=<class 'str'>, description='The Malcolm Resource Identifier for the Block produced'), description: Anno(name='ADescription', typ=<class 'str'>, description='Description of the Block produced by the controller') = '')[source]¶ Abstract class for dealing with requests from outside
Parameters:
-
class
malcolm.modules.builtin.controllers.StatefulController(mri: Anno(name='AMri', typ=<class 'str'>, description='The Malcolm Resource Identifier for the Block produced'), description: Anno(name='ADescription', typ=<class 'str'>, description='Description of the Block produced by the controller') = '')[source]¶ A controller that implements
StatefulStatesParameters: