|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ubicollab.osgi.LocationImpl
public class LocationImpl
Constructor Summary | |
---|---|
LocationImpl(Activator activator)
|
|
LocationImpl(no.ubicollab.osgi.service.pocketdiscovery.PocketDiscoveryService discoveryService,
Activator activator)
|
Method Summary | |
---|---|
boolean |
addLocation(java.lang.String locationName,
double[] longitudes,
double[] latitudes,
int altitude)
Adds a new location to the service's list of locations. |
java.lang.String |
getLocation(double longitude,
double latitude)
Returns the name of the location containing the position specified by the parameters, without considering altitude. |
java.lang.String |
getLocation(double longitude,
double latitude,
int altitude,
int altitudeErrorMargin)
Returns the name of the location containing the position specified by the parameters. |
boolean |
removeLocatoin(java.lang.String locationName)
Removes a location from the service's list of locations. |
void |
saveLocationListToFile()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocationImpl(Activator activator)
public LocationImpl(no.ubicollab.osgi.service.pocketdiscovery.PocketDiscoveryService discoveryService, Activator activator)
Method Detail |
---|
public boolean addLocation(java.lang.String locationName, double[] longitudes, double[] latitudes, int altitude)
LocationService
addLocation
in interface LocationService
locationName
- Name of the new locationlongitudes
- List of longitudes (x-axis) expressed in decimal degrees. Max precision is 6 decimals. Use negative values for westlatitudes
- List of latitudes (y-axis) expressed in decimal degrees. Max precision is 6 decimals. Use negative values on the southern hemisphere
Polygon
public boolean removeLocatoin(java.lang.String locationName)
LocationService
removeLocatoin
in interface LocationService
locationName
- Name of the location to remove
public java.lang.String getLocation(double longitude, double latitude, int altitude, int altitudeErrorMargin)
LocationService
getLocation
in interface LocationService
longitude
- Longitude of the position expressed in decimal degrees. Use negative values for westlatitude
- Latitude of the position expressed in decimal degrees. Use negative values for southaltitude
- Altitude of the positionaltitudeErrorMargin
- Allowed altitude error. public java.lang.String getLocation(double longitude, double latitude)
LocationService
getLocation
in interface LocationService
longitude
- Longitude of the position expressed in decimal degrees. Use negative values for westlatitude
- Latitude of the position expressed in decimal degrees. Use negative values for south
public void saveLocationListToFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |