|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ros.internal.node.server.master.NodeRegistrationInfo
public class NodeRegistrationInfo
Information a master needs about a node.
Constructor Summary | |
---|---|
NodeRegistrationInfo(GraphName nodeName,
java.net.URI nodeSlaveUri)
|
Method Summary | |
---|---|
void |
addPublisher(TopicRegistrationInfo publisherTopic)
Add a new publisher to the node. |
void |
addService(ServiceRegistrationInfo service)
Add a new service to the node. |
void |
addSubscriber(TopicRegistrationInfo subscriberTopic)
Add a new subscriber to the node. |
boolean |
equals(java.lang.Object obj)
|
GraphName |
getNodeName()
|
java.net.URI |
getNodeSlaveUri()
|
java.util.Set<TopicRegistrationInfo> |
getPublishers()
Get all known topics published by the node. |
java.util.Set<ServiceRegistrationInfo> |
getServices()
Get all known services provided by the node. |
java.util.Set<TopicRegistrationInfo> |
getSubscribers()
Get all known topics subscribed to by the node. |
int |
hashCode()
|
boolean |
hasRegistrations()
Does the node have any registrations of any sort. |
boolean |
removePublisher(TopicRegistrationInfo publisherTopic)
Remove a publisher from the node. |
boolean |
removeService(ServiceRegistrationInfo service)
Remove a service from the node. |
boolean |
removeSubscriber(TopicRegistrationInfo subscriberTopic)
Remove a subscriber from the node. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeRegistrationInfo(GraphName nodeName, java.net.URI nodeSlaveUri)
Method Detail |
---|
public GraphName getNodeName()
public java.net.URI getNodeSlaveUri()
public boolean hasRegistrations()
public java.util.Set<TopicRegistrationInfo> getPublishers()
public void addPublisher(TopicRegistrationInfo publisherTopic)
publisherTopic
- the topic information about the publisher to addpublic boolean removePublisher(TopicRegistrationInfo publisherTopic)
publisherTopic
- the topic information about the publisher to remove
true
if the publisher had been therepublic java.util.Set<TopicRegistrationInfo> getSubscribers()
public void addSubscriber(TopicRegistrationInfo subscriberTopic)
subscriberTopic
- the topic information about the subscriber to addpublic boolean removeSubscriber(TopicRegistrationInfo subscriberTopic)
subscriberTopic
- the topic information about the subscriber to remove
true
if the subscriber had been therepublic java.util.Set<ServiceRegistrationInfo> getServices()
public void addService(ServiceRegistrationInfo service)
service
- the service to addpublic boolean removeService(ServiceRegistrationInfo service)
service
- the service to remove
true
if the subscriber had been therepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |