org.placelab.test
Class FakeMapper

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

public class FakeMapper
extends SimpleMapper

Used for testing.


Field Summary
static double LAB_LATITUDE_AP_0
           
static double LAB_LATITUDE_AP_1
           
static double LAB_LONGITUDE_AP_0
           
static double LAB_LONGITUDE_AP_1
           
 
Constructor Summary
FakeMapper()
           
 
Method Summary
 java.util.Vector findBeacons(java.lang.String uniqueId)
          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
 

Field Detail

LAB_LATITUDE_AP_0

public static final double LAB_LATITUDE_AP_0
See Also:
Constant Field Values

LAB_LONGITUDE_AP_0

public static final double LAB_LONGITUDE_AP_0
See Also:
Constant Field Values

LAB_LATITUDE_AP_1

public static final double LAB_LATITUDE_AP_1
See Also:
Constant Field Values

LAB_LONGITUDE_AP_1

public static final double LAB_LONGITUDE_AP_1
See Also:
Constant Field Values
Constructor Detail

FakeMapper

public FakeMapper()
Method Detail

findBeacons

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

Parameters:
uniqueId - 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()