public class NamedPoint
extends java.lang.Object
Constructor and Description |
---|
NamedPoint()
_more_
|
NamedPoint(java.lang.String id,
java.lang.String name,
double latitude,
double longitude,
double elevation)
Construct an object to hold and transfer settings for a
landmark, city, observation point, etc.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String key,
java.lang.String value)
_more_
|
boolean |
equals(java.lang.Object o)
_more_
|
double |
getElevation()
_more_
|
java.lang.String |
getID()
_more_
|
double |
getLatitude()
_more_
|
double |
getLongitude()
_more_
|
java.lang.String |
getName()
_more_
|
java.util.Hashtable |
getProperties()
_more_
|
void |
setElevation(double v)
_more_
|
void |
setID(java.lang.String v)
_more_
|
void |
setLatitude(double v)
_more_
|
void |
setLongitude(double v)
_more_
|
void |
setName(java.lang.String v)
_more_
|
void |
setProperties(java.util.Hashtable v)
_more_
|
java.lang.String |
toString()
_more_
|
public NamedPoint(java.lang.String id, java.lang.String name, double latitude, double longitude, double elevation)
latitude
- in decimal geographic degreeslongitude
- in decimal geographic degreeselevation
- in meters above the geoid ("sea level")id
- typically a 3- or 4- letter or number codename
- some kind of name like "buoy 32" or "Kansas City"public NamedPoint()
public double getLatitude()
public void setLatitude(double v)
v
- public double getLongitude()
public void setLongitude(double v)
v
- public double getElevation()
public void setElevation(double v)
v
- public java.lang.String getID()
public void setID(java.lang.String v)
v
- public java.lang.String getName()
public void setName(java.lang.String v)
v
- public java.util.Hashtable getProperties()
public void setProperties(java.util.Hashtable v)
v
- public void addProperty(java.lang.String key, java.lang.String value)
key
- value
- public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
-