
Public Member Functions | |
| bool | enabled (self) |
| Gets whether the module is currently enabled. | |
| None | enabled (self, bool value) |
| Sets the enabled state of the module. | |
| str | type (self) |
| Returns the type identifier of the module. | |
| Any | process (self, Any data) |
| Processes input data and returns the result. | |
| None | reset_to_default (self) |
| Resets the module to its default state. | |
Interface for a module used within a pipeline.
Modules must support enabling/disabling, processing input, and serialization.
| bool enabled | ( | self | ) |
Gets whether the module is currently enabled.
| None enabled | ( | self, | |
| bool | value ) |
Sets the enabled state of the module.
| value | True to enable the module, False to disable it. |
| Any process | ( | self, | |
| Any | data ) |
Processes input data and returns the result.
This function is called by the pipeline to process a unit of data.
| data | The input data to be processed. |
| None reset_to_default | ( | self | ) |
Resets the module to its default state.
The enabled state is not reset.
| str type | ( | self | ) |
Returns the type identifier of the module.
This should be a unique string identifying the specific implementation of the module.