com.yobotics.simulationconstructionset.whiteBoard
Class DataStreamYoWhiteBoard

java.lang.Object
  extended by com.yobotics.simulationconstructionset.whiteBoard.YoWhiteBoard
      extended by com.yobotics.simulationconstructionset.whiteBoard.DataStreamYoWhiteBoard
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
TCPYoWhiteBoard, UDPYoWhiteBoard

public abstract class DataStreamYoWhiteBoard
extends YoWhiteBoard
implements java.lang.Runnable


Constructor Summary
DataStreamYoWhiteBoard(java.lang.String name, boolean writeOutConnect, boolean readInConnect)
           
DataStreamYoWhiteBoard(java.lang.String name, boolean writeOutConnect, boolean readInConnect, boolean createYoVariablesOnConnect, YoVariableRegistry rootRegistryToAddVariablesTo)
           
 
Method Summary
 void run()
           
 void setDataStreams(java.io.DataInputStream dataInputStream, java.io.DataOutputStream dataOutputStream)
           
 void whiteBoardSpecificClose()
           
 void whiteBoardSpecificConnect()
           
 void whiteBoardSpecificWriteData(double[] doubleVariablesToWriteBuffer, int[] intVariablesToWriteBuffer, boolean[] booleanVariablesToWriteBuffer, int[] enumVariablesToWriteBuffer, int writeIndex)
           
 
Methods inherited from class com.yobotics.simulationconstructionset.whiteBoard.YoWhiteBoard
attachYoWhiteBoardListener, close, connect, getAllVariablesToRead, getAllVariablesToWrite, getNumberOfBooleansToRead, getNumberOfDoublesToRead, getNumberOfEnumsToRead, getNumberOfIntsToRead, getNumberOfNewDataSinceLastRead, getReadIndex, getWriteIndex, haveVariablesToReadAndWriteBeenSet, isConnected, isNewDataAvailable, readData, setVariablesToRead, setVariablesToWrite, writeData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataStreamYoWhiteBoard

public DataStreamYoWhiteBoard(java.lang.String name,
                              boolean writeOutConnect,
                              boolean readInConnect)

DataStreamYoWhiteBoard

public DataStreamYoWhiteBoard(java.lang.String name,
                              boolean writeOutConnect,
                              boolean readInConnect,
                              boolean createYoVariablesOnConnect,
                              YoVariableRegistry rootRegistryToAddVariablesTo)
Method Detail

setDataStreams

public void setDataStreams(java.io.DataInputStream dataInputStream,
                           java.io.DataOutputStream dataOutputStream)

run

public void run()
Specified by:
run in interface java.lang.Runnable

whiteBoardSpecificConnect

public void whiteBoardSpecificConnect()
                               throws java.io.IOException
Specified by:
whiteBoardSpecificConnect in class YoWhiteBoard
Throws:
java.io.IOException

whiteBoardSpecificClose

public void whiteBoardSpecificClose()
                             throws java.io.IOException
Specified by:
whiteBoardSpecificClose in class YoWhiteBoard
Throws:
java.io.IOException

whiteBoardSpecificWriteData

public void whiteBoardSpecificWriteData(double[] doubleVariablesToWriteBuffer,
                                        int[] intVariablesToWriteBuffer,
                                        boolean[] booleanVariablesToWriteBuffer,
                                        int[] enumVariablesToWriteBuffer,
                                        int writeIndex)
                                 throws java.io.IOException
Specified by:
whiteBoardSpecificWriteData in class YoWhiteBoard
Throws:
java.io.IOException