|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A Coordinate represents a point on EarthModel. It does not expose any methods with doubles, because not all Placelab platforms support floating point math.
| Method Summary | |
void |
constructFromMap(java.util.Hashtable map)
Constructs from a Hashtable. |
void |
constructFromNMEA(java.lang.String latNMEA,
java.lang.String latHem,
java.lang.String lonNMEA,
java.lang.String lonHem)
Constructs a Coordinate from the NMEA specification for Coordinates which is a hemisphere and a lat and lon in hhmm.sssss format. |
void |
constructFromStrings(java.lang.String lat,
java.lang.String lon)
Constructs a Coordinate from String representations of lat and lon as doubles in hh.ddddd format |
Coordinate |
createClone()
|
java.lang.String |
distanceFromAsString(Coordinate other)
|
int |
distanceFromInMeters(Coordinate other)
|
java.lang.String |
getLatitudeAsString()
|
java.lang.String |
getLatitudeHemisphereNMEA()
|
java.lang.String |
getLatitudeNMEA()
|
java.lang.String |
getLongitudeAsString()
|
java.lang.String |
getLongitudeHemisphereNMEA()
|
java.lang.String |
getLongitudeNMEA()
|
boolean |
isNull()
The Null coordinate is a Coordinate which does not map to anywhere at all. |
java.lang.String |
toString()
|
Coordinate |
translate(int north,
int east)
Provides a new Coordinate at a position translated from an existing one |
boolean |
within(Coordinate c1,
Coordinate c2)
c1 and c2 define opposing corners of a rectangular region. |
| Method Detail |
public void constructFromStrings(java.lang.String lat,
java.lang.String lon)
public void constructFromNMEA(java.lang.String latNMEA,
java.lang.String latHem,
java.lang.String lonNMEA,
java.lang.String lonHem)
public void constructFromMap(java.util.Hashtable map)
Types.LATITUDE=latitude as a String in hh.dddddd format Types.LONGITUDE=longitude as a String in hh.ddddd format
Types#newCoordinate(HashMap)public Coordinate createClone()
public boolean isNull()
public boolean within(Coordinate c1,
Coordinate c2)
public Coordinate translate(int north,
int east)
north - the number of meters to translate northeast - the number of meters to translate east
public java.lang.String toString()
public java.lang.String getLatitudeAsString()
public java.lang.String getLongitudeAsString()
public java.lang.String distanceFromAsString(Coordinate other)
public int distanceFromInMeters(Coordinate other)
public java.lang.String getLatitudeNMEA()
public java.lang.String getLongitudeNMEA()
public java.lang.String getLatitudeHemisphereNMEA()
public java.lang.String getLongitudeHemisphereNMEA()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||