org.ros.master.client
Class TopicSystemState

java.lang.Object
  extended by org.ros.master.client.TopicSystemState

public class TopicSystemState
extends java.lang.Object

Information about a topic.


Constructor Summary
TopicSystemState(java.lang.String topicName, java.util.Set<java.lang.String> publishers, java.util.Set<java.lang.String> subscribers)
           
 
Method Summary
 java.util.Set<java.lang.String> getPublishers()
          Get the set of all nodes that publish the topic.
 java.util.Set<java.lang.String> getSubscribers()
          Get the set of all nodes that subscribe to the topic.
 java.lang.String getTopicName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicSystemState

public TopicSystemState(java.lang.String topicName,
                        java.util.Set<java.lang.String> publishers,
                        java.util.Set<java.lang.String> subscribers)
Method Detail

getTopicName

public java.lang.String getTopicName()
Returns:
the topicName

getPublishers

public java.util.Set<java.lang.String> getPublishers()
Get the set of all nodes that publish the topic.

Returns:
the set of node names

getSubscribers

public java.util.Set<java.lang.String> getSubscribers()
Get the set of all nodes that subscribe to the topic.

Returns:
the set of node names