iCub-main
Public Member Functions | Protected Attributes | List of all members
iCub::learningmachine::TransformPredictProcessor Class Reference

Reply processor helper class for predictions. More...

#include <TransformModule.h>

+ Inheritance diagram for iCub::learningmachine::TransformPredictProcessor:

Public Member Functions

 TransformPredictProcessor (TransformerPortable &tp, yarp::os::Port &p)
 Constructor. More...
 
virtual bool read (yarp::os::ConnectionReader &connection)
 
virtual yarp::os::Port & getOutputPort ()
 Accessor for the prediction output port. More...
 
- Public Member Functions inherited from iCub::learningmachine::ITransformProcessor
 ITransformProcessor (TransformerPortable &tp)
 Constructor. More...
 
virtual TransformerPortablegetTransformerPortable ()
 Retrieve the transformer portable wrapper. More...
 
virtual ITransformergetTransformer ()
 Retrieve the wrapped transformer. More...
 

Protected Attributes

yarp::os::Port & predictRelay_inout
 The relay port. More...
 
- Protected Attributes inherited from iCub::learningmachine::ITransformProcessor
TransformerPortabletransformerPortable
 A reference to a portable transformer. More...
 

Detailed Description

Reply processor helper class for predictions.

This processor receives requests for predictions, transforms the samples and relays the request to the associated port. This architecture allows multiple transformers to be daisy chained, as long as the chain is terminated by a PredictModule.

See also
iCub::learningmachine::PredictModule
iCub::learningmachine::ITransformProcessor
Author
Arjan Gijsberts

Definition at line 86 of file TransformModule.h.

Constructor & Destructor Documentation

◆ TransformPredictProcessor()

iCub::learningmachine::TransformPredictProcessor::TransformPredictProcessor ( TransformerPortable tp,
yarp::os::Port &  p 
)
inline

Constructor.

Parameters
tpa reference to a transformer.

Definition at line 99 of file TransformModule.h.

Member Function Documentation

◆ getOutputPort()

virtual yarp::os::Port& iCub::learningmachine::TransformPredictProcessor::getOutputPort ( )
inlinevirtual

Accessor for the prediction output port.

Returns
a reference to the output port.

Definition at line 112 of file TransformModule.h.

◆ read()

bool iCub::learningmachine::TransformPredictProcessor::read ( yarp::os::ConnectionReader &  connection)
virtual

Definition at line 31 of file TransformModule.cpp.

Member Data Documentation

◆ predictRelay_inout

yarp::os::Port& iCub::learningmachine::TransformPredictProcessor::predictRelay_inout
protected

The relay port.

Definition at line 91 of file TransformModule.h.


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