|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--robocontrol.AdapterCommThread
Thread for the communication with the LegoAdapter (server). Waits for receiving Strings and sends them to all JavaAdapters.
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 |
public AdapterCommThread(java.lang.String name, RobotControl robot)
name
- Name of the thread.robot
- RobotControl from which the thread is started.Method Detail |
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void destroy()
destroy
in class java.lang.Thread
public void send(java.lang.String cmd)
cmd
- String representing command sent to LegoAdapter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |