Public Member Functions | |
void | addPublisher (NodeRegistrationInfo publisher, String messageType) |
void | addSubscriber (NodeRegistrationInfo subscriber, String messageType) |
boolean | equals (Object obj) |
String | getMessageType () |
Set< NodeRegistrationInfo > | getPublishers () |
Set< NodeRegistrationInfo > | getSubscribers () |
GraphName | getTopicName () |
int | hashCode () |
boolean | hasPublishers () |
boolean | hasRegistrations () |
boolean | hasSubscribers () |
boolean | removePublisher (NodeRegistrationInfo publisher) |
boolean | removeSubscriber (NodeRegistrationInfo subscriber) |
TopicRegistrationInfo (GraphName topicName) | |
Private Member Functions | |
void | setMessageType (String topicMessageType, boolean isPublisher) |
Private Attributes | |
boolean | isPublisherDefinedMessageType |
String | messageType |
final Set< NodeRegistrationInfo > | publishers |
final Set< NodeRegistrationInfo > | subscribers |
final GraphName | topicName |
All information known to the manager about a topic.
Definition at line 34 of file TopicRegistrationInfo.java.
org.ros.internal.node.server.master.TopicRegistrationInfo.TopicRegistrationInfo | ( | GraphName | topicName | ) | [inline] |
Definition at line 64 of file TopicRegistrationInfo.java.
void org.ros.internal.node.server.master.TopicRegistrationInfo.addPublisher | ( | NodeRegistrationInfo | publisher, |
String | messageType | ||
) | [inline] |
Add a new publisher to the topic.
publisher | the publisher to add |
messageType | the type of the message |
Definition at line 131 of file TopicRegistrationInfo.java.
void org.ros.internal.node.server.master.TopicRegistrationInfo.addSubscriber | ( | NodeRegistrationInfo | subscriber, |
String | messageType | ||
) | [inline] |
Add a new subscriber to the topic.
subscriber | the subscriber to add |
messageType | the type of the message |
Definition at line 167 of file TopicRegistrationInfo.java.
boolean org.ros.internal.node.server.master.TopicRegistrationInfo.equals | ( | Object | obj | ) | [inline] |
Definition at line 230 of file TopicRegistrationInfo.java.
String org.ros.internal.node.server.master.TopicRegistrationInfo.getMessageType | ( | ) | [inline] |
Get the currently known message type of the topic.
null
Definition at line 83 of file TopicRegistrationInfo.java.
Set<NodeRegistrationInfo> org.ros.internal.node.server.master.TopicRegistrationInfo.getPublishers | ( | ) | [inline] |
Get a list of all known publishers for the topic.
Definition at line 119 of file TopicRegistrationInfo.java.
Set<NodeRegistrationInfo> org.ros.internal.node.server.master.TopicRegistrationInfo.getSubscribers | ( | ) | [inline] |
Get a list of all known subscribers for the topic.
Definition at line 155 of file TopicRegistrationInfo.java.
Definition at line 74 of file TopicRegistrationInfo.java.
int org.ros.internal.node.server.master.TopicRegistrationInfo.hashCode | ( | ) | [inline] |
Definition at line 222 of file TopicRegistrationInfo.java.
boolean org.ros.internal.node.server.master.TopicRegistrationInfo.hasPublishers | ( | ) | [inline] |
Does the topic have any publishers?
true
Definition at line 92 of file TopicRegistrationInfo.java.
boolean org.ros.internal.node.server.master.TopicRegistrationInfo.hasRegistrations | ( | ) | [inline] |
Does the topic have any registrations?
true
Definition at line 110 of file TopicRegistrationInfo.java.
boolean org.ros.internal.node.server.master.TopicRegistrationInfo.hasSubscribers | ( | ) | [inline] |
Does the topic have any subscribers?
true
Definition at line 101 of file TopicRegistrationInfo.java.
boolean org.ros.internal.node.server.master.TopicRegistrationInfo.removePublisher | ( | NodeRegistrationInfo | publisher | ) | [inline] |
Remove a publisher to the topic.
publisher | the publisher to add |
true
Definition at line 146 of file TopicRegistrationInfo.java.
boolean org.ros.internal.node.server.master.TopicRegistrationInfo.removeSubscriber | ( | NodeRegistrationInfo | subscriber | ) | [inline] |
Remove a subscriber to the topic.
subscriber | the subscriber to add |
true
Definition at line 182 of file TopicRegistrationInfo.java.
void org.ros.internal.node.server.master.TopicRegistrationInfo.setMessageType | ( | String | topicMessageType, |
boolean | isPublisher | ||
) | [inline, private] |
Register the message type of a TopicSystemState.
topicMessageType | the message type of the TopicSystemState, Subscribers can give a message type of { Subscriber::TOPIC_MESSAGE_TYPE_WILDCARD} |
isPublisher | {code true} is a publisher is doing the registration, false
|
Definition at line 197 of file TopicRegistrationInfo.java.
boolean org.ros.internal.node.server.master.TopicRegistrationInfo.isPublisherDefinedMessageType [private] |
true
if the message type was defined by a publisher.
Definition at line 52 of file TopicRegistrationInfo.java.
The type of the topic's message.
Can be
null
if no publisher has registered the type.
Definition at line 47 of file TopicRegistrationInfo.java.
final Set<NodeRegistrationInfo> org.ros.internal.node.server.master.TopicRegistrationInfo.publishers [private] |
A publishers for the topic.
Definition at line 57 of file TopicRegistrationInfo.java.
final Set<NodeRegistrationInfo> org.ros.internal.node.server.master.TopicRegistrationInfo.subscribers [private] |
All subscribers for the topic.
Definition at line 62 of file TopicRegistrationInfo.java.
The name of the topic.
Definition at line 39 of file TopicRegistrationInfo.java.