21using namespace yarp::os;
78 return (it!=
neighbors.end()?it->second:NULL);
An abstract class that provides basic events handling.
std::string getName() const
Retrieve the node name.
EventCallback()
Constructor.
An abstract class that exposes the basic methods for the handling of data acquired through the attach...
std::map< std::string, EventCallback * > callbacks
std::map< std::string, Node * > neighbors
std::map< std::string, Sensor * > sensors
void addNeighbor(Node &node)
Add a node as a neighbor for the process of building the architecture.
bool removeNeighbor(const std::string &name)
Remove a node previously added as neighbor.
void attachCallback(EventCallback &callback)
Attach an event callback to the node.
void attachSensor(Sensor &sensor)
Attach a sensor object to the node.
Node * getNeighbor(const std::string &name) const
Retrieve a neighbor node by its name.
std::string getName() const
Retrieve the node name.
An abstract class that exposes the basic methods for sensors handling.
std::string getName() const
Retrieve the sensor name.