org.ros.internal.node.topic
Class TopicParticipantManager

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

public class TopicParticipantManager
extends java.lang.Object

Manages a collection of Publishers and Subscribers.


Constructor Summary
TopicParticipantManager()
           
 
Method Summary
 void addPublisher(DefaultPublisher<?> publisher)
           
 void addPublisherConnection(DefaultPublisher<?> publisher, SubscriberIdentifier subscriberIdentifier)
           
 void addSubscriber(DefaultSubscriber<?> subscriber)
           
 void addSubscriberConnection(DefaultSubscriber<?> subscriber, PublisherIdentifier publisherIdentifier)
           
 DefaultPublisher<?> getPublisher(GraphName topicName)
           
 java.util.Collection<SubscriberIdentifier> getPublisherConnections(DefaultPublisher<?> publisher)
           
 java.util.Collection<DefaultPublisher<?>> getPublishers()
           
 DefaultSubscriber<?> getSubscriber(GraphName topicName)
           
 java.util.Collection<PublisherIdentifier> getSubscriberConnections(DefaultSubscriber<?> subscriber)
           
 java.util.Collection<DefaultSubscriber<?>> getSubscribers()
           
 boolean hasPublisher(GraphName topicName)
           
 boolean hasSubscriber(GraphName topicName)
           
 void removePublisher(DefaultPublisher<?> publisher)
           
 void removePublisherConnection(DefaultPublisher<?> publisher, SubscriberIdentifier subscriberIdentifier)
           
 void removeSubscriber(DefaultSubscriber<?> subscriber)
           
 void removeSubscriberConnection(DefaultSubscriber<?> subscriber, PublisherIdentifier publisherIdentifier)
           
 void setListener(TopicParticipantManagerListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicParticipantManager

public TopicParticipantManager()
Method Detail

setListener

public void setListener(TopicParticipantManagerListener listener)

hasSubscriber

public boolean hasSubscriber(GraphName topicName)

hasPublisher

public boolean hasPublisher(GraphName topicName)

getPublisher

public DefaultPublisher<?> getPublisher(GraphName topicName)

getSubscriber

public DefaultSubscriber<?> getSubscriber(GraphName topicName)

addPublisher

public void addPublisher(DefaultPublisher<?> publisher)

removePublisher

public void removePublisher(DefaultPublisher<?> publisher)

addSubscriber

public void addSubscriber(DefaultSubscriber<?> subscriber)

removeSubscriber

public void removeSubscriber(DefaultSubscriber<?> subscriber)

addSubscriberConnection

public void addSubscriberConnection(DefaultSubscriber<?> subscriber,
                                    PublisherIdentifier publisherIdentifier)

removeSubscriberConnection

public void removeSubscriberConnection(DefaultSubscriber<?> subscriber,
                                       PublisherIdentifier publisherIdentifier)

addPublisherConnection

public void addPublisherConnection(DefaultPublisher<?> publisher,
                                   SubscriberIdentifier subscriberIdentifier)

removePublisherConnection

public void removePublisherConnection(DefaultPublisher<?> publisher,
                                      SubscriberIdentifier subscriberIdentifier)

getSubscribers

public java.util.Collection<DefaultSubscriber<?>> getSubscribers()

getSubscriberConnections

public java.util.Collection<PublisherIdentifier> getSubscriberConnections(DefaultSubscriber<?> subscriber)

getPublishers

public java.util.Collection<DefaultPublisher<?>> getPublishers()

getPublisherConnections

public java.util.Collection<SubscriberIdentifier> getPublisherConnections(DefaultPublisher<?> publisher)