org.ros.node.service
Interface ServiceServer<T,S>

Type Parameters:
T - this ServiceServer responds to requests of this type
S - this ServiceServer returns responses of this type
All Known Implementing Classes:
DefaultServiceServer

public interface ServiceServer<T,S>

Provides a ROS service.

See Also:
Services documentation

Method Summary
 void addListener(ServiceServerListener<T,S> listener)
          Add a ServiceServerListener.
 GraphName getName()
           
 java.net.URI getUri()
           
 void removeListener(ServiceServerListener<T,S> listener)
          Remove a ServiceServerListener.
 void shutdown()
          Stops the service and unregisters it.
 

Method Detail

getName

GraphName getName()
Returns:
the name of the ServiceServer

getUri

java.net.URI getUri()
Returns:
the URI for this ServiceServer

shutdown

void shutdown()
Stops the service and unregisters it.


addListener

void addListener(ServiceServerListener<T,S> listener)
Add a ServiceServerListener.

Parameters:
listener - the ServiceServerListener to add

removeListener

void removeListener(ServiceServerListener<T,S> listener)
Remove a ServiceServerListener.

This has no effect if the specified ServiceServerListener was never added.

Parameters:
listener - the ServiceServerListener to remove