public class StationImpl extends EarthLocationImpl implements Station
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
desc |
protected java.lang.String |
name |
protected int |
nobs |
protected java.lang.String |
wmoId |
alt, lat, lon
Modifier | Constructor and Description |
---|---|
protected |
StationImpl() |
|
StationImpl(Station s,
int nobs) |
|
StationImpl(java.lang.String name,
java.lang.String desc,
java.lang.String wmoId,
double lat,
double lon,
double alt) |
|
StationImpl(java.lang.String name,
java.lang.String desc,
java.lang.String wmoId,
double lat,
double lon,
double alt,
int nobs) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Station so) |
java.lang.String |
getDescription()
Station description
|
java.lang.String |
getName()
Station name or id.
|
int |
getNobs()
get Number of obs at this station
|
java.lang.String |
getWmoId()
WMO station id
|
void |
incrNobs() |
protected void |
setDescription(java.lang.String desc) |
protected void |
setName(java.lang.String name) |
protected void |
setNobs(int nobs) |
protected void |
setWmoId(java.lang.String wmoId) |
java.lang.String |
toString() |
getAltitude, getLatitude, getLatLon, getLongitude, isMissing, setAltitude, setLatitude, setLongitude
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAltitude, getLatitude, getLatLon, getLongitude, isMissing
protected java.lang.String name
protected java.lang.String desc
protected java.lang.String wmoId
protected int nobs
protected StationImpl()
public StationImpl(java.lang.String name, java.lang.String desc, java.lang.String wmoId, double lat, double lon, double alt)
public StationImpl(java.lang.String name, java.lang.String desc, java.lang.String wmoId, double lat, double lon, double alt, int nobs)
public StationImpl(Station s, int nobs)
public java.lang.String getName()
public java.lang.String getDescription()
getDescription
in interface Station
public java.lang.String getWmoId()
public int getNobs()
Station
protected void setName(java.lang.String name)
protected void setDescription(java.lang.String desc)
protected void setWmoId(java.lang.String wmoId)
protected void setNobs(int nobs)
public void incrNobs()
public int compareTo(Station so)
compareTo
in interface java.lang.Comparable<Station>
public java.lang.String toString()
toString
in class EarthLocationImpl