|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Mappers find the Beacon object associated with a given id.
If a beacon is not known, the findBeacon() method will return null.
Mappers typically represent the on-disk cache of Beacons in keeping with the placelab philosophy of off-line location computation.
BeaconTracker| Method Summary | |
boolean |
close()
Closes the Mapper. |
Beacon |
createBeacon(java.lang.String keyValuePairs)
Implementation dependent method to unpack a Beacon from the Mapper |
boolean |
deleteAll()
Deletes all Beacon records in the Mapper. |
void |
endBulkPuts()
|
Beacon |
findBeacon(java.lang.String id)
Returns the first Beacon found that has a matching id, or null if no Beacon is returned. |
java.util.Vector |
findBeacons(java.lang.String id)
Find all Beacons in the Mapper that match the given id. |
boolean |
isOpened()
|
boolean |
open()
Opens the Mapper. |
boolean |
overrideOnPut()
|
boolean |
putBeacon(java.lang.String id,
Beacon beacon)
Load a new single Beacon into the Mapper |
boolean |
putBeacons(java.lang.String id,
java.util.Vector beacons)
Put a Vector of Beacons for one unique id into the Mapper |
java.util.Enumeration |
query(Coordinate c1,
Coordinate c2)
c1 and c2 define opposing corners of a rectangular area in which you wish to get an Iterator over all Beacons in that area. |
void |
startBulkPuts()
Signals to the Mapper that it is about to be loaded in bulk. |
| Method Detail |
public boolean open()
public boolean close()
public boolean deleteAll()
public boolean isOpened()
public Beacon findBeacon(java.lang.String id)
id - the unique identifier for the Beaconpublic java.util.Vector findBeacons(java.lang.String id)
id - the unique identifier for the Beacon
public java.util.Enumeration query(Coordinate c1,
Coordinate c2)
public Beacon createBeacon(java.lang.String keyValuePairs)
public boolean putBeacon(java.lang.String id,
Beacon beacon)
id - the unique id for the Beaconbeacon - a new Beacon to be put into the Mapper
public boolean putBeacons(java.lang.String id,
java.util.Vector beacons)
id - the unique id to key the Beacons tobeacons - the Beacons to add
public void startBulkPuts()
endBulkPuts()public void endBulkPuts()
public boolean overrideOnPut()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||