|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.placelab.mapper.Beacon
org.placelab.mapper.BluetoothBeacon
| Constructor Summary | |
BluetoothBeacon()
|
|
| Method Summary | |
void |
fromHashMap(java.util.Hashtable keyValues)
Loads the Beacon from a HashMap where values are keyed by the appropriate fields for the Beacon type in Types |
java.lang.String |
getBluetoothAddress()
|
java.lang.String |
getHumanReadableName()
|
java.lang.String |
getId()
Returns the bluetooth address (in general, should be a unique ID) |
int |
getMaximumRange()
Gets a sensible maximum range, further than which the Beacon won't be detectable |
java.lang.String[] |
getNeighborhood()
Gets an array of unique ids for the neighboring Beacons seen in the same scan as this Beacon. |
Coordinate |
getPosition()
Gets the position for where this Beacon resides in the world |
java.lang.String |
getType()
Gets the type of this Beacon as a String. |
void |
setBluetoothAddress(java.lang.String bluetoothAddress)
|
void |
setHumanReadableName(java.lang.String humanReadableName)
|
void |
setNeighborhood(java.lang.String[] nbrs)
Sets the array of unique ids for the neighboring Beacons seen in the same scan as this Beacon. |
void |
setPosition(Coordinate position)
|
java.util.Hashtable |
toHashMap()
Stores the Beacon into a HashMap where values are keyed by the appropriate fields for the Beacon type in Types |
| Methods inherited from class org.placelab.mapper.Beacon |
create, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BluetoothBeacon()
| Method Detail |
public void fromHashMap(java.util.Hashtable keyValues)
BeaconTypes
fromHashMap in class Beaconpublic java.util.Hashtable toHashMap()
BeaconTypes
toHashMap in class Beaconpublic java.lang.String getType()
BeaconTypes
getType in class Beaconpublic java.lang.String getBluetoothAddress()
public void setBluetoothAddress(java.lang.String bluetoothAddress)
bluetoothAddress - The bluetoothAddress to set.public java.lang.String getHumanReadableName()
public void setHumanReadableName(java.lang.String humanReadableName)
humanReadableName - The humanReadableName to set.public Coordinate getPosition()
Beacon
getPosition in class Beaconpublic void setPosition(Coordinate position)
position - The position to set.public java.lang.String getId()
getId in class BeaconBeacon.getId()public java.lang.String[] getNeighborhood()
NeighborhoodBeacon
getNeighborhood in interface NeighborhoodBeaconpublic void setNeighborhood(java.lang.String[] nbrs)
NeighborhoodBeacon
setNeighborhood in interface NeighborhoodBeaconpublic int getMaximumRange()
Beacon
getMaximumRange in class Beacon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||