ucar.unidata.geoloc
Class StationImpl

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

public class StationImpl
extends EarthLocationImpl
implements Station

Implementation of Station

Author:
caron

Field Summary
protected  String desc
           
protected  String name
           
protected  String wmoId
           
 
Fields inherited from class ucar.unidata.geoloc.EarthLocationImpl
alt, lat, lon
 
Constructor Summary
protected StationImpl()
           
  StationImpl(String name, String desc, String wmoId, double lat, double lon, double alt)
           
 
Method Summary
 int compareTo(Station so)
           
 String getDescription()
          Station description
 String getName()
          Station name or id.
 String getWmoId()
          WMO station id
protected  void setDescription(String desc)
           
protected  void setName(String name)
           
protected  void setWmoId(String wmoId)
           
 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 String name

desc

protected String desc

wmoId

protected String wmoId
Constructor Detail

StationImpl

protected StationImpl()

StationImpl

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

getName

public 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 String getDescription()
Station description

Specified by:
getDescription in interface Station
Returns:
station description

getWmoId

public String getWmoId()
WMO station id

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

setName

protected void setName(String name)

setDescription

protected void setDescription(String desc)

setWmoId

protected void setWmoId(String wmoId)

compareTo

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

toString

public String toString()
Overrides:
toString in class EarthLocationImpl


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