19 #ifndef LM_IEVENTLISTENER__
20 #define LM_IEVENTLISTENER__
28 namespace learningmachine {
136 virtual bool configure(yarp::os::Searchable& config);
145 return this->
getName() + (this->
isEnabled() ?
" (enabled)" :
" (disabled)");
virtual std::string getInfo()
Asks the event listener to return a string containing information on its configuration so far.
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 handle(TrainEvent &e)
Handling of a TrainEvent.
bool enabled
Boolean switch to disable or enable event the listener.
virtual IEventListener * clone()=0
Asks the event listener to return a new object of its type.
std::string name
The name of this type of EventListener.
IEventListener()
Constructor.
virtual void handle(PredictEvent &e)
Handling of a PredictEvent.
virtual ~IEventListener()
Destructor (empty).
virtual bool configure(yarp::os::Searchable &config)
void setName(std::string name)
Set the name of this IEventListener.
virtual void setEnabled(bool val)
Enables or disables dispatching of events.
virtual void handle(IEvent &e)
Default handler for any Event, which means the Event is ignored.
std::string getName() const
Retrieve the name of this IEventListener.
A TrainEvent is raised when the machine handles a training sample.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.