orbotix.robot.base
Class DeviceMessenger

java.lang.Object
  extended by orbotix.robot.base.DeviceMessenger

public class DeviceMessenger
extends java.lang.Object

User: brian Date: 6/30/11 Time: 11:56 AM


Nested Class Summary
static interface DeviceMessenger.AsyncDataListener
           
static interface DeviceMessenger.DeviceResponseListener
           
 
Method Summary
 void addAsyncDataListener(Robot robot, DeviceMessenger.AsyncDataListener asyncDataListener)
           
 void addResponseListener(Robot robot, DeviceMessenger.DeviceResponseListener listener)
           
static DeviceMessenger getInstance()
           
 void postCommand(Robot robot, DeviceCommand command)
           
 void postCommand(Robot robot, DeviceCommand command, long delayMillis)
           
 void removeAsyncDataListener(Robot robot, DeviceMessenger.AsyncDataListener dataListener)
           
 void removeResponseListener(Robot robot, DeviceMessenger.DeviceResponseListener listener)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DeviceMessenger getInstance()

postCommand

public void postCommand(Robot robot,
                        DeviceCommand command)

postCommand

public void postCommand(Robot robot,
                        DeviceCommand command,
                        long delayMillis)

addResponseListener

public void addResponseListener(Robot robot,
                                DeviceMessenger.DeviceResponseListener listener)

removeResponseListener

public void removeResponseListener(Robot robot,
                                   DeviceMessenger.DeviceResponseListener listener)

addAsyncDataListener

public void addAsyncDataListener(Robot robot,
                                 DeviceMessenger.AsyncDataListener asyncDataListener)

removeAsyncDataListener

public void removeAsyncDataListener(Robot robot,
                                    DeviceMessenger.AsyncDataListener dataListener)