|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.placelab.mapper.SimpleMapper
A stub/do-nothing Mapper meant to be subclassed
| Constructor Summary | |
SimpleMapper()
|
|
| 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. |
boolean |
isOpened()
|
java.util.Enumeration |
iterator()
|
boolean |
open()
Opens the Mapper. |
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 list)
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.placelab.mapper.Mapper |
findBeacons, overrideOnPut |
| Constructor Detail |
public SimpleMapper()
| Method Detail |
public Beacon findBeacon(java.lang.String id)
Mapper
findBeacon in interface Mapperid - the unique identifier for the Beacon
public boolean putBeacons(java.lang.String id,
java.util.Vector list)
Mapper
putBeacons in interface Mapperid - the unique id to key the Beacons tolist - the Beacons to add
public boolean putBeacon(java.lang.String id,
Beacon beacon)
Mapper
putBeacon in interface Mapperid - the unique id for the Beaconbeacon - a new Beacon to be put into the Mapper
public Beacon createBeacon(java.lang.String keyValuePairs)
Mapper
createBeacon in interface Mapperpublic boolean close()
Mapper
close in interface Mapperpublic boolean deleteAll()
Mapper
deleteAll in interface Mapperpublic void endBulkPuts()
endBulkPuts in interface Mapperpublic boolean isOpened()
isOpened in interface Mapperpublic boolean open()
Mapper
open in interface Mapperpublic void startBulkPuts()
Mapper
startBulkPuts in interface MapperMapper.endBulkPuts()public java.util.Enumeration iterator()
public java.util.Enumeration query(Coordinate c1,
Coordinate c2)
Mapper
query in interface Mapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||