YARP
Yet Another Robot Platform
MonitorLua Class Reference

#include <portmonitor_carrier/lua/MonitorLua.h>

+ Inheritance diagram for MonitorLua:

Public Member Functions

 MonitorLua ()
 Class MonitorLua. More...
 
 ~MonitorLua () override
 
bool load (const yarp::os::Property &options) override
 
bool setParams (const yarp::os::Property &params) override
 
bool getParams (yarp::os::Property &params) override
 
bool acceptData (yarp::os::Things &thing) override
 
yarp::os::ThingsupdateData (yarp::os::Things &thing) override
 
yarp::os::ThingsupdateReply (yarp::os::Things &thing) override
 
bool peerTrigged () override
 
bool canAccept () override
 
bool setAcceptConstraint (const char *constraint) override
 
const char * getAcceptConstraint () override
 
bool hasAccept () override
 
bool hasUpdate () override
 
bool hasUpdateReply () override
 

Public Attributes

MonitorTriggertrigger
 

Detailed Description

Definition at line 635 of file MonitorLua.cpp.

Constructor & Destructor Documentation

◆ MonitorLua()

MonitorLua::MonitorLua ( )

Class MonitorLua.

Registring extra functions for lua :

  • PortMonitor.setEvent()
  • PortMonitor.unsetEvent()
  • PortMonitor.setConstraint()
  • PortMonitor.getConstraint()
  • portMonitor.setTrigInterval()

Definition at line 23 of file MonitorLua.cpp.

◆ ~MonitorLua()

MonitorLua::~MonitorLua ( )
override

Definition at line 42 of file MonitorLua.cpp.

Member Function Documentation

◆ acceptData()

bool MonitorLua::acceptData ( yarp::os::Things thing)
override

Definition at line 146 of file MonitorLua.cpp.

◆ canAccept()

bool MonitorLua::canAccept ( )
override

following piece of code replaces each event symbolic name with a boolean value based on their existence in MonitorEventRecord

Definition at line 404 of file MonitorLua.cpp.

◆ getAcceptConstraint()

const char* MonitorLua::getAcceptConstraint ( )
inlineoverride

Definition at line 48 of file MonitorLua.h.

◆ getParams()

bool MonitorLua::getParams ( yarp::os::Property params)
override

Definition at line 311 of file MonitorLua.cpp.

◆ hasAccept()

bool MonitorLua::hasAccept ( )
inlineoverride

Definition at line 52 of file MonitorLua.h.

◆ hasUpdate()

bool MonitorLua::hasUpdate ( )
inlineoverride

Definition at line 56 of file MonitorLua.h.

◆ hasUpdateReply()

bool MonitorLua::hasUpdateReply ( )
inlineoverride

Definition at line 60 of file MonitorLua.h.

◆ load()

bool MonitorLua::load ( const yarp::os::Property options)
override

TODO: make PortMonitor's element read only!

Definition at line 62 of file MonitorLua.cpp.

◆ peerTrigged()

bool MonitorLua::peerTrigged ( )
override

Definition at line 358 of file MonitorLua.cpp.

◆ setAcceptConstraint()

bool MonitorLua::setAcceptConstraint ( const char *  constraint)
inlineoverride

Definition at line 39 of file MonitorLua.h.

◆ setParams()

bool MonitorLua::setParams ( const yarp::os::Property params)
override

Definition at line 278 of file MonitorLua.cpp.

◆ updateData()

yarp::os::Things & MonitorLua::updateData ( yarp::os::Things thing)
override

Definition at line 184 of file MonitorLua.cpp.

◆ updateReply()

yarp::os::Things & MonitorLua::updateReply ( yarp::os::Things thing)
override

Definition at line 231 of file MonitorLua.cpp.

Member Data Documentation

◆ trigger

MonitorTrigger* MonitorLua::trigger

Definition at line 73 of file MonitorLua.h.


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