robocontrol
Class AdapterCommThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--robocontrol.AdapterCommThread
All Implemented Interfaces:
java.lang.Runnable

public class AdapterCommThread
extends java.lang.Thread

Thread for the communication with the LegoAdapter (server). Waits for receiving Strings and sends them to all JavaAdapters.

Version:
0.1, 05/2002
Author:
Gerald Kogler
See Also:
java-source-code, jlegocom help docs

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AdapterCommThread(java.lang.String name, RobotControl robot)
          Constructor for the AdapterCommThread.
 
Method Summary
 void destroy()
          Close all sockets and streams.
 void run()
          Run-Method of the RobotCommThread.
 void send(java.lang.String cmd)
          Sends command to the LegoAdapter (currently not used!)
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdapterCommThread

public AdapterCommThread(java.lang.String name,
                         RobotControl robot)
Constructor for the AdapterCommThread.

Parameters:
name - Name of the thread.
robot - RobotControl from which the thread is started.
Method Detail

run

public void run()
Run-Method of the RobotCommThread.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

destroy

public void destroy()
Close all sockets and streams.

Overrides:
destroy in class java.lang.Thread

send

public void send(java.lang.String cmd)
Sends command to the LegoAdapter (currently not used!)

Parameters:
cmd - String representing command sent to LegoAdapter