com.yobotics.simulationconstructionset.robotcommprotocol
Class RobotSocketConnection

java.lang.Object
  extended by com.yobotics.simulationconstructionset.robotcommprotocol.RobotSocketConnection
All Implemented Interfaces:
DoDisconnectListener, RegistrySettingsChangedListener, RobotConnection, VariableChangedListener

public class RobotSocketConnection
extends java.lang.Object
implements RobotConnection, VariableChangedListener, DoDisconnectListener, RegistrySettingsChangedListener


Field Summary
static int PORT
           
 
Constructor Summary
RobotSocketConnection(java.lang.String host, GUISideCommandListener commandListener, YoVariableRegistry rootRegistry)
           
RobotSocketConnection(java.lang.String host, GUISideCommandListener commandListener, YoVariableRegistry rootRegistry, java.util.ArrayList<NewDataListener> newDataListeners)
           
RobotSocketConnection(java.lang.String host, GUISideCommandListener commandListener, YoVariableRegistry rootRegistry, NewDataListener newDataListener)
           
 
Method Summary
 void attemptConnectionToHost()
           
 void disconnect()
           
 void doDisconnect()
           
 boolean getRegistrySettingsProcessed()
           
 boolean isConnected()
           
 void pause()
           
 void registrySettingsChanged()
           
 void registrySettingsChanged(java.util.ArrayList<YoVariableRegistry> changedRegistries)
           
 void setRecord(boolean record)
           
 void variableChanged(YoVariable variable)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORT

public static int PORT
Constructor Detail

RobotSocketConnection

public RobotSocketConnection(java.lang.String host,
                             GUISideCommandListener commandListener,
                             YoVariableRegistry rootRegistry)

RobotSocketConnection

public RobotSocketConnection(java.lang.String host,
                             GUISideCommandListener commandListener,
                             YoVariableRegistry rootRegistry,
                             java.util.ArrayList<NewDataListener> newDataListeners)

RobotSocketConnection

public RobotSocketConnection(java.lang.String host,
                             GUISideCommandListener commandListener,
                             YoVariableRegistry rootRegistry,
                             NewDataListener newDataListener)
Method Detail

isConnected

public boolean isConnected()
Specified by:
isConnected in interface RobotConnection

pause

public void pause()
Specified by:
pause in interface RobotConnection

attemptConnectionToHost

public void attemptConnectionToHost()
Specified by:
attemptConnectionToHost in interface RobotConnection

getRegistrySettingsProcessed

public boolean getRegistrySettingsProcessed()

doDisconnect

public void doDisconnect()
Specified by:
doDisconnect in interface DoDisconnectListener

disconnect

public void disconnect()
Specified by:
disconnect in interface RobotConnection

setRecord

public void setRecord(boolean record)
Specified by:
setRecord in interface RobotConnection

variableChanged

public void variableChanged(YoVariable variable)
Specified by:
variableChanged in interface VariableChangedListener

registrySettingsChanged

public void registrySettingsChanged(java.util.ArrayList<YoVariableRegistry> changedRegistries)
Specified by:
registrySettingsChanged in interface RegistrySettingsChangedListener

registrySettingsChanged

public void registrySettingsChanged()
Specified by:
registrySettingsChanged in interface RegistrySettingsChangedListener