ucar.unidata.geoloc
Class StationImpl

java.lang.Object
  extended by ucar.unidata.geoloc.EarthLocationImpl
      extended by ucar.unidata.geoloc.StationImpl
All Implemented Interfaces:
java.lang.Comparable<Station>, EarthLocation, Station

public class StationImpl
extends EarthLocationImpl
implements Station

Implementation of Station

Author:
caron

Field Summary
protected  java.lang.String desc
           
protected  java.lang.String name
           
protected  java.lang.String wmoId
           
 
Fields inherited from class ucar.unidata.geoloc.EarthLocationImpl
alt, lat, lon
 
Constructor Summary
protected StationImpl()
           
  StationImpl(java.lang.String name, java.lang.String desc, java.lang.String wmoId, double lat, double lon, double alt)
           
 
Method Summary
 int compareTo(Station so)
           
 java.lang.String getDescription()
          Station description
 java.lang.String getName()
          Station name or id.
 java.lang.String getWmoId()
          WMO station id
protected  void setDescription(java.lang.String desc)
           
protected  void setName(java.lang.String name)
           
protected  void setWmoId(java.lang.String wmoId)
           
 java.lang.String toString()
           
 
Methods inherited from class ucar.unidata.geoloc.EarthLocationImpl
getAltitude, getLatitude, getLatLon, getLongitude, isMissing, setAltitude, setLatitude, setLongitude
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ucar.unidata.geoloc.EarthLocation
getAltitude, getLatitude, getLatLon, getLongitude, isMissing
 

Field Detail

name

protected java.lang.String name

desc

protected java.lang.String desc

wmoId

protected java.lang.String wmoId
Constructor Detail

StationImpl

protected StationImpl()

StationImpl

public StationImpl(java.lang.String name,
                   java.lang.String desc,
                   java.lang.String wmoId,
                   double lat,
                   double lon,
                   double alt)
Method Detail

getName

public java.lang.String getName()
Station name or id. Must be unique within the collection

Specified by:
getName in interface Station
Returns:
station name or id. May not be null.

getDescription

public java.lang.String getDescription()
Station description

Specified by:
getDescription in interface Station
Returns:
station description

getWmoId

public java.lang.String getWmoId()
WMO station id

Specified by:
getWmoId in interface Station
Returns:
WMO station id, or null

setName

protected void setName(java.lang.String name)

setDescription

protected void setDescription(java.lang.String desc)

setWmoId

protected void setWmoId(java.lang.String wmoId)

compareTo

public int compareTo(Station so)
Specified by:
compareTo in interface java.lang.Comparable<Station>

toString

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


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.