org.ros.internal.node.topic
Class TopicDeclaration
java.lang.Object
org.ros.internal.node.topic.TopicDeclaration
public class TopicDeclaration
- extends java.lang.Object
A topic in a ROS graph.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TopicDeclaration
public TopicDeclaration(TopicIdentifier topicIdentifier,
TopicDescription topicDescription)
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