lejos.pc.comm
Class NXTCommFactory

java.lang.Object
  extended by lejos.pc.comm.NXTCommFactory

public class NXTCommFactory
extends java.lang.Object

Creates a version of NTComm appropriate to the OS in use and protocol (Bluetooth or USB) that is requested.


Field Summary
static int BLUETOOTH
           
static int USB
           
 
Constructor Summary
NXTCommFactory()
           
 
Method Summary
static NXTComm createNXTComm(int protocol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USB

public static final int USB
See Also:
Constant Field Values

BLUETOOTH

public static final int BLUETOOTH
See Also:
Constant Field Values
Constructor Detail

NXTCommFactory

public NXTCommFactory()
Method Detail

createNXTComm

public static NXTComm createNXTComm(int protocol)
                             throws NXTCommException
Throws:
NXTCommException