|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.location.Location.Base
org.hd.d.pg2k.svrCore.location.Location.Time
org.hd.d.pg2k.svrCore.location.Location.Estd
public static final class Location.Estd
Earth-standard coordinates. Eastings and Northings, with optional altitude above mean sea level (in metres).
This class is immutable.
Time is handled by a base class if any.
TODO: needs to validate on deserialisation.
| Field Summary | |
|---|---|
private Location.DoubleValueAndBounds |
Alt
How many metres above mean sea level are we? |
private Location.DoubleValueAndBounds |
E
How many degrees East are we? |
static int |
MAX_E
Get maximum value for E (positive); minimum is negation of this. |
static int |
MAX_N
Get maximum value for N (positive); minimum is negation of this. |
private Location.DoubleValueAndBounds |
N
How many degrees North are we? |
private static long |
serialVersionUID
Unique Serialisation class ID generated by http://random.hd.org/. |
static Location.Estd |
WHOLE_EARTH
"Whole Earth" value; not null. |
| Fields inherited from class org.hd.d.pg2k.svrCore.location.Location.Base |
|---|
specific, specificKey, type, typeKey |
| Constructor Summary | |
|---|---|
Location.Estd(boolean _specific,
java.lang.String prefix,
java.util.Properties p)
Build Earth-standard coordinates in WGS84 space. |
|
| Method Summary | |
|---|---|
boolean |
containsArea(Location.Estd other)
True if this Location and bounding box contains the bounding box of the argument Location. |
boolean |
containsCentre(Location.Estd other)
True if this Location and bounding box contains the centre of the argument Location. |
boolean |
equals(java.lang.Object obj)
Depends on all the elements of this class and base classes. |
Location.DoubleValueAndBounds |
getAlt()
Get the altitude in metres; null indicates not known. |
Location.DoubleValueAndBounds |
getE()
Get the Easting value; never null. |
Location.DoubleValueAndBounds |
getN()
Get the Northing value; never null. |
int |
hashCode()
Depends on base hash plus E and N values. |
boolean |
isLargerThan(Location.Estd other)
True if this Location is "bigger" than that of its argument. |
boolean |
strictlyContainsArea(Location.Estd other)
True if this Location and bounding box strictly contains the bounding box of the argument Location. |
java.lang.String |
toString()
Get value as a String. |
| Methods inherited from class org.hd.d.pg2k.svrCore.location.Location.Time |
|---|
getTime |
| Methods inherited from class org.hd.d.pg2k.svrCore.location.Location.Base |
|---|
buildFromFile, buildFromFileOrNONE, buildFromProperties, buildFromProperties, getBooleanProp, getDoubleProp, getDoubleProps, getLongProp, getLongProps |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_E
public static final int MAX_N
private final Location.DoubleValueAndBounds E
private final Location.DoubleValueAndBounds N
private final Location.DoubleValueAndBounds Alt
public static final Location.Estd WHOLE_EARTH
private static final long serialVersionUID
| Constructor Detail |
|---|
public Location.Estd(boolean _specific,
java.lang.String prefix,
java.util.Properties p)
throws PGException
PGException| Method Detail |
|---|
public final Location.DoubleValueAndBounds getE()
public final Location.DoubleValueAndBounds getN()
public final Location.DoubleValueAndBounds getAlt()
public boolean isLargerThan(Location.Estd other)
public boolean containsArea(Location.Estd other)
public boolean strictlyContainsArea(Location.Estd other)
public boolean containsCentre(Location.Estd other)
public int hashCode()
hashCode in class Location.Timepublic boolean equals(java.lang.Object obj)
equals in class Location.Timepublic java.lang.String toString()
toString in class Location.Time
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||