Public Member Functions | Private Member Functions | Private Attributes
org.ros.internal.node.server.master.TopicRegistrationInfo Class Reference

List of all members.

Public Member Functions

void addPublisher (NodeRegistrationInfo publisher, String messageType)
void addSubscriber (NodeRegistrationInfo subscriber, String messageType)
boolean equals (Object obj)
String getMessageType ()
Set< NodeRegistrationInfogetPublishers ()
Set< NodeRegistrationInfogetSubscribers ()
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< NodeRegistrationInfopublishers
final Set< NodeRegistrationInfosubscribers
final GraphName topicName

Detailed Description

All information known to the manager about a topic.

Author:
khughes@google.com (Keith M. Hughes)

Definition at line 34 of file TopicRegistrationInfo.java.


Constructor & Destructor Documentation

Definition at line 64 of file TopicRegistrationInfo.java.


Member Function Documentation

Add a new publisher to the topic.

Parameters:
publisherthe publisher to add
messageTypethe type of the message

Definition at line 131 of file TopicRegistrationInfo.java.

Add a new subscriber to the topic.

Parameters:
subscriberthe subscriber to add
messageTypethe type of the message

Definition at line 167 of file TopicRegistrationInfo.java.

Definition at line 230 of file TopicRegistrationInfo.java.

Get the currently known message type of the topic.

Returns:
The message type. Can be
 null 
if unknown.

Definition at line 83 of file TopicRegistrationInfo.java.

Get a list of all known publishers for the topic.

Returns:
an immutable list of publishers

Definition at line 119 of file TopicRegistrationInfo.java.

Get a list of all known subscribers for the topic.

Returns:
an immutable list of publishers

Definition at line 155 of file TopicRegistrationInfo.java.

Returns:
the topicName

Definition at line 74 of file TopicRegistrationInfo.java.

Definition at line 222 of file TopicRegistrationInfo.java.

Does the topic have any publishers?

Returns:
 true 
if the topic has any publishers.

Definition at line 92 of file TopicRegistrationInfo.java.

Does the topic have any registrations?

Returns:
 true 
if the topic has any publishers or subscribers.

Definition at line 110 of file TopicRegistrationInfo.java.

Does the topic have any subscribers?

Returns:
 true 
if the topic has any publishers or subscribers.

Definition at line 101 of file TopicRegistrationInfo.java.

Remove a publisher to the topic.

Parameters:
publisherthe publisher to add
Returns:
 true 
if the publisher was registered in the first place

Definition at line 146 of file TopicRegistrationInfo.java.

Remove a subscriber to the topic.

Parameters:
subscriberthe subscriber to add
Returns:
 true 
if the subscriber was registered in the first place

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.

Parameters:
topicMessageTypethe 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 
if a subscriber is doing the registration

Definition at line 197 of file TopicRegistrationInfo.java.


Member Data Documentation

 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.

A publishers for the topic.

Definition at line 57 of file TopicRegistrationInfo.java.

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.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:51