lejos.nxt.comm
Class RConsole
java.lang.Object
java.lang.Thread
lejos.nxt.comm.RConsole
- All Implemented Interfaces:
- Runnable
public class RConsole
- extends Thread
This class provides a simple way of sending output for viewing on a
PC. The output is transmitted via the nxt USB connection or via Bluetooth.
If open is not called or if the connection to the PC is timed out, then
the output is discarded.
Methods inherited from class java.lang.Thread |
currentThread, getName, getPriority, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, setDaemon, setName, setPriority, sleep, start, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
openUSB
public static void openUSB(int timeout)
open
public static void open()
openBluetooth
public static void openBluetooth(int timeout)
print
public static void print(String s)
println
public static void println(String s)
close
public static void close()
isOpen
public static boolean isOpen()
openOutputStream
public static OutputStream openOutputStream()
run
public void run()
- Description copied from interface:
Runnable
- When an object implementing interface
Runnable
is used
to create a thread, starting the thread causes the object's
run
method to be called in that separately executing
thread.
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread