CCA

Generic NemoMath Transformation Component. More...

#include <NemoTransformation.h>

Inheritance diagram for cca::NemoTransformation< T >:
Collaboration diagram for cca::NemoTransformation< T >:

List of all members.

Public Member Functions

void onProcess ()
 Processing.
 ~NemoTransformation ()

Static Public Member Functions

static NodePtr create (const std::string &nodename, VectorMapping mapping)
 Constructing a Transformation component from a given nemo::Mapping.

Protected Member Functions

 NemoTransformation (const std::string &nodename, VectorMapping mappng)

Private Attributes

VectorMapping mapping

Friends

std::ostream & operator<< (std::ostream &os, const NemoTransformation< T > &node)
 Stream operator.

Detailed Description

template<class T>
class cca::NemoTransformation< T >

Generic NemoMath Transformation Component.

Todo:

Test if template type is a DataTransferObject/ContainingDoubles

Specify, how this transformation behaves with incoming data of wrong dimension.

Definition at line 51 of file NemoTransformation.h.


Constructor & Destructor Documentation

template<class T>
cca::NemoTransformation< T >::~NemoTransformation ( ) [inline]

Definition at line 97 of file NemoTransformation.h.

template<class T>
cca::NemoTransformation< T >::NemoTransformation ( const std::string &  nodename,
VectorMapping  mappng 
) [inline, protected]
Parameters:
nodenameName of this transformation component
mappingVector-to-Vector-Mapping to be processed on incoming data

Definition at line 106 of file NemoTransformation.h.

References cca::Node::setProcessingStrategy(), and cca::Moderate::timeout().

Here is the call graph for this function:


Member Function Documentation

template<class T>
static NodePtr cca::NemoTransformation< T >::create ( const std::string &  nodename,
VectorMapping  mapping 
) [inline, static]

Constructing a Transformation component from a given nemo::Mapping.

Parameters:
nodenameName of this transformation component
mappingVector-to-Vector-Mapping to be processed on incoming data
Returns:

Definition at line 78 of file NemoTransformation.h.

template<class T>
void cca::NemoTransformation< T >::onProcess ( ) [inline, virtual]

Processing.

Takes the incoming DTO, extracts a nemo::RealVector, processes configured nemo::Mapping and publishes the resulting nemo::RealVector.

Todo:
Not too generic yet (e.g. make it dimension-independent.

Implements cca::Node.

Definition at line 60 of file NemoTransformation.h.

References cca::NemoTransformation< T >::mapping.


Friends And Related Function Documentation

template<class T>
std::ostream& operator<< ( std::ostream &  os,
const NemoTransformation< T > &  node 
) [friend]

Stream operator.

Parameters:
os
node
Returns:

Definition at line 89 of file NemoTransformation.h.


Member Data Documentation

template<class T>
VectorMapping cca::NemoTransformation< T >::mapping [private]

Definition at line 117 of file NemoTransformation.h.

Referenced by cca::NemoTransformation< T >::onProcess().


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