orbotix.robot.base
Class DeviceConnection

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

public class DeviceConnection
extends java.lang.Object

Low level API that handles sending command packets to a device.


Constructor Summary
DeviceConnection(Robot robot)
          Constructor for creating a new device connection for a robot.
 
Method Summary
 void close()
          Stops sending data closes the connection.
 void connect()
          Creates the connection.
 Robot getRobot()
          Accessor to the robot.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceConnection

public DeviceConnection(Robot robot)
Constructor for creating a new device connection for a robot.

Parameters:
robot - The robot used for the connection.
Method Detail

getRobot

public Robot getRobot()
Accessor to the robot.

Returns:
The robot instance for the connection.

connect

public void connect()
Creates the connection. This method blocks.


close

public void close()
Stops sending data closes the connection.