es.ucm.look.location
Class LocationManager

java.lang.Object
  extended by es.ucm.look.location.LocationManager

public class LocationManager
extends java.lang.Object

Provides a public API for the location modules.


Constructor Summary
LocationManager(Context context, boolean ins, boolean wifi)
          Initializes the location system.
 
Method Summary
 Point3 getDisplacement()
           
 Point3 getPosition()
          Returns the current position
 Lugar getWifiNode()
          Returns the current wifi node information
 boolean isWalking()
          Returns whether the user is walking or not
 void start()
          Run the selected location systems
 void stop()
          Stops the running location systems
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationManager

public LocationManager(Context context,
                       boolean ins,
                       boolean wifi)
Initializes the location system.

Parameters:
context - Application context
ins - Whether to use the inertial navigation system
wifi - Whether to use the wifi positioning system
Method Detail

getDisplacement

public Point3 getDisplacement()

getPosition

public Point3 getPosition()
Returns the current position


getWifiNode

public Lugar getWifiNode()
Returns the current wifi node information


isWalking

public boolean isWalking()
Returns whether the user is walking or not


start

public void start()
Run the selected location systems


stop

public void stop()
Stops the running location systems