|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.metdata.NamedStationImpl
public class NamedStationImpl
A class to hold named location information, for a landmark, city, observation point or station, data point, etc. Name should be unique.
| Constructor Summary | |
|---|---|
NamedStationImpl()
A no-op ctor for unpersiting this |
|
NamedStationImpl(String name,
NamedLocationTuple in_nLT)
Create a NamedStationImpl from the name and NamedLocation |
|
NamedStationImpl(String id,
String name,
double latitude,
double longitude,
double alt,
Unit unit)
Construct an object to hold and transfer settings for a landmark, city, observation point, etc. |
|
NamedStationImpl(String id,
String name,
List coords,
Unit unit)
_more_ |
|
| Method Summary | |
|---|---|
void |
addProperty(String key,
Object value)
Add an extra property |
int |
compareTo(NamedStationImpl stn)
Compare this NamedStationImpl to another NamedStationImpl. |
int |
compareTo(Object oo)
Compare this NamedStationImpl to another object |
boolean |
equals(Object o)
See if the Object in question is equal to this. |
Real |
getAltitude()
Get the altitude as a real (value and unit) |
double |
getAltitudeAsDouble()
Return altitude in units of getAltitudeUnit(). |
Unit |
getAltitudeUnit()
Return Unit of altitude |
List |
getCoords()
_more_ |
EarthLocation |
getEarthLocation()
Create, if needed, and return the location of this station |
String |
getID()
Get the station ID. |
String |
getIdentifier()
Get the identifier for this NamedLocation. |
double |
getLatitude()
Get the latitude. |
double |
getLongitude()
Get the longitude. |
String |
getName()
Get the station name. |
NamedLocation |
getNamedLocation()
Get the NamedLocation for this. |
Hashtable |
getProperties()
Get the hashtable of extra properties |
Object |
getProperty(String key,
Object deflt)
Get an extra property |
void |
setAltitude(Real v)
Set the alitude. |
void |
setID(String v)
Set the station ID. |
void |
setLatitude(double v)
Set the latitude. |
void |
setLongitude(double v)
Set the longitude. |
void |
setName(String v)
Get the station name. |
void |
setNamedLocation(NamedLocation v)
Set the NamedLocation for this. |
void |
setNamedLocationTuple(NamedLocationTuple v)
Deprecated. |
void |
setProperties(Hashtable v)
Set the table of extra properties |
String |
toString()
Return a String representation of this NamedLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NamedStationImpl(String id,
String name,
double latitude,
double longitude,
double alt,
Unit unit)
throws VisADException,
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 altitude
RemoteException - Java RMI problem
VisADException - VisAD problem
public NamedStationImpl(String id,
String name,
List coords,
Unit unit)
throws VisADException,
RemoteException
id - _more_name - _more_coords - _more_unit - _more_
RemoteException - _more_
VisADException - _more_
public NamedStationImpl(String name,
NamedLocationTuple in_nLT)
name - station namein_nLT - NamedLocationpublic NamedStationImpl()
| Method Detail |
|---|
public void setNamedLocationTuple(NamedLocationTuple v)
v - new NamedLocationTuplepublic List getCoords()
public EarthLocation getEarthLocation()
throws VisADException,
RemoteException
RemoteException - Java RMI problem
VisADException - VisAD problempublic NamedLocation getNamedLocation()
NamedLocation for this. Used mostly by XML encoder.
getNamedLocation in interface NamedStationpublic void setNamedLocation(NamedLocation v)
NamedLocation for this. Used mostly by XML encoder.
setNamedLocation in interface NamedStationv - the NamedLocationpublic double getLatitude()
getLatitude in interface NamedStationgetLatitude in interface Stationpublic void setLatitude(double v)
setLatitude in interface NamedStationv - latitude (degrees)public double getLongitude()
getLongitude in interface NamedStationgetLongitude in interface Stationpublic void setLongitude(double v)
setLongitude in interface NamedStationv - longitude (degrees)public Real getAltitude()
getAltitude in interface NamedStationpublic void setAltitude(Real v)
setAltitude in interface NamedStationv - altitudepublic String getID()
getID in interface NamedStationpublic void setID(String v)
setID in interface NamedStationv - the station IDpublic String getName()
getName in interface NamedStationpublic void setName(String v)
setName in interface NamedStationv - the station namepublic boolean equals(Object o)
equals in interface NamedStationequals in class Objecto - Object in question
public String getIdentifier()
getIdentifier in interface Stationpublic double getAltitudeAsDouble()
public Unit getAltitudeUnit()
Unit of altitude
public Hashtable getProperties()
public void setProperties(Hashtable v)
v - extra properties
public void addProperty(String key,
Object value)
key - property namevalue - property value
public Object getProperty(String key,
Object deflt)
key - property namedeflt - default value if property doesn't existpublic String toString()
toString in class Objectpublic int compareTo(NamedStationImpl stn)
stn - other NamedStationImpl to compare
Comparablepublic int compareTo(Object oo)
compareTo in interface Comparableoo - other object to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||