org.ros.internal.node.topic
Class TopicParticipantManager
java.lang.Object
org.ros.internal.node.topic.TopicParticipantManager
public class TopicParticipantManager
- extends java.lang.Object
Manages a collection of Publisher
s and Subscriber
s.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TopicParticipantManager
public TopicParticipantManager()
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)