1from __future__
import annotations
3from abc
import abstractmethod
12 Interface for a module used within a pipeline.
14 Modules must support enabling/disabling, processing input, and serialization.
16 @since ids_peak_common 1.1
17 @ingroup ids_peak_common_python_pipeline_modules
25 Gets whether the module is currently enabled.
27 @return True if the module is enabled, False otherwise.
29 @since ids_peak_common 1.1
38 Sets the enabled state of the module.
40 @param value: True to enable the module, False to disable it.
42 @since ids_peak_common 1.1
51 Returns the type identifier of the module.
53 This should be a unique string identifying the specific implementation
56 @return A string identifying the module type.
58 @since ids_peak_common 1.1
66 Processes input data and returns the result.
68 This function is called by the pipeline to process a unit of data.
70 @param data: The input data to be processed.
72 @return The processed input.
74 @since ids_peak_common 1.1
82 Resets the module to its default state. The enabled state is not reset.
84 @since ids_peak_common 1.1
Interface for a module used within a pipeline.
None reset_to_default(self)
Resets the module to its default state.
str type(self)
Returns the type identifier of the module.
Any process(self, Any data)
Processes input data and returns the result.
bool enabled(self)
Gets whether the module is currently enabled.
Interface for objects that can be serialized to and deserialized from an archive.