ucar.nc2.dt
Class EarthLocationImpl

java.lang.Object
  extended by ucar.nc2.dt.EarthLocationImpl
All Implemented Interfaces:
EarthLocation
Direct Known Subclasses:
StationImpl

public class EarthLocationImpl
extends java.lang.Object
implements EarthLocation

Concrete implementaion of a EarthLocation.

Author:
caron

Field Summary
protected  double alt
           
protected  double lat
           
protected  double lon
           
 
Constructor Summary
EarthLocationImpl()
           
EarthLocationImpl(double lat, double lon, double alt)
           
 
Method Summary
 double getAltitude()
           
 double getLatitude()
           
 double getLongitude()
           
 void setAltitude(double alt)
           
 void setLatitude(double lat)
           
 void setLongitude(double lon)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lat

protected double lat

lon

protected double lon

alt

protected double alt
Constructor Detail

EarthLocationImpl

public EarthLocationImpl()

EarthLocationImpl

public EarthLocationImpl(double lat,
                         double lon,
                         double alt)
Method Detail

getLatitude

public double getLatitude()
Specified by:
getLatitude in interface EarthLocation
Returns:
latitude in decimal degrees north

getLongitude

public double getLongitude()
Specified by:
getLongitude in interface EarthLocation
Returns:
longitude in decimal degrees east

getAltitude

public double getAltitude()
Specified by:
getAltitude in interface EarthLocation
Returns:
altitude in meters; missing = NaN.

setLatitude

public void setLatitude(double lat)

setLongitude

public void setLongitude(double lon)

setAltitude

public void setAltitude(double alt)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object