|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectroomba.roombanetwork.services.roomba.RoombaService
public class RoombaService
Provides a roomba service to the Roomba Network, handles robot commands, and produces sensor data
| Field Summary |
|---|
| Fields inherited from interface roomba.roombanetwork.services.ServiceStatusProvider |
|---|
STATUS_ERROR, STATUS_OK |
| Constructor Summary | |
|---|---|
RoombaService(java.lang.String serviceName,
java.lang.String rnsHost,
int rnsPort,
java.lang.String roombaPortName)
Constructor - creates the RNC and starts the Roomba |
|
| Method Summary | |
|---|---|
java.lang.String |
getErrorMessage()
Returns the error message for the service if any |
RoombaNetworkClient |
getRNC()
Gets the Roomba Network Client |
int |
getStatus()
Returns the status code for the service |
static void |
main(java.lang.String[] args)
|
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 |
|---|
public RoombaService(java.lang.String serviceName,
java.lang.String rnsHost,
int rnsPort,
java.lang.String roombaPortName)
serviceName - Name of the Roomba ServicernsHost - The hostname (or IP address) of the RNSrnsPort - The port of the RNS (default is 7777)roombaPortName - The serial port name that the Roomba is connected at| Method Detail |
|---|
public RoombaNetworkClient getRNC()
public int getStatus()
getStatus in interface ServiceStatusProviderpublic java.lang.String getErrorMessage()
getErrorMessage in interface ServiceStatusProvider
public void messageReceived(java.lang.String messageType,
java.lang.String[] messageComponents)
messageReceived in interface ClientListenermessageType - The message typemessageComponents - The components of the received messagepublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||