es.ucm.look.locationProviderWifi
Class WifiLocation

java.lang.Object
  extended by es.ucm.look.locationProviderWifi.WifiLocation

public class WifiLocation
extends java.lang.Object

Location Service implemented as a thread.


Field Summary
static java.lang.String APS
          Access points file.
static java.lang.String ENTRENAMIENTO
          Fingerprints file.
static boolean LOG
          Whether to enable logging or not.
static java.lang.String LOG_FILE
          Log file.
static int MAX_COUNT
          Number of scans for each measurement .
 
Method Summary
static WifiLocation getInstance()
          Returns the service instance
 Lugar getPosicion()
          Returns the current location
 void start(Context context)
          Initialize and starts location service.
 void stop()
          Stops the location service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APS

public static final java.lang.String APS
Access points file.

See Also:
Constant Field Values

ENTRENAMIENTO

public static final java.lang.String ENTRENAMIENTO
Fingerprints file.

See Also:
Constant Field Values

LOG

public static final boolean LOG
Whether to enable logging or not.

See Also:
Constant Field Values

LOG_FILE

public static final java.lang.String LOG_FILE
Log file.

See Also:
Constant Field Values

MAX_COUNT

public static final int MAX_COUNT
Number of scans for each measurement .

See Also:
Constant Field Values
Method Detail

getInstance

public static WifiLocation getInstance()
Returns the service instance

Returns:
Wifi Location object instance

getPosicion

public Lugar getPosicion()
Returns the current location

Returns:
Current location information

start

public void start(Context context)
Initialize and starts location service.

Parameters:
context - Application context.

stop

public void stop()
Stops the location service.