org.placelab.core
Class Types

java.lang.Object
  extended byorg.placelab.core.Types

public class Types
extends java.lang.Object

Maintains List of classes and factory methods for generic types.


Field Summary
static java.lang.String ANTENNAHEIGHT
           
static java.lang.String AREAID
           
static java.lang.String BLUETOOTH
           
static java.lang.String BLUETOOTH_ADDRESS
           
static java.lang.String BSSID
           
static java.lang.String CELLID
           
protected  java.lang.Class coordClass
           
static java.lang.String COORDPROPERTY
           
static java.lang.String COURSEOVERGROUND
           
static java.lang.String DATEOFFIX
           
static java.lang.String DIFFERENTIALGPSDATAAGE
           
static java.lang.String DIFFERENTIALREFERENCESTATIONID
           
static java.lang.String ELEVATION
           
static java.lang.String EMPTY_BT
           
static java.lang.String EMPTY_GSM
           
static java.lang.String EMPTY_WIFI
           
protected  java.lang.Class estimateClass
           
static java.lang.String FIXEDTWODCOORDINATE
           
static java.lang.String GEOIDALHEIGHT
           
static java.lang.String GPS
           
static java.lang.String GPSQUALITY
           
static java.lang.String GSM
           
static java.lang.String HORIZONTALDILUTIONOFPRECISION
           
static java.lang.String HUMANREADABLENAME
           
static java.lang.String ID
           
static java.lang.String INFR
           
static java.lang.String LATITUDE
           
static java.lang.String LATITUDEHEMISPHERE
           
static java.lang.String LONGITUDE
           
static java.lang.String LONGITUDEHEMISPHERE
           
static java.lang.String MAGNETICVARIATION
           
static java.lang.String MAGNETICVARIATIONDIRECTION
           
static java.lang.String MAJOR_DEVICE_CLASS
           
static java.lang.String MCC
           
static java.lang.String MINOR_DEVICE_CLASS
           
static java.lang.String MNC
           
static java.lang.String MODE
           
static java.lang.String NEIGHBORHOOD
           
static int NETSTUMBLER_RSSI_ADJUSTMENT
           
static java.lang.String NETWORK_NAME
           
static java.lang.String NUMOFSATELLITES
           
static java.lang.String PERCENTAGE
           
static java.lang.String RSSI
           
static java.lang.String SERVICE_CLASSES
           
static java.lang.String SERVICE_CLASSES_LIST
           
static java.lang.String SIGNAL
           
static java.lang.String SPEEDOVERGROUND
           
static java.lang.String SSID
           
static java.lang.String STATUS
           
static Types t
           
static java.lang.String THREEDCOORDINATE
           
static java.lang.String TIME
           
static java.lang.String TIMEOFFIX
           
static java.lang.String TWODCOORDINATE
           
static java.lang.String TYPE
           
static java.lang.String UNKNOWN
           
static java.lang.String WEP
           
static java.lang.String WIFI
           
 
Constructor Summary
Types()
           
 
Method Summary
static void init()
           
static Coordinate newCoordinate()
          Creates a new Coordinate for the Null location.
static Coordinate newCoordinate(java.util.Hashtable map)
          Creates a Coordinate from info stored in a Hashtable.
static Coordinate newCoordinate(java.lang.String lat, java.lang.String lon)
          Creates a new Coordinate for the given latitude and longitude The actual coordinate class used will depend on the platform the code is running on.
static Coordinate newCoordinateFromNMEA(java.lang.String latNMEA, java.lang.String latHem, java.lang.String lonNMEA, java.lang.String lonHem)
          Creates a Coordinate from lat and lon stored as Strings in NMEA format.
static Estimate newEstimate(long timestamp, Coordinate position, java.lang.String stdDevString)
          Utility method for creating the proper Estimate subclass for the platform that the code is currently running on.
static BeaconReading newReading(java.util.Hashtable map)
          Create a new BeaconReading from a HashMap read out of the pipe delimited format for BeaconReadings in log files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

WIFI

public static final java.lang.String WIFI
See Also:
Constant Field Values

BLUETOOTH

public static final java.lang.String BLUETOOTH
See Also:
Constant Field Values

GPS

public static final java.lang.String GPS
See Also:
Constant Field Values

GSM

public static final java.lang.String GSM
See Also:
Constant Field Values

EMPTY_WIFI

public static final java.lang.String EMPTY_WIFI
See Also:
Constant Field Values

EMPTY_BT

public static final java.lang.String EMPTY_BT
See Also:
Constant Field Values

EMPTY_GSM

public static final java.lang.String EMPTY_GSM
See Also:
Constant Field Values

UNKNOWN

public static final java.lang.String UNKNOWN
See Also:
Constant Field Values

TIME

public static final java.lang.String TIME
See Also:
Constant Field Values

ID

public static final java.lang.String ID
See Also:
Constant Field Values

HUMANREADABLENAME

public static final java.lang.String HUMANREADABLENAME
See Also:
Constant Field Values

LATITUDE

public static final java.lang.String LATITUDE
See Also:
Constant Field Values

LONGITUDE

public static final java.lang.String LONGITUDE
See Also:
Constant Field Values

ELEVATION

public static final java.lang.String ELEVATION
See Also:
Constant Field Values

NEIGHBORHOOD

public static final java.lang.String NEIGHBORHOOD
See Also:
Constant Field Values

BSSID

public static final java.lang.String BSSID
See Also:
Constant Field Values

SSID

public static final java.lang.String SSID
See Also:
Constant Field Values

RSSI

public static final java.lang.String RSSI
See Also:
Constant Field Values

WEP

public static final java.lang.String WEP
See Also:
Constant Field Values

INFR

