roomba.roombanetwork.services.logger
Class LoggerService

java.lang.Object
  extended by roomba.roombanetwork.services.logger.LoggerService
All Implemented Interfaces:
ClientListener

public class LoggerService
extends java.lang.Object
implements ClientListener

Provides a logging service to the Roomba Network. Logs all sensor data and periodically polls the connected service list.

Author:
Drew Housten

Constructor Summary
LoggerService(java.lang.String rnsHost, int rnsPort)
          Constructor - creates the RNC and starts the logging
 
Method Summary
 RoombaNetworkClient getRNC()
          Gets the Roomba Network Client
 void messageReceived(java.lang.String messageType, java.lang.String[] messageComponents)
          Processes a message received.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerService

public LoggerService(java.lang.String rnsHost,
                     int rnsPort)
Constructor - creates the RNC and starts the logging

Parameters:
rnsHost - The hostname (or IP address) of the RNS
rnsPort - The port of the RNS (default is 7777)
Method Detail

getRNC

public RoombaNetworkClient getRNC()
Gets the Roomba Network Client

Returns:
The client

messageReceived

public void messageReceived(java.lang.String messageType,
                            java.lang.String[] messageComponents)
Processes a message received.

Specified by:
messageReceived in interface ClientListener
Parameters:
messageType - The message type
messageComponents - The components of the received message