com.yobotics.simulationconstructionset.robotcommprotocol
Class RobotProtocolListener
java.lang.Object
com.yobotics.simulationconstructionset.robotcommprotocol.RobotProtocolListener
- All Implemented Interfaces:
- UserCommandNetworkReader, VariableChangedListener
public class RobotProtocolListener
- extends java.lang.Object
- implements VariableChangedListener, UserCommandNetworkReader
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RobotProtocolListener
public RobotProtocolListener(java.io.DataInputStream dataIn,
java.io.DataOutputStream dataOut,
CommandListener commandListener,
SendIndexMap sendIndexMap)
processInput
public void processInput()
throws java.io.IOException
- Throws:
java.io.IOException
sendHello
public void sendHello(java.lang.String name,
java.lang.String info)
sendConnect
public void sendConnect()
sendConnected
public void sendConnected(java.lang.String name,
YoVariable[] vars)
sendUpdateVars
public void sendUpdateVars()
sendCheckConnected
public boolean sendCheckConnected()
variableChanged
public void variableChanged(YoVariable v)
- Specified by:
variableChanged in interface VariableChangedListener
sendSet
public void sendSet(int index,
float value)
sendSend
public void sendSend(int[] indices)
sendSend
public void sendSend(YoVariable v)
sendSend
public void sendSend(int index)
sendUnsend
public void sendUnsend(YoVariable v)
sendUnsend
public void sendUnsend(int[] indices)
sendUnsend
public void sendUnsend(int index)
sendUnsendAll
public void sendUnsendAll()
sendPeriod
public void sendPeriod(int periodmsec)
sendDisconnect
public void sendDisconnect()
sendUserCommand
public void sendUserCommand(java.lang.String cmd)
sendData
public void sendData(int listid,
java.util.ArrayList vars)
sendTextMessage
public void sendTextMessage(java.lang.String message)
readInt
public int readInt()
throws java.io.IOException
- Specified by:
readInt in interface UserCommandNetworkReader
- Throws:
java.io.IOException
readFloat
public float readFloat()
throws java.io.IOException
- Specified by:
readFloat in interface UserCommandNetworkReader
- Throws:
java.io.IOException
readDouble
public double readDouble()
throws java.io.IOException
- Specified by:
readDouble in interface UserCommandNetworkReader
- Throws:
java.io.IOException