|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlejos.pc.comm.NXTInfo
public class NXTInfo
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 |
---|
public java.lang.String name
public java.lang.String deviceAddress
public int protocol
public NXTConnectionState connectionState
Constructor Detail |
---|
public NXTInfo()
public NXTInfo(int protocol, java.lang.String name, java.lang.String address)
protocol
- the protocol to use (USB or BLUETOOTH)name
- the name of the NXTaddress
- the Bluetooth address with optional colons between hex pairs.public NXTInfo(NXTInfo info)
info
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |