public class NamedStationImpl extends java.lang.Object implements NamedStation
Constructor and Description |
---|
NamedStationImpl()
A no-op ctor for unpersiting this
|
NamedStationImpl(java.lang.String name,
visad.georef.NamedLocationTuple in_nLT)
Create a NamedStationImpl from the name and NamedLocation
|
NamedStationImpl(java.lang.String id,
java.lang.String name,
double latitude,
double longitude,
double alt,
visad.Unit unit)
Construct an object to hold and transfer settings for a
landmark, city, observation point, etc.
|
NamedStationImpl(java.lang.String id,
java.lang.String name,
java.util.List coords,
visad.Unit unit)
_more_
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String key,
java.lang.Object value)
Add an extra property
|
int |
compareTo(NamedStationImpl stn)
Compare this NamedStationImpl to another NamedStationImpl.
|
int |
compareTo(java.lang.Object oo)
Compare this NamedStationImpl to another object
|
boolean |
equals(java.lang.Object o)
See if the Object in question is equal to this.
|
visad.Real |
getAltitude()
Get the altitude as a real (value and unit)
|
double |
getAltitudeAsDouble()
Return altitude in units of getAltitudeUnit().
|
visad.Unit |
getAltitudeUnit()
Return
Unit of altitude |
java.util.List |
getCoords()
_more_
|
visad.georef.EarthLocation |
getEarthLocation()
Create, if needed, and return the location of this station
|
java.lang.String |
getID()
Get the station ID.
|
java.lang.String |
getIdentifier()
Get the identifier for this NamedLocation.
|
double |
getLatitude()
Get the latitude.
|
double |
getLongitude()
Get the longitude.
|
java.lang.String |
getName()
Get the station name.
|
visad.georef.NamedLocation |
getNamedLocation()
Get the
NamedLocation for this. |
java.util.Hashtable |
getProperties()
Get the hashtable of extra properties
|
java.lang.Object |
getProperty(java.lang.String key,
java.lang.Object deflt)
Get an extra property
|
void |
setAltitude(visad.Real v)
Set the alitude.
|
void |
setID(java.lang.String v)
Set the station ID.
|
void |
setLatitude(double v)
Set the latitude.
|
void |
setLongitude(double v)
Set the longitude.
|
void |
setName(java.lang.String v)
Get the station name.
|
void |
setNamedLocation(visad.georef.NamedLocation v)
Set the
NamedLocation for this. |
void |
setNamedLocationTuple(visad.georef.NamedLocationTuple v)
Deprecated.
|
void |
setProperties(java.util.Hashtable v)
Set the table of extra properties
|
java.lang.String |
toString()
Return a String representation of this NamedLocation
|
public NamedStationImpl(java.lang.String id, java.lang.String name, double latitude, double longitude, double alt, visad.Unit unit) throws visad.VisADException, java.rmi.RemoteException
id
- typically a letter or number codename
- some kind of name such as "Kansas City" - should be UNIQUE.latitude
- latitude in decimal geographic degreeslongitude
- longitude in decimal geographic degreesalt
- VisAD Real for height above the geoid ("sea level")unit
- VisAD Unit of the altitudejava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic NamedStationImpl(java.lang.String id, java.lang.String name, java.util.List coords, visad.Unit unit) throws visad.VisADException, java.rmi.RemoteException
id
- _more_name
- _more_coords
- _more_unit
- _more_java.rmi.RemoteException
- _more_visad.VisADException
- _more_public NamedStationImpl(java.lang.String name, visad.georef.NamedLocationTuple in_nLT)
name
- station namein_nLT
- NamedLocationpublic NamedStationImpl()
public void setNamedLocationTuple(visad.georef.NamedLocationTuple v)
v
- new NamedLocationTuplepublic java.util.List getCoords()
public visad.georef.EarthLocation getEarthLocation() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic visad.georef.NamedLocation getNamedLocation()
NamedLocation
for this. Used mostly by XML encoder.getNamedLocation
in interface NamedStation
public void setNamedLocation(visad.georef.NamedLocation v)
NamedLocation
for this. Used mostly by XML encoder.setNamedLocation
in interface NamedStation
v
- the NamedLocationpublic double getLatitude()
getLatitude
in interface NamedStation
getLatitude
in interface Station
public void setLatitude(double v)
setLatitude
in interface NamedStation
v
- latitude (degrees)public double getLongitude()
getLongitude
in interface NamedStation
getLongitude
in interface Station
public void setLongitude(double v)
setLongitude
in interface NamedStation
v
- longitude (degrees)public visad.Real getAltitude()
getAltitude
in interface NamedStation
public void setAltitude(visad.Real v)
setAltitude
in interface NamedStation
v
- altitudepublic java.lang.String getID()
getID
in interface NamedStation
public void setID(java.lang.String v)
setID
in interface NamedStation
v
- the station IDpublic java.lang.String getName()
getName
in interface NamedStation
public void setName(java.lang.String v)
setName
in interface NamedStation
v
- the station namepublic boolean equals(java.lang.Object o)
equals
in interface NamedStation
equals
in class java.lang.Object
o
- Object in questionpublic java.lang.String getIdentifier()
getIdentifier
in interface Station
public double getAltitudeAsDouble()
public visad.Unit getAltitudeUnit()
Unit
of altitudepublic java.util.Hashtable getProperties()
public void setProperties(java.util.Hashtable v)
v
- extra propertiespublic void addProperty(java.lang.String key, java.lang.Object value)
key
- property namevalue
- property valuepublic java.lang.Object getProperty(java.lang.String key, java.lang.Object deflt)
key
- property namedeflt
- default value if property doesn't existpublic java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(NamedStationImpl stn)
stn
- other NamedStationImpl to compareComparable
public int compareTo(java.lang.Object oo)
compareTo
in interface java.lang.Comparable
oo
- other object to compare