lejos.pc.comm
Class NXTInfo

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

public class NXTInfo
extends java.lang.Object

Structure containing information about a specific NXT and the potential connections to it. Returned from the NXTComm search method.


Field Summary
 NXTConnectionState connectionState
          the present connection state of the NXT
 java.lang.String deviceAddress
          The device address.
 java.lang.String name
          Friendly name of the NXT.
 int protocol
          The protocol used to connect to the NXT: USB or BLUETOOTH.
 
Constructor Summary
NXTInfo()
           
NXTInfo(int protocol, java.lang.String name, java.lang.String address)
          Create a NXTInfo that is used to connect to a NXT via Bluetooth using the Bluetooth address.
NXTInfo(NXTInfo info)
          copy constructor
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
Friendly name of the NXT.


deviceAddress

public java.lang.String deviceAddress
The device address.


protocol

public int protocol
The protocol used to connect to the NXT: USB or BLUETOOTH.


connectionState

public NXTConnectionState connectionState
the present connection state of the NXT

Constructor Detail

NXTInfo

public NXTInfo()

NXTInfo

public NXTInfo(int protocol,
               java.lang.String name,
               java.lang.String address)
Create a NXTInfo that is used to connect to a NXT via Bluetooth using the Bluetooth address.

Parameters:
protocol - the protocol to use (USB or BLUETOOTH)
name - the name of the NXT
address - the Bluetooth address with optional colons between hex pairs.

NXTInfo

public NXTInfo(NXTInfo info)
copy constructor

Parameters:
info -