Provides access the collection of available hardware pipelines.
More...
|
|
| config |
| |
|
| device_manager |
| |
|
| command_parser |
| |
|
| pipelines |
| |
Provides access the collection of available hardware pipelines.
This class initializes and manages the collection of loaded hardware pipelines.
| def hwm.hardware.pipelines.manager.PipelineManager.__init__ |
( |
|
self, |
|
|
|
device_manager, |
|
|
|
command_parser |
|
) |
| |
Sets up the pipeline manager.
This constructor sets up the pipeline manager and calls a method that initializes the available pipelines.
- Note
- This class does not load the pipeline configuration file itself. Instead, Configuration is instructed to load it at runtime and this class accesses it via the 'configuration' module. If this class is initialized before the pipeline configuration has been loaded an exception will be raised
- Exceptions
-
| May | pass on exceptions from the pipeline initialization process (see _initialize_pipelines). |
- Parameters
-
| device_manager | A reference to the DeviceManager instance that should be used. |
| command_parser | A reference to a CommandParser that will be used to process pipeline setup commands. |
| def hwm.hardware.pipelines.manager.PipelineManager._initialize_pipelines |
( |
|
self) | |
|
|
private |
Initializes the configured pipelines.
This method initializes all of the configured pipelines (i.e. available in the configuration) and saves their
references.
- Exceptions
-
| Throws | PipelinesAllReadyInitialized if this method is called after pipelines have been initialized. |
| Throws | PipelinesNotDefined if no pipelines are defined in the runtime configuration. |
| May | pass on PipelineSchemaInvalid exceptions if the pipeline configuration doesn't match the defined schema. |
| May | pass on PipelineConfigInvalid exceptions if the pipeline configuration contains other errors. |
| def hwm.hardware.pipelines.manager.PipelineManager._validate_pipeline_schema |
( |
|
self, |
|
|
|
pipeline_configuration |
|
) |
| |
|
private |
Validates the provided pipeline configuration.
This method validates the provided pipeline configuration (loaded from the configuration files) by comparing it
against the defined schema.
- Note
- Each pipeline class may perform additional validations when initialized. This method simply checks the pipeline configuration schema as a whole.
- Exceptions
-
- Parameters
-
| pipeline_configuration | An object containing the pipeline configuration from the YAML configuration files. |
| def hwm.hardware.pipelines.manager.PipelineManager.get_pipeline |
( |
|
self, |
|
|
|
pipeline_id |
|
) |
| |
Returns a reference to the specified pipeline.
- Note
- This method does not perform any pipeline locking. That is managed by the individual pipeline classes and is typically triggered by the session coordinator.
- Exceptions
-
- Parameters
-
| pipeline_id | The ID of the requested pipeline. |
- Returns
- Returns a reference to the specified pipeline object.
The documentation for this class was generated from the following file:
- hwm/hardware/pipelines/manager.py