org.placelab.test
Class TestMapper

java.lang.Object
  extended byorg.placelab.mapper.SimpleMapper
      extended byorg.placelab.test.TestMapper
All Implemented Interfaces:
Mapper

public class TestMapper
extends SimpleMapper


Constructor Summary
TestMapper()
           
 
Method Summary
 void addBluetoothBeacon(java.lang.String address, double lat, double lon)
           
 void addBluetoothBeacon(java.lang.String address, TwoDCoordinate c)
           
 void addGSMBeacon(java.lang.String cellid, double latitude, double longitude)
           
 void addGSMBeacon(java.lang.String cellid, TwoDCoordinate c)
           
 void addWiFiBeacon(java.lang.String id, double lat, double lon)
           
 void addWiFiBeacon(java.lang.String id, TwoDCoordinate c)
           
 java.util.Vector findBeacons(java.lang.String id)
          Find all Beacons in the Mapper that match the given id.
 boolean overrideOnPut()
           
 
Methods inherited from class org.placelab.mapper.SimpleMapper
close, createBeacon, deleteAll, endBulkPuts, findBeacon, isOpened, iterator, open, putBeacon, putBeacons, query, startBulkPuts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestMapper

public TestMapper()
Method Detail

addBluetoothBeacon

public void addBluetoothBeacon(java.lang.String address,
                               double lat,
                               double lon)

addBluetoothBeacon

public void addBluetoothBeacon(java.lang.String address,
                               TwoDCoordinate c)

addWiFiBeacon

public void addWiFiBeacon(java.lang.String id,
                          double lat,
                          double lon)

addWiFiBeacon

public void addWiFiBeacon(java.lang.String id,
                          TwoDCoordinate c)

addGSMBeacon

public void addGSMBeacon(java.lang.String cellid,
                         double latitude,
                         double longitude)

addGSMBeacon

public void addGSMBeacon(java.lang.String cellid,
                         TwoDCoordinate c)

findBeacons

public java.util.Vector findBeacons(java.lang.String id)
Description copied from interface: Mapper
Find all Beacons in the Mapper that match the given id.

Parameters:
id - the unique identifier for the Beacon
Returns:
a Vector of all Beacons matching the id in the Mapper that may be empty if no Beacons match.

overrideOnPut

public boolean overrideOnPut()