Class NodeRegistrationInfo
java.lang.Object
org.ros.internal.node.server.master.NodeRegistrationInfo
Information a master needs about a node.
- Author:
- khughes@google.com (Keith M. Hughes)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPublisher(TopicRegistrationInfo publisherTopic) Add a new publisher to the node.voidaddService(ServiceRegistrationInfo service) Add a new service to the node.voidaddSubscriber(TopicRegistrationInfo subscriberTopic) Add a new subscriber to the node.booleanGet all known topics published by the node.Get all known services provided by the node.Get all known topics subscribed to by the node.inthashCode()booleanDoes the node have any registrations of any sort.booleanremovePublisher(TopicRegistrationInfo publisherTopic) Remove a publisher from the node.booleanremoveService(ServiceRegistrationInfo service) Remove a service from the node.booleanremoveSubscriber(TopicRegistrationInfo subscriberTopic) Remove a subscriber from the node.
-
Constructor Details
-
NodeRegistrationInfo
-
-
Method Details
-
getNodeName
- Returns:
- the nodeName
-
getNodeSlaveUri
- Returns:
- the nodeSlaveUri
-
hasRegistrations
public boolean hasRegistrations()Does the node have any registrations of any sort.- Returns:
- {code true} if there are still registrations for the node.
-
getPublishers
Get all known topics published by the node.- Returns:
- an immutable copy of the published topics
-
addPublisher
Add a new publisher to the node.- Parameters:
publisherTopic- the topic information about the publisher to add
-
removePublisher
Remove a publisher from the node.- Parameters:
publisherTopic- the topic information about the publisher to remove- Returns:
trueif the publisher had been there
-
getSubscribers
Get all known topics subscribed to by the node.- Returns:
- an immutable copy of the topics subscribed to
-
addSubscriber
Add a new subscriber to the node.- Parameters:
subscriberTopic- the topic information about the subscriber to add
-
removeSubscriber
Remove a subscriber from the node.- Parameters:
subscriberTopic- the topic information about the subscriber to remove- Returns:
trueif the subscriber had been there
-
getServices
Get all known services provided by the node.- Returns:
- an immutable copy of the topics subscribed to
-
addService
Add a new service to the node.- Parameters:
service- the service to add
-
removeService
Remove a service from the node.- Parameters:
service- the service to remove- Returns:
trueif the subscriber had been there
-
hashCode
public int hashCode() -
equals
-