Class rcxproxy

java.lang.Object
  extended byrcxproxy
All Implemented Interfaces:
proxy
Direct Known Subclasses:
dummyproxy

public class rcxproxy
extends java.lang.Object
implements proxy


Constructor Summary
rcxproxy(int port)
          Creates a new instance of rcxproxy
 
Method Summary
 boolean checkin()
           
static void main(java.lang.String[] args)
           
 int readFromDest()
          I/O method for the rcx->proxy exchange
 int readFromSource()
          I/O for controlsoftware -> proxy exchange
 int translate(int code, int direction)
           
 boolean writeToDest(int towrite)
          I/O method for the proxy->rcx exchange
 boolean writeTosource(int towrite)
          I/O for proxy->controlsoftware exchange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

rcxproxy

public rcxproxy(int port)
Creates a new instance of rcxproxy

Parameters:
port -
Method Detail

checkin

public boolean checkin()
Returns:

translate

public int translate(int code,
                     int direction)
Specified by:
translate in interface proxy
Parameters:
code -
direction -
Returns:

readFromDest

public int readFromDest()
I/O method for the rcx->proxy exchange

Specified by:
readFromDest in interface proxy
Returns:

writeToDest

public boolean writeToDest(int towrite)
I/O method for the proxy->rcx exchange

Specified by:
writeToDest in interface proxy
Parameters:
towrite - : byte that has to be sent to the rcx
Returns:

readFromSource

public int readFromSource()
I/O for controlsoftware -> proxy exchange

Specified by:
readFromSource in interface proxy
Returns:

writeTosource

public boolean writeTosource(int towrite)
I/O for proxy->controlsoftware exchange

Specified by:
writeTosource in interface proxy
Returns:

main

public static void main(java.lang.String[] args)