public static final java.lang.String INFR
See Also:
Constant Field Values

BLUETOOTH_ADDRESS

public static final java.lang.String BLUETOOTH_ADDRESS
See Also:
Constant Field Values

MAJOR_DEVICE_CLASS

public static final java.lang.String MAJOR_DEVICE_CLASS
See Also:
Constant Field Values

MINOR_DEVICE_CLASS

public static final java.lang.String MINOR_DEVICE_CLASS
See Also:
Constant Field Values

SERVICE_CLASSES_LIST

public static final java.lang.String SERVICE_CLASSES_LIST
See Also:
Constant Field Values

SERVICE_CLASSES

public static final java.lang.String SERVICE_CLASSES
See Also:
Constant Field Values

CELLID

public static final java.lang.String CELLID
See Also:
Constant Field Values

AREAID

public static final java.lang.String AREAID
See Also:
Constant Field Values

MCC

public static final java.lang.String MCC
See Also:
Constant Field Values

MNC

public static final java.lang.String MNC
See Also:
Constant Field Values

SIGNAL

public static final java.lang.String SIGNAL
See Also:
Constant Field Values

PERCENTAGE

public static final java.lang.String PERCENTAGE
See Also:
Constant Field Values

ANTENNAHEIGHT

public static final java.lang.String ANTENNAHEIGHT
See Also:
Constant Field Values

COURSEOVERGROUND

public static final java.lang.String COURSEOVERGROUND
See Also:
Constant Field Values

DATEOFFIX

public static final java.lang.String DATEOFFIX
See Also:
Constant Field Values

DIFFERENTIALGPSDATAAGE

public static final java.lang.String DIFFERENTIALGPSDATAAGE
See Also:
Constant Field Values

DIFFERENTIALREFERENCESTATIONID

public static final java.lang.String DIFFERENTIALREFERENCESTATIONID
See Also:
Constant Field Values

GEOIDALHEIGHT

public static final java.lang.String GEOIDALHEIGHT
See Also:
Constant Field Values

GPSQUALITY

public static final java.lang.String GPSQUALITY
See Also:
Constant Field Values

HORIZONTALDILUTIONOFPRECISION

public static final java.lang.String HORIZONTALDILUTIONOFPRECISION
See Also:
Constant Field Values

LATITUDEHEMISPHERE

public static final java.lang.String LATITUDEHEMISPHERE
See Also:
Constant Field Values

LONGITUDEHEMISPHERE

public static final java.lang.String LONGITUDEHEMISPHERE
See Also:
Constant Field Values

MAGNETICVARIATION

public static final java.lang.String MAGNETICVARIATION
See Also:
Constant Field Values

MAGNETICVARIATIONDIRECTION

public static final java.lang.String MAGNETICVARIATIONDIRECTION
See Also:
Constant Field Values

MODE

public static final java.lang.String MODE
See Also:
Constant Field Values

NUMOFSATELLITES

public static final java.lang.String NUMOFSATELLITES
See Also:
Constant Field Values

STATUS

public static final java.lang.String STATUS
See Also:
Constant Field Values

TIMEOFFIX

public static final java.lang.String TIMEOFFIX
See Also:
Constant Field Values

SPEEDOVERGROUND

public static final java.lang.String SPEEDOVERGROUND
See Also:
Constant Field Values

NETWORK_NAME

public static final java.lang.String NETWORK_NAME
See Also:
Constant Field Values

NETSTUMBLER_RSSI_ADJUSTMENT

public static final int NETSTUMBLER_RSSI_ADJUSTMENT
See Also:
Constant Field Values

TWODCOORDINATE

public static final java.lang.String TWODCOORDINATE
See Also:
Constant Field Values

FIXEDTWODCOORDINATE

public static final java.lang.String FIXEDTWODCOORDINATE
See Also:
Constant Field Values

THREEDCOORDINATE

public static final java.lang.String THREEDCOORDINATE
See Also:
Constant Field Values

COORDPROPERTY

public static final java.lang.String COORDPROPERTY
See Also:
Constant Field Values

t

public static Types t

coordClass

protected java.lang.Class coordClass

estimateClass

protected java.lang.Class estimateClass
Constructor Detail

Types

public Types()
Method Detail

init

public static void init()

newCoordinate

public static Coordinate newCoordinate()
Creates a new Coordinate for the Null location.

See Also:
newCoordinate(String, String)

newCoordinate

public static Coordinate newCoordinate(java.lang.String lat,
                                       java.lang.String lon)
Creates a new Coordinate for the given latitude and longitude The actual coordinate class used will depend on the platform the code is running on.


newCoordinate

public static Coordinate newCoordinate(java.util.Hashtable map)
Creates a Coordinate from info stored in a Hashtable.

See Also:
Coordinate.constructFromMap(Hashtable)

newCoordinateFromNMEA

public static Coordinate newCoordinateFromNMEA(java.lang.String latNMEA,
                                               java.lang.String latHem,
                                               java.lang.String lonNMEA,
                                               java.lang.String lonHem)
Creates a Coordinate from lat and lon stored as Strings in NMEA format.

See Also:
Coordinate.constructFromNMEA(String, String, String, String)

newReading

public static BeaconReading newReading(java.util.Hashtable map)
Create a new BeaconReading from a HashMap read out of the pipe delimited format for BeaconReadings in log files.

See Also:
BeaconReading.toLogString()

newEstimate

public static Estimate newEstimate(long timestamp,
                                   Coordinate position,
                                   java.lang.String stdDevString)
Utility method for creating the proper Estimate subclass for the platform that the code is currently running on.

Parameters:
timestamp - the time for the Estimate
position - Coordinate representing estimated position
stdDevString - String representing estimated error in metres