no.ubicollab.osgi
Class GsmPositioningImpl

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

public class GsmPositioningImpl
extends java.lang.Object
implements PositioningPluginService

This class has been implemented to test the plugin functionality of the Positioning Service. Therefore only the plugin functionality is implemented. The getPosition-method does only return hardcoded positions for some users.

Author:
Andreas Brustad
See Also:
no.ubicollab.osgi.service.positioning.PositioningService

Constructor Summary
GsmPositioningImpl(Activator activator)
           
GsmPositioningImpl(no.ubicollab.osgi.service.pocketdiscovery.PocketDiscoveryService discoveryService, Activator activator)
           
 
Method Summary
 double[] getPosition(java.lang.String username)
          This method is supposed to retrieve a users position from the GSM-network through a Telenor web-service or similar.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GsmPositioningImpl

public GsmPositioningImpl(Activator activator)

GsmPositioningImpl

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

getPosition

public double[] getPosition(java.lang.String username)
This method is supposed to retrieve a users position from the GSM-network through a Telenor web-service or similar. This is currently not implemented. Only hardcoded positions are returned

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.
See Also:
PositioningPluginService.getPosition(java.lang.String)