|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeer2me.network.NetworkNode
peer2me.network.bluetooth.BluetoothNode
public class BluetoothNode
This class is used to represent a remote Bluetooth device. This class extends NetworkNode and contains information such as address, name, connectionURL, pingConnectionURL and a RemoteDevice representation of the remote Bluetooth device
Constructor Summary | |
---|---|
BluetoothNode(javax.bluetooth.LocalDevice localDevice)
Constructor. |
|
BluetoothNode(javax.bluetooth.RemoteDevice remoteDevice)
Constructor. |
|
BluetoothNode(javax.bluetooth.RemoteDevice remoteDevice,
java.lang.String connectionURL,
java.lang.String pingConnectionURL,
java.lang.String name)
Constructor. |
Method Summary | |
---|---|
java.lang.Class |
getObjectClass()
Returns the runtime class of object. |
java.lang.String |
getObjectType()
Returns the value of the toString() method of the local variable object |
java.lang.String |
getPingConnectionURL()
Gets the url that other nodes must use to ping the BluetoothNode |
void |
setConnectionURL(java.lang.String connectionURL)
Sets the connectionURL of the BluetoothNode |
void |
setPingConnectionURL(java.lang.String pingConnectionURL)
Sets the url that other nodes must use to ping the BluetoothNode |
java.lang.String |
toString()
Returns a neat string that can look something like this: "W800i at A154BC579E05" |
Methods inherited from class peer2me.network.NetworkNode |
---|
getAddress, getConnectionURL, getName, getObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BluetoothNode(javax.bluetooth.RemoteDevice remoteDevice)
remoteDevice
- The RemoteDevice that will be represented by this BluetoothNodepublic BluetoothNode(javax.bluetooth.RemoteDevice remoteDevice, java.lang.String connectionURL, java.lang.String pingConnectionURL, java.lang.String name)
remoteDevice
- The RemoteDevice that will be represented by this BluetoothNodeconnectionURL
- The connectionURL of the BluetoothNodepingConnectionURL
- The pingConnectionURL of the BluetoothNodename
- The name of the BluetoothNodepublic BluetoothNode(javax.bluetooth.LocalDevice localDevice)
localDevice
- The local nodeMethod Detail |
---|
public java.lang.Class getObjectClass()
public java.lang.String getObjectType()
public java.lang.String toString()
toString
in class NetworkNode
public void setConnectionURL(java.lang.String connectionURL)
connectionURL
- The connectionURLpublic java.lang.String getPingConnectionURL()
public void setPingConnectionURL(java.lang.String pingConnectionURL)
pingConnectionURL
- The pingConnectionURL
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |