ucar.unidata.geoloc
Class StationImpl
java.lang.Object
ucar.unidata.geoloc.EarthLocationImpl
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
name
protected String name
desc
protected String desc
wmoId
protected String wmoId
StationImpl
protected StationImpl()
StationImpl
public StationImpl(String name,
String desc,
String wmoId,
double lat,
double lon,
double alt)
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.