org.ros.internal.node.topic
Class TopicDeclaration

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

public class TopicDeclaration
extends java.lang.Object

A topic in a ROS graph.


Constructor Summary
TopicDeclaration(TopicIdentifier topicIdentifier, TopicDescription topicDescription)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 TopicIdentifier getIdentifier()
           
 java.lang.String getMessageType()
           
 GraphName getName()
           
 int hashCode()
           
static TopicDeclaration newFromHeader(java.util.Map<java.lang.String,java.lang.String> header)
           
static TopicDeclaration newFromTopicName(GraphName topicName, TopicDescription topicDescription)
           
 java.util.Map<java.lang.String,java.lang.String> toConnectionHeader()
           
 java.util.List<java.lang.String> toList()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopicDeclaration

public TopicDeclaration(TopicIdentifier topicIdentifier,
                        TopicDescription topicDescription)
Method Detail

newFromHeader

public static TopicDeclaration newFromHeader(java.util.Map<java.lang.String,java.lang.String> header)
Parameters:
header - a Map of header fields
Returns:
a new TopicDeclaration from the given header

newFromTopicName

public static TopicDeclaration newFromTopicName(GraphName topicName,
                                                TopicDescription topicDescription)

getIdentifier

public TopicIdentifier getIdentifier()

getName

public GraphName getName()

getMessageType

public java.lang.String getMessageType()

toConnectionHeader

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

toList

public java.util.List<java.lang.String> toList()

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