Public Member Functions | Protected Member Functions | List of all members
iCub::learningmachine::PredictEventListener Class Reference

#include <PredictEventListener.h>

+ Inheritance diagram for iCub::learningmachine::PredictEventListener:

Public Member Functions

 PredictEventListener (std::string pp="/lm/event/predict")
 Constructor. More...
void handle (PredictEvent &e)
 Handling of a PredictEvent. More...
PredictEventListenerclone ()
 Asks the event listener to return a new object of its type. More...
- Public Member Functions inherited from iCub::learningmachine::IPortEventListener
 IPortEventListener (std::string pp)
 Constructor. More...
 IPortEventListener (const IPortEventListener &other)
 Copy Constructor. More...
virtual ~IPortEventListener ()
 Destructor. More...
virtual IPortEventListeneroperator= (const IPortEventListener &other)
 Assignment operator. More...
virtual void start ()
 Starts the IEventListener. More...
virtual bool configure (yarp::os::Searchable &config)
virtual std::string getInfo ()
 Asks the event listener to return a string containing information on its configuration so far. More...
- Public Member Functions inherited from iCub::learningmachine::IEventListener
 IEventListener ()
 Constructor. More...
virtual ~IEventListener ()
 Destructor (empty). More...
virtual void handle (IEvent &e)
 Default handler for any Event, which means the Event is ignored. More...
virtual void handle (TrainEvent &e)
 Handling of a TrainEvent. More...
std::string getName () const
 Retrieve the name of this IEventListener. More...
void setName (std::string name)
 Set the name of this IEventListener. More...
virtual bool isEnabled ()
 Tells whether dispatching of events is enabled. More...
virtual void setEnabled (bool val)
 Enables or disables dispatching of events. More...

Protected Member Functions

void vectorToBottle (const yarp::sig::Vector &vec, yarp::os::Bottle &bot)
- Protected Member Functions inherited from iCub::learningmachine::IPortEventListener
void resetPort (std::string portName)
 Resets the port and opens it at the specified name. More...

Additional Inherited Members

- Protected Attributes inherited from iCub::learningmachine::IPortEventListener
yarp::os::Port port
 The outgoing port for the events. More...
bool verbose
 Verbosity controls whether events are printed to standard output. More...
std::string portPrefix
 A prefix path for the ports that will be registered. More...
- Protected Attributes inherited from iCub::learningmachine::IEventListener
std::string name
 The name of this type of EventListener. More...
bool enabled
 Boolean switch to disable or enable event the listener. More...

Detailed Description

See also
Arjan Gijsberts

Definition at line 39 of file PredictEventListener.h.

Constructor & Destructor Documentation

◆ PredictEventListener()

iCub::learningmachine::PredictEventListener::PredictEventListener ( std::string  pp = "/lm/event/predict")


ppdefault port prefix

Definition at line 53 of file PredictEventListener.h.

Member Function Documentation

◆ clone()

PredictEventListener* iCub::learningmachine::PredictEventListener::clone ( )

Asks the event listener to return a new object of its type.

a fresh instance of the current class

Implements iCub::learningmachine::IEventListener.

Definition at line 65 of file PredictEventListener.h.

◆ handle()

void iCub::learningmachine::PredictEventListener::handle ( PredictEvent e)

Handling of a PredictEvent.

ethe PredictEvent

Reimplemented from iCub::learningmachine::IEventListener.

Definition at line 28 of file PredictEventListener.cpp.

◆ vectorToBottle()

void iCub::learningmachine::PredictEventListener::vectorToBottle ( const yarp::sig::Vector &  vec,
yarp::os::Bottle &  bot 

Definition at line 41 of file PredictEventListener.h.

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