|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.units.AMeasure
faa.tg.units.Angle
faa.tg.units.Latitude
public class Latitude
Latitude represents the object for measuring units of Latitude. The standard map sign conventions used are: North latitude = "+" degrees, South latitude = "-" degrees.See section 5.6 of the Detailed Design Document for a discussion of design issues. See the source: Latitude.java
AUnits,
AMeasure,
Angle,
Longitude,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID. |
static Latitude |
MAX
|
static Latitude |
MIN
|
(package private) static long |
serialVersionUID
|
static Latitude |
ZERO
|
| Fields inherited from class faa.tg.units.Angle |
|---|
D180_DIV_PI, DEG_1, DEG_180, DEG_270, DEG_30, DEG_330, DEG_5, DEG_60, DEG_90, DEG_NEG180, DEG_NEG270, DEG_NEG30, DEG_NEG5, DEG_NEG90, DEG_PER_RAD, NEG_NINETY_DEG, NEG_ONEEIGHTY_DEG, NINETY_DEG, ONEEIGHTY_DEG, PI, PI_DIV_180, PI_DIV_2, PI_DIV_4, PI_MUL_2, PI_MUL_4, RAD_PER_DEG, THIRTY_DEG, THREETHIRTY_DEG, TWOSEVENTY_DEG |
| Fields inherited from class faa.tg.units.AMeasure |
|---|
DEC0, DEC0_, DEC00, DEC000, DEC1, DEC1_, DEC12, DEC12_, DEC1L, DEC1L_, DEC2, DEC2_, DEC3, DEC3_, DEC4, DEC4_, DEC5, DEC5_, DEC6, DEC6_, DEC7, DEC7_, DEC9, DEC9_, itsValue, TIME_FRACTION |
| Constructor Summary | |
|---|---|
Latitude(DMSString dms)
Constructor for the Latitude class. |
|
Latitude(double theValue,
AngleUnits theUnits)
Constructor for the Latitude class. |
|
Latitude(Latitude origLat,
LatitudeRate rate,
Time timeToTravel)
Constructor for the Latitude class that uses a reference latitude, a latitude rate and a time interval to travel at the specified rate. |
|
Latitude(java.lang.String dms)
Constructor for the Latitude class that takes a string with degrees or degrees-minutes-seconds in DD-MM-SS[.SSS] (and a few other formats). |
|
| Method Summary | |
|---|---|
Latitude |
add(Latitude theMeasure)
This summation method adds a value with like units. |
void |
checkValid()
Checks for an invalid Latitude (value must be in range -90 to 90). |
boolean |
eq(Latitude theMeasure)
This method provides a test for equality. |
boolean |
ge(Latitude theMeasure)
This method provides a test for greater than / equal to. |
boolean |
gt(Latitude theMeasure)
This method provides a test for greater than. |
boolean |
le(Latitude theMeasure)
This method provides a test for less than / equal to. |
boolean |
lt(Latitude theMeasure)
This method provides a test for less than. |
static void |
main(java.lang.String[] args)
Test case for Latitude that displays parsed parameter as degrees, as a DDD-MM-SS string, and as radians. |
double |
ratio(Latitude val)
This division method produces a dimensionless ratio of like measures. |
Latitude |
sub(Latitude theMeasure)
This subtraction method subtracts a value with like units. |
java.lang.String |
toDmsString()
Converts Latitude to a string of form DD-MM-SS.SSSd (~0.1 ft precision). |
java.lang.String |
toString()
Returns a String representation of this object in the form with which it was created. |
java.lang.String |
toXpvdString()
Converts Latitude to a string of the format used as XPVD input: DDMMSS. |
| Methods inherited from class faa.tg.units.Angle |
|---|
abs, add, aeq, as, average, cos, diff, eq, ge, gt, isBetween, le, lt, parseDmsString, ratio, reciprocalAngle, removeDelimiters, sin, sub, tan, toRadialString, toText |
| Methods inherited from class faa.tg.units.AMeasure |
|---|
absoluteValue, add, as, as, clone, compareTo, debug, div, eq, equals, ge, getAUnit, getCanonicalUnit, getCanonicalValue, getInitialUnit, getUnitClass, gt, hashCode, isBetween, le, lt, mul, ratio, sub, toAMeasure, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
public static final Latitude ZERO
public static final Latitude MAX
public static final Latitude MIN
| Constructor Detail |
|---|
public Latitude(double theValue,
AngleUnits theUnits)
throws java.lang.NumberFormatException
theValue - The magnitude of the latitude as a double.theUnits - The units of the value that will be stored (ex: deg)
java.lang.NumberFormatExceptionUnits
public Latitude(java.lang.String dms)
throws java.lang.NumberFormatException
dms - A String containing a DMS string.
java.lang.NumberFormatExceptionfor format list.
public Latitude(DMSString dms)
throws java.lang.NumberFormatException
dms - A string of type DMSString.
java.lang.NumberFormatException
public Latitude(Latitude origLat,
LatitudeRate rate,
Time timeToTravel)
origLat - The reference latitude to travel from.rate - The rate of change of the latitude.timeToTravel - The time interval to travel at the specified rate.| Method Detail |
|---|
public void checkValid()
throws java.lang.NumberFormatException
java.lang.NumberFormatException - If value was invalid.public Latitude add(Latitude theMeasure)
theMeasure - The latitude you wish to add to this measure.
public Latitude sub(Latitude theMeasure)
theMeasure - The latitude you wish to subtract from this measure.
public double ratio(Latitude val)
public boolean eq(Latitude theMeasure)
public boolean lt(Latitude theMeasure)
public boolean gt(Latitude theMeasure)
public boolean ge(Latitude theMeasure)
public boolean le(Latitude theMeasure)
public java.lang.String toDmsString()
toDmsString in class Anglepublic java.lang.String toString()
toString in class AngleUnitspublic java.lang.String toXpvdString()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||