navigate.model.plugins_model.PluginsModel
- class navigate.model.plugins_model.PluginsModel
Bases:
object
Plugins manager in the model side
- __init__() → None
Initialize plugins manager class
Methods
__init__
()Initialize plugins manager class
Load plugins
load_plugins_through_manager
(plugin_manager)Load plugins through plugin manager
Register acquisition mode
register_device
(device, module)Register device
register_feature_list
(plugin_feature_list, ...)Register feature list
Attributes
devices dictionary
plugin acquisition modes dictionary
feature lists path
- load_plugins() → tuple
Load plugins
- load_plugins_through_manager(plugin_manager: Union[PluginFileManager, PluginPackageManager]) → None
Load plugins through plugin manager
- Parameters:
plugin_manager (PluginFileManager or PluginPackageManager) –
PluginFileManager
PluginPackageManager
- register_acquisition_mode(acquisition_mode_name, module)
Register acquisition mode
- Parameters:
acquisition_mode_name (str) – The name of an acquisition mode
module (module) – acquisition_mode module
- register_device(device, module)
Register device
- Parameters:
device (str) – device type name
module (module) – device_startup_functions module
- register_feature_list(plugin_feature_list, module)
Register feature list
- Parameters:
plugin_feature_list (str) – plugin_feature_list path string
module (module) – feature list module
- devices_dict
devices dictionary
- Type:
dict
- feature_lists_path
feature lists path
- Type:
str
- plugin_acquisition_modes
plugin acquisition modes dictionary
- Type:
dict