Skip to main content

AnalogTimestampOffsetsMultiComputer

AnalogTimestampOffsetsMultiComputer

Multi-output computer that samples an analog source at timestamp offsets. More…

#include <AnalogTimestampOffsetsMultiComputer.h>

Inherits from IMultiColumnComputer< double >

Public Functions

Name
AnalogTimestampOffsetsMultiComputer(std::shared_ptr< IAnalogSource > source, std::string sourceName, std::vector< int > offsets)
Construct the computer with a source and explicit offsets.
virtual std::pair< std::vector< std::vector< double > >, ColumnEntityIds > computeBatch(ExecutionPlan const & plan) const override
Compute all output columns for the provided plan.
std::vector< std::string > getOutputNames() const override
Suffix names for each offset output.
virtual std::string getSourceDependency() const override
Source dependency name for this computation.
virtual std::vector< std::string > getDependencies() const override
Additional column dependencies (none).

Additional inherited members

Public Functions inherited from IMultiColumnComputer< double >

Name
virtual ~IMultiColumnComputer() =default
IMultiColumnComputer(IMultiColumnComputer const & ) =delete
IMultiColumnComputer & operator=(IMultiColumnComputer const & ) =delete
IMultiColumnComputer(IMultiColumnComputer && ) =delete
IMultiColumnComputer & operator=(IMultiColumnComputer && ) =delete
virtual EntityIdStructure getEntityIdStructure() const
virtual ColumnEntityIds computeColumnEntityIds(ExecutionPlan const & plan) const
Gets EntityIDs for each row in the computed columns.
virtual std::vector< EntityId > computeCellEntityIds(ExecutionPlan const & plan, size_t row_index) const
Computes EntityIDs for a specific row.

Protected Functions inherited from IMultiColumnComputer< double >

Name
IMultiColumnComputer() =default

Detailed Description

class AnalogTimestampOffsetsMultiComputer;

Multi-output computer that samples an analog source at timestamp offsets.

Source type: IAnalogSource Selector type: Timestamp Output type: double

Given a timestamp-based ExecutionPlan, this computer produces one output column per configured offset. For each row timestamp t and for each integer offset o, the output value is the analog sample at time index (t + o), with cross-timeframe conversion handled by the analog source adapter.

Public Functions Documentation

function AnalogTimestampOffsetsMultiComputer

inline AnalogTimestampOffsetsMultiComputer(
    std::shared_ptr< IAnalogSource > source,
    std::string sourceName,
    std::vector< int > offsets
)

Construct the computer with a source and explicit offsets.

Parameters:

  • source Shared pointer to the analog source.
  • sourceName Name to use for dependency lookup/caching.
  • offsets Integer offsets relative to the row timestamps; one column per offset.

function computeBatch

virtual std::pair< std::vector< std::vector< double > >, ColumnEntityIds > computeBatch(
    ExecutionPlan const & plan
) const override

Compute all output columns for the provided plan.

Parameters:

  • plan Execution plan (Timestamp or entity-expanded rows supported).

Return: Vector of columns; size equals number of offsets.

Reimplements: IMultiColumnComputer::computeBatch

function getOutputNames

std::vector< std::string > getOutputNames() const override

Suffix names for each offset output.

Return: Vector like {“.t-2”, “.t-1”, “.t+0”, “.t+1”, …}

function getSourceDependency

inline virtual std::string getSourceDependency() const override

Source dependency name for this computation.

Reimplements: IMultiColumnComputer::getSourceDependency

function getDependencies

inline virtual std::vector< std::string > getDependencies() const override

Additional column dependencies (none).

Reimplements: IMultiColumnComputer::getDependencies


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