iCub-main
|
#include <PredictEvent.h>
Public Member Functions | |
PredictEvent (const yarp::sig::Vector &input, const Prediction &predicted) | |
Constructor. More... | |
virtual | ~PredictEvent () |
Destructor (empty). More... | |
virtual void | visit (IEventListener &listener) |
Causes the Event to visit an EventListener. More... | |
virtual std::string | toString () |
Returns a string representation of the Event. More... | |
yarp::sig::Vector & | getInput () |
Accessor for the vector of inputs. More... | |
Prediction & | getPredicted () |
Accessor for the prediction. More... | |
Protected Attributes | |
yarp::sig::Vector | input |
Vector of inputs. More... | |
Prediction | predicted |
Vector of predicted outputs. More... | |
Definition at line 45 of file PredictEvent.h.
iCub::learningmachine::PredictEvent::PredictEvent | ( | const yarp::sig::Vector & | input, |
const Prediction & | predicted | ||
) |
Constructor.
input | the vector of inputs |
predicted | the vector of predicted outputs |
Definition at line 27 of file PredictEvent.cpp.
|
inlinevirtual |
Destructor (empty).
Definition at line 69 of file PredictEvent.h.
|
inline |
Accessor for the vector of inputs.
Definition at line 85 of file PredictEvent.h.
|
inline |
Accessor for the prediction.
Definition at line 93 of file PredictEvent.h.
|
virtual |
Returns a string representation of the Event.
Implements iCub::learningmachine::IEvent.
Definition at line 36 of file PredictEvent.cpp.
|
virtual |
Causes the Event to visit an EventListener.
This method is part of the double dispatch mechanism. Child classes need to override this function.
listener | the listener |
Implements iCub::learningmachine::IEvent.
Definition at line 32 of file PredictEvent.cpp.
|
protected |
Vector of inputs.
Definition at line 50 of file PredictEvent.h.
|
protected |
Vector of predicted outputs.
Definition at line 55 of file PredictEvent.h.