|
iCub-main
|
#include <PredictEvent.h>
Inheritance diagram for iCub::learningmachine::PredictEvent:Public Member Functions | |
| PredictEvent (const yarp::sig::Vector &input, const Prediction &predicted) | |
| Constructor. | |
| virtual | ~PredictEvent () |
| Destructor (empty). | |
| virtual void | visit (IEventListener &listener) |
| Causes the Event to visit an EventListener. | |
| virtual std::string | toString () |
| Returns a string representation of the Event. | |
| yarp::sig::Vector & | getInput () |
| Accessor for the vector of inputs. | |
| Prediction & | getPredicted () |
| Accessor for the prediction. | |
Protected Attributes | |
| yarp::sig::Vector | input |
| Vector of inputs. | |
| Prediction | predicted |
| Vector of predicted outputs. | |
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.