org.ros.internal.node.topic
Class PublisherIdentifier

java.lang.Object
  extended by org.ros.internal.node.topic.PublisherIdentifier

public class PublisherIdentifier
extends java.lang.Object

All information needed to identify a publisher.


Constructor Summary
PublisherIdentifier(NodeIdentifier nodeIdentifier, TopicIdentifier topicIdentifier)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 NodeIdentifier getNodeIdentifier()
           
 GraphName getNodeName()
           
 java.net.URI getNodeUri()
           
 TopicIdentifier getTopicIdentifier()
           
 GraphName getTopicName()
           
 int hashCode()
           
static java.util.Collection<PublisherIdentifier> newCollectionFromUris(java.util.Collection<java.net.URI> publisherUris, TopicDeclaration topicDeclaration)
           
static PublisherIdentifier newFromStrings(java.lang.String nodeName, java.lang.String uri, java.lang.String topicName)
           
 java.util.Map<java.lang.String,java.lang.String> toConnectionHeader()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PublisherIdentifier

public PublisherIdentifier(NodeIdentifier nodeIdentifier,
                           TopicIdentifier topicIdentifier)
Method Detail

newCollectionFromUris

public static java.util.Collection<PublisherIdentifier> newCollectionFromUris(java.util.Collection<java.net.URI> publisherUris,
                                                                              TopicDeclaration topicDeclaration)

newFromStrings

public static PublisherIdentifier newFromStrings(java.lang.String nodeName,
                                                 java.lang.String uri,
                                                 java.lang.String topicName)

toConnectionHeader

public java.util.Map<java.lang.String,java.lang.String> toConnectionHeader()

getNodeIdentifier

public NodeIdentifier getNodeIdentifier()

getNodeName

public GraphName getNodeName()
Returns:
the GraphName of the Node hosting this Publisher

getNodeUri

public java.net.URI getNodeUri()
Returns:
the URI of the Node hosting this Publisher

getTopicIdentifier

public TopicIdentifier getTopicIdentifier()
Returns:
the TopicIdentifier for the Publisher's topic

getTopicName

public GraphName getTopicName()
Returns:
the GraphName of this Publisher's topic

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object