IDS peak ICV v1.6.0
Loading...
Searching...
No Matches
IPipeline Class Reference
Inheritance diagram for IPipeline:

Public Member Functions

None export_settings_to_file (self, str file_path)
 Saves the current settings of the pipeline and its modules to a file.
 
None import_settings_from_file (self, str file_path)
 Loads the settings of the pipeline and its modules from a file.
 
str export_settings_to_string (self)
 Returns the current settings of the pipeline and its modules as a string.
 
None import_settings_from_string (self, str settings)
 Loads settings for the pipeline and its modules from a string.
 
None reset_to_default (self)
 Resets the pipeline and its modules to their default state.
 
Any process (self, Any data)
 Processes the input data through all pipeline modules and returns the result.
 
str type (self)
 Returns the type identifier of the pipeline.
 

Protected Member Functions

Sequence[IModule] _modules (self)
 Retrieves the sequence of all modules in the pipeline, in execution order.
 

Detailed Description

Interface defining the structure and behavior of a processing pipeline.

A pipeline is composed of multiple modules chained together in a defined order. When an input is processed, each module's process function is called sequentially, and the final result is returned.

Since
ids_peak_common 1.1

Member Function Documentation

◆ _modules()

Sequence[IModule] _modules ( self)
protected

Retrieves the sequence of all modules in the pipeline, in execution order.

Returns
A sequence of modules.

◆ export_settings_to_file()

None export_settings_to_file ( self,
str file_path )

Saves the current settings of the pipeline and its modules to a file.

Parameters
file_pathPath to the file where the settings should be saved.

◆ export_settings_to_string()

str export_settings_to_string ( self)

Returns the current settings of the pipeline and its modules as a string.

Returns
A string representation of the pipeline settings.

◆ import_settings_from_file()

None import_settings_from_file ( self,
str file_path )

Loads the settings of the pipeline and its modules from a file.

Parameters
file_pathPath to the file from which settings should be loaded.

◆ import_settings_from_string()

None import_settings_from_string ( self,
str settings )

Loads settings for the pipeline and its modules from a string.

Parameters
settingsString containing serialized pipeline settings.

◆ process()

Any process ( self,
Any data )

Processes the input data through all pipeline modules and returns the result.

The input data is passed through each module in sequence.

Parameters
dataThe input data to process.
Returns
The processed input.

◆ reset_to_default()

None reset_to_default ( self)

Resets the pipeline and its modules to their default state.

◆ type()

str type ( self)

Returns the type identifier of the pipeline.

This is a unique string used to identify the specific pipeline implementation.

Returns
A string representing the pipeline type.