lejos.nxt.comm
Class RConsole

java.lang.Object
  extended by java.lang.Thread
      extended by 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.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
static void close()
           
static boolean isOpen()
           
static void open()
           
static void openBluetooth(int timeout)
           
static OutputStream openOutputStream()
           
static void openUSB(int timeout)
           
static void print(String s)
           
static void println(String s)
           
 void run()
          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.
 
Methods inherited from class java.lang.Thread
currentThread, getId, getName, getPriority, init_thread, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, set_priority, setDaemon, setName, setPriority, sleep, start, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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