no.ubicollab.osgi
Class GpsPositioningImpl

java.lang.Object
  extended by no.ubicollab.osgi.GpsPositioningImpl
All Implemented Interfaces:
PositioningPluginService

public class GpsPositioningImpl
extends java.lang.Object
implements PositioningPluginService


Constructor Summary
GpsPositioningImpl(Activator activator)
           
GpsPositioningImpl(no.ubicollab.osgi.service.pocketdiscovery.PocketDiscoveryService discoveryService, Activator activator)
           
 
Method Summary
 double[] getPosition(java.lang.String username)
          Gets the position of a user
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GpsPositioningImpl

public GpsPositioningImpl(Activator activator)

GpsPositioningImpl

public GpsPositioningImpl(no.ubicollab.osgi.service.pocketdiscovery.PocketDiscoveryService discoveryService,
                          Activator activator)
Method Detail

getPosition

public double[] getPosition(java.lang.String username)
Description copied from interface: PositioningPluginService
Gets the position of a user

Specified by:
getPosition in interface PositioningPluginService
Parameters:
username - The username of the user to be located
Returns:
a double[] of length 3. Where [0] = longitude, [1] = latitude, [2] = altitude, or null if the position of this user is not found.