Skip to main content

IntervalThresholdOperation

IntervalThresholdOperation

#include <analog_interval_threshold.hpp>

Inherits from TransformOperation

Public Functions

Name
virtual std::string getName() const override
virtual std::type_index getTargetInputTypeIndex() const override
virtual bool canApply(DataTypeVariant const & dataVariant) const override
Checks if this operation can be applied to the given data variant.
virtual std::unique_ptr< TransformParametersBase > getDefaultParameters() const override
virtual DataTypeVariant execute(DataTypeVariant const & dataVariant, TransformParametersBase const * transformParameters) override
Executes the interval detection using data from the variant.
virtual DataTypeVariant execute(DataTypeVariant const & dataVariant, TransformParametersBase const * transformParameters, ProgressCallback progressCallback) override
Executes the interval detection with progress reporting.

Additional inherited members

Public Functions inherited from TransformOperation

Name
virtual ~TransformOperation() =default

Public Functions Documentation

function getName

virtual std::string getName() const override

Reimplements: TransformOperation::getName

function getTargetInputTypeIndex

virtual std::type_index getTargetInputTypeIndex() const override

Reimplements: TransformOperation::getTargetInputTypeIndex

function canApply

virtual bool canApply(
    DataTypeVariant const & dataVariant
) const override

Checks if this operation can be applied to the given data variant.

Parameters:

  • dataVariant The variant holding a shared_ptr to the data object.

Return: True if the variant holds a non-null AnalogTimeSeries shared_ptr, false otherwise.

Reimplements: TransformOperation::canApply

function getDefaultParameters

virtual std::unique_ptr< TransformParametersBase > getDefaultParameters() const override

Reimplements: TransformOperation::getDefaultParameters

function execute

virtual DataTypeVariant execute(
    DataTypeVariant const & dataVariant,
    TransformParametersBase const * transformParameters
) override

Executes the interval detection using data from the variant.

Parameters:

Return: DataTypeVariant containing a std::shared_ptr on success, or an empty variant on failure (e.g., type mismatch, null pointer, calculation failure).

Reimplements: TransformOperation::execute

function execute

virtual DataTypeVariant execute(
    DataTypeVariant const & dataVariant,
    TransformParametersBase const * transformParameters,
    ProgressCallback progressCallback
) override

Executes the interval detection with progress reporting.

Parameters:

  • dataVariant The variant holding a non-null shared_ptr to the AnalogTimeSeries object.
  • transformParameters Parameters for the interval detection (IntervalThresholdParams).
  • progressCallback Function called with progress percentage (0-100) during computation.

Return: DataTypeVariant containing a std::shared_ptr on success, or an empty variant on failure (e.g., type mismatch, null pointer, calculation failure).

Reimplements: TransformOperation::execute


Updated on 2026-11-13 at 20:25:40 +0000