org.ros.master.client
Class MasterStateClient

java.lang.Object
  extended by org.ros.master.client.MasterStateClient

public class MasterStateClient
extends java.lang.Object

A remote client for obtaining system information from a master.


Constructor Summary
MasterStateClient(Node caller, java.net.URI masterUri)
           
 
Method Summary
 java.util.List<TopicDeclaration> getPublishedTopics(java.lang.String subgraph)
           
 SystemState getSystemState()
           
 java.util.List<TopicType> getTopicTypes()
           
 java.net.URI getUri()
           
 java.net.URI lookupNode(java.lang.String nodeName)
           
 java.net.URI lookupService(java.lang.String serviceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterStateClient

public MasterStateClient(Node caller,
                         java.net.URI masterUri)
Method Detail

lookupNode

public java.net.URI lookupNode(java.lang.String nodeName)
Parameters:
nodeName - the name of the Node to lookup
Returns:
the URI of the Node with the given name

getUri

public java.net.URI getUri()
Returns:
the URI of the MasterServer

lookupService

public java.net.URI lookupService(java.lang.String serviceName)
Parameters:
serviceName - the name of the ServiceServer to look up
Returns:
the URI of the ServiceServer with the given name

getPublishedTopics

public java.util.List<TopicDeclaration> getPublishedTopics(java.lang.String subgraph)
Parameters:
subgraph - the subgraph of the topics
Returns:
a List of TopicDeclarations for published topics

getTopicTypes

public java.util.List<TopicType> getTopicTypes()
Returns:
a List of TopicTypes known by the master

getSystemState

public SystemState getSystemState()
Returns:
the current SystemState