kaos.robots.breve
Class BreveProxy

java.lang.Object
  extended by kaos.robots.breve.BreveProxy

public class BreveProxy
extends java.lang.Object


Constructor Summary
BreveProxy(int port, boolean isServer)
           
 
Method Summary
 void close()
           
static BreveProxy connectToBreveProcess(int port)
           
 boolean doesAutoflush()
           
 void flush()
           
 double[] getArray(int length)
           
 double getDouble()
           
 double[][] getMatrix()
           
 double[][] getMatrix(int rows, int columns)
           
 double[] getVector()
           
 void putArray(double[] a)
           
 void putDouble(double d)
           
 void putDoubleWithNoFlush(double d)
           
 void putMatrix(double[][] m)
           
 void putVector(double[] a)
           
 void putVector(double x, double y, double z)
           
static BreveProxy serveBreveProcess(int port)
           
 void setAutoflush(boolean autoflush)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BreveProxy

public BreveProxy(int port,
                  boolean isServer)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

serveBreveProcess

public static BreveProxy serveBreveProcess(int port)
                                    throws java.io.IOException
Throws:
java.io.IOException

connectToBreveProcess

public static BreveProxy connectToBreveProcess(int port)
                                        throws java.io.IOException
Throws:
java.io.IOException

setAutoflush

public void setAutoflush(boolean autoflush)

doesAutoflush

public boolean doesAutoflush()

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Throws:
java.io.IOException

getDouble

public double getDouble()
                 throws java.io.IOException
Throws:
java.io.IOException

getVector

public double[] getVector()
                   throws java.io.IOException
Throws:
java.io.IOException

getArray

public double[] getArray(int length)
                  throws java.io.IOException
Throws:
java.io.IOException

getMatrix

public double[][] getMatrix()
                     throws java.io.IOException
Throws:
java.io.IOException

getMatrix

public double[][] getMatrix(int rows,
                            int columns)
                     throws java.io.IOException
Throws:
java.io.IOException

putDoubleWithNoFlush

public void putDoubleWithNoFlush(double d)
                          throws java.io.IOException
Throws:
java.io.IOException

putDouble

public void putDouble(double d)
               throws java.io.IOException
Throws:
java.io.IOException

putVector

public void putVector(double x,
                      double y,
                      double z)
               throws java.io.IOException
Throws:
java.io.IOException

putVector

public void putVector(double[] a)
               throws java.io.IOException
Throws:
java.io.IOException

putArray

public void putArray(double[] a)
              throws java.io.IOException
Throws:
java.io.IOException

putMatrix

public void putMatrix(double[][] m)
               throws java.io.IOException
Throws:
java.io.IOException