org.netxms.client
Class GeoLocation

java.lang.Object
  extended by org.netxms.client.GeoLocation

public class GeoLocation
extends java.lang.Object

Author:
Victor Kirhenshtein

Field Summary
static int GPS
           
static int MANUAL
           
static int UNSET
           
 
Constructor Summary
GeoLocation()
          Create geolocation object of type UNSET
GeoLocation(double lat, double lon)
          Create geolocation object of type MANUAL
GeoLocation(NXCPMessage msg)
          Create geolocation object from NXCP message
 
Method Summary
 double getLatitude()
           
 double getLongitude()
           
 int getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNSET

public static final int UNSET
See Also:
Constant Field Values

MANUAL

public static final int MANUAL
See Also:
Constant Field Values

GPS

public static final int GPS
See Also:
Constant Field Values
Constructor Detail

GeoLocation

public GeoLocation(NXCPMessage msg)
Create geolocation object from NXCP message

Parameters:
msg - NXCP message

GeoLocation

public GeoLocation()
Create geolocation object of type UNSET


GeoLocation

public GeoLocation(double lat,
                   double lon)
Create geolocation object of type MANUAL

Parameters:
lat - Latitude
lon - Longitude
Method Detail

getType

public int getType()
Returns:
the type

getLatitude

public double getLatitude()
Returns:
the latitude

getLongitude

public double getLongitude()
Returns:
the longitude


Copyright © 2011. All Rights Reserved.