|
|||||||||
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.TopicRegistrationInfo
public class TopicRegistrationInfo
All information known to the manager about a topic.
Constructor Summary | |
---|---|
TopicRegistrationInfo(GraphName topicName)
|
Method Summary | |
---|---|
void |
addPublisher(NodeRegistrationInfo publisher,
java.lang.String messageType)
Add a new publisher to the topic. |
void |
addSubscriber(NodeRegistrationInfo subscriber,
java.lang.String messageType)
Add a new subscriber to the topic. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getMessageType()
Get the currently known message type of the topic. |
java.util.List<NodeRegistrationInfo> |
getPublishers()
Get a list of all known publishers for the topic. |
java.util.List<NodeRegistrationInfo> |
getSubscribers()
Get a list of all known subscribers for the topic. |
GraphName |
getTopicName()
|
int |
hashCode()
|
boolean |
hasPublishers()
Does the topic have any publishers? |
boolean |
hasRegistrations()
Does the topic have any registrations? |
boolean |
hasSubscribers()
Does the topic have any subscribers? |
boolean |
removePublisher(NodeRegistrationInfo publisher)
Remove a publisher to the topic. |
boolean |
removeSubscriber(NodeRegistrationInfo subscriber)
Remove a subscriber to the topic. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TopicRegistrationInfo(GraphName topicName)
Method Detail |
---|
public GraphName getTopicName()
public java.lang.String getMessageType()
null
if unknown.public boolean hasPublishers()
true
if the topic has any publishers.public boolean hasSubscribers()
true
if the topic has any publishers or subscribers.public boolean hasRegistrations()
true
if the topic has any publishers or subscribers.public java.util.List<NodeRegistrationInfo> getPublishers()
public void addPublisher(NodeRegistrationInfo publisher, java.lang.String messageType)
publisher
- the publisher to addmessageType
- the type of the messagepublic boolean removePublisher(NodeRegistrationInfo publisher)
publisher
- the publisher to add
true
if the publisher was registered in the first placepublic java.util.List<NodeRegistrationInfo> getSubscribers()
public void addSubscriber(NodeRegistrationInfo subscriber, java.lang.String messageType)
subscriber
- the subscriber to addmessageType
- the type of the messagepublic boolean removeSubscriber(NodeRegistrationInfo subscriber)
subscriber
- the subscriber to add
true
if the subscriber was registered in the first placepublic 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 |