1 package de.lathanda.eos.ev3;
 
    3 import java.io.DataInputStream;
 
    4 import java.io.DataOutputStream;
 
    5 import java.io.IOException;
 
    6 import java.net.InetAddress;
 
    7 import java.net.Socket;
 
    8 import java.net.UnknownHostException;
 
   10 import de.lathanda.eos.base.event.CleanupListener;
 
   11 import de.lathanda.eos.ev3.exception.ConnectionLostException;
 
   12 import de.lathanda.eos.ev3.exception.DeviceNotFoundException;
 
   17     private DataInputStream in;
 
   18     private DataOutputStream out;
 
   28             ip = InetAddress.getByName(address);
 
   29         } 
catch (UnknownHostException e) {
 
   33             ev3 = 
new Socket(ip, 8777);
 
   34             in = 
new DataInputStream(ev3.getInputStream());
 
   35             out = 
new DataOutputStream(ev3.getOutputStream());
 
   36         } 
catch (IOException e) {
 
   45         } 
catch (IOException io) {
 
   54         } 
catch (IOException io) {
 
   63         } 
catch (IOException io) {
 
   72         } 
catch (Exception io) {
 
   81         } 
catch (Exception io) {
 
   92         } 
catch (Exception io) {
 
  102         } 
catch (Exception io) {
 
  118             } 
catch (Throwable t) {
 
  124             } 
catch (IOException e) {
 
void turnRight(int degree)
 
void connect(String address)
 
void turnLeft(int degree)
 
void driveForward(int distance)
 
void driveBackward(int distance)
 
static final int TURN_RIGHT
 
static final int TURN_LEFT
 
static final int DISCONNECT
 
void send(DataOutputStream out)
 
static final int REQUEST_ANGLE
 
static Command receive(DataInputStream in)
 
static final int REQUEST_DISTANCE
 
static final int MOVE_FORWARD
 
static final int MOVE_BACKWARD