DerivationFilter Class Reference

The DerivationFilter calculates the derivate of a datafield. More...

#include <ArmarXCore/observers/filters/DerivationFilter.h>

+ Inheritance diagram for DerivationFilter:

Public Member Functions

VariantBasePtr calculate (const Ice::Current &c=Ice::emptyCurrent) const override
 
 DerivationFilter ()
 
armarx::StringFloatDictionary getProperties (const Ice::Current &c=Ice::emptyCurrent) const override
 
ParameterTypeList getSupportedTypes (const Ice::Current &c=Ice::emptyCurrent) const override
 This filter supports: Int, Long, Float, Double. More...
 
void setProperties (const armarx::StringFloatDictionary &newValues, const Ice::Current &c=Ice::emptyCurrent) override
 
- Public Member Functions inherited from DatafieldFilter
bool checkTypeSupport (VariantTypeId variantType, const Ice::Current &c=Ice::emptyCurrent) const override
 Checks whether the given type is supported. More...
 
 DatafieldFilter ()
 
 DatafieldFilter (DatafieldFilter const &filter)
 
const TimeVariantBaseMapgetDataHistory () const
 
armarx::StringFloatDictionary getProperties (const Ice::Current &c=Ice::emptyCurrent) const override
 
VariantBasePtr getValue (const Ice::Current &c=Ice::emptyCurrent) const override
 Retrieves the current, filtered value. More...
 
void setProperties (const armarx::StringFloatDictionary &newValues, const Ice::Current &c=Ice::emptyCurrent) override
 
void update (Ice::Long timestamp, const VariantBasePtr &value, const Ice::Current &c=Ice::emptyCurrent) override
 Adds the given value to the data map, erases old values if maximum size was reached, and calculates the new filtered value. More...
 

Additional Inherited Members

- Protected Attributes inherited from DatafieldFilter
TimeVariantBaseMap dataHistory
 
std::mutex historyMutex
 

Detailed Description

The DerivationFilter calculates the derivate of a datafield.

Definition at line 34 of file DerivationFilter.h.

Constructor & Destructor Documentation

◆ DerivationFilter()

Definition at line 31 of file DerivationFilter.cpp.

Member Function Documentation

◆ calculate()

VariantBasePtr calculate ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 36 of file DerivationFilter.cpp.

◆ getProperties()

StringFloatDictionary getProperties ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 109 of file DerivationFilter.cpp.

◆ getSupportedTypes()

ParameterTypeList getSupportedTypes ( const Ice::Current &  c = Ice::emptyCurrent) const
override

This filter supports: Int, Long, Float, Double.

Returns
List of VariantTypes

Definition at line 99 of file DerivationFilter.cpp.

◆ setProperties()

void setProperties ( const armarx::StringFloatDictionary &  newValues,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 114 of file DerivationFilter.cpp.


The documentation for this class was generated from the following files: