roomba.roombanetwork.services.startergui
Class Service

java.lang.Object
  extended by roomba.roombanetwork.services.startergui.Service

public class Service
extends java.lang.Object

Contains information about a service

Author:
Drew Housten

Constructor Summary
Service(java.lang.String serviceType, java.lang.String serviceName, RoombaNetworkClient client)
          Constructor
Service(java.lang.String serviceType, java.lang.String serviceName, RoombaNetworkClient client, ServiceStatusProvider status)
          Constructor
 
Method Summary
 RoombaNetworkClient getClient()
          Gets the Roomba Network Client that is handling the service communication to the RNS
 java.lang.String toString()
          Presents the information about the service as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Service

public Service(java.lang.String serviceType,
               java.lang.String serviceName,
               RoombaNetworkClient client)
Constructor

Parameters:
serviceType - The type of the service
serviceName - The name of the service
client - The Roomba Network Client that is handling the service communication to the RNS

Service

public Service(java.lang.String serviceType,
               java.lang.String serviceName,
               RoombaNetworkClient client,
               ServiceStatusProvider status)
Constructor

Parameters:
serviceType - The type of the service
serviceName - The name of the service
client - The Roomba Network Client that is handling the service communication to the RNS
status - The service status provider (if one)
Method Detail

getClient

public RoombaNetworkClient getClient()
Gets the Roomba Network Client that is handling the service communication to the RNS

Returns:
the client

toString

public java.lang.String toString()
Presents the information about the service as a string

Overrides:
toString in class java.lang.Object
Returns:
The string representing the service