iCub-main
|
#include <IEventListener.h>
Public Member Functions | |
IEventListener () | |
Constructor. | |
virtual | ~IEventListener () |
Destructor (empty). | |
virtual void | handle (IEvent &e) |
Default handler for any Event, which means the Event is ignored. | |
virtual void | handle (TrainEvent &e) |
Handling of a TrainEvent. | |
virtual void | handle (PredictEvent &e) |
Handling of a PredictEvent. | |
virtual IEventListener * | clone ()=0 |
Asks the event listener to return a new object of its type. | |
std::string | getName () const |
Retrieve the name of this IEventListener. | |
void | setName (std::string name) |
Set the name of this IEventListener. | |
virtual void | start () |
Starts the IEventListener, such that it can do perform initialization (e.g. | |
virtual bool | isEnabled () |
Tells whether dispatching of events is enabled. | |
virtual void | setEnabled (bool val) |
Enables or disables dispatching of events. | |
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. | |
Protected Attributes | |
std::string | name |
The name of this type of EventListener. | |
bool | enabled |
Boolean switch to disable or enable event the listener. | |
Definition at line 43 of file IEventListener.h.
iCub::learningmachine::IEventListener::IEventListener | ( | ) |
Constructor.
Definition at line 27 of file IEventListener.cpp.
|
inlinevirtual |
Destructor (empty).
Definition at line 64 of file IEventListener.h.
|
pure virtual |
Asks the event listener to return a new object of its type.
Implemented in iCub::learningmachine::PredictEventListener, and iCub::learningmachine::TrainEventListener.
|
virtual |
Reimplemented in iCub::learningmachine::IPortEventListener.
Definition at line 32 of file IEventListener.cpp.
|
inlinevirtual |
Asks the event listener to return a string containing information on its configuration so far.
Reimplemented in iCub::learningmachine::IPortEventListener.
Definition at line 144 of file IEventListener.h.
|
inline |
Retrieve the name of this IEventListener.
Definition at line 96 of file IEventListener.h.
|
inlinevirtual |
Default handler for any Event, which means the Event is ignored.
e | the base event |
Definition at line 70 of file IEventListener.h.
|
inlinevirtual |
Handling of a PredictEvent.
e | the PredictEvent |
Reimplemented in iCub::learningmachine::PredictEventListener.
Definition at line 82 of file IEventListener.h.
|
inlinevirtual |
Handling of a TrainEvent.
e | the TrainEvent |
Reimplemented in iCub::learningmachine::TrainEventListener.
Definition at line 76 of file IEventListener.h.
|
inlinevirtual |
Tells whether dispatching of events is enabled.
Definition at line 120 of file IEventListener.h.
|
inlinevirtual |
Enables or disables dispatching of events.
val | the desired state |
Definition at line 129 of file IEventListener.h.
|
inline |
Set the name of this IEventListener.
name | the new name |
Definition at line 105 of file IEventListener.h.
|
inlinevirtual |
Starts the IEventListener, such that it can do perform initialization (e.g.
opening ports).
Reimplemented in iCub::learningmachine::IPortEventListener.
Definition at line 113 of file IEventListener.h.
|
protected |
Boolean switch to disable or enable event the listener.
Definition at line 53 of file IEventListener.h.
|
protected |
The name of this type of EventListener.
Definition at line 48 of file IEventListener.h.