|
||||||||||
| 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.TrueBearing
faa.tg.units.GroundTrackHeading
public class GroundTrackHeading
GroundTrackHeading represents an object for measuring units of the heading of the ground track of aircraft, in relation to the bearing of true north. This is only equivalent to the TrueHeading if there is no wind and the aircraft is not changing altitude (TrueHeading is the direction of the airspeed vector in our 4 DOF model).See section 5.6 of the Detailed Design Document for a discussion of design issues.
See the source: GroundTrackHeading.java
AMeasure,
Angle,
Units.radians,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
static GroundTrackHeading |
DEG_180
|
static GroundTrackHeading |
DEG_270
|
static GroundTrackHeading |
DEG_30
|
static GroundTrackHeading |
DEG_360
|
static GroundTrackHeading |
DEG_5
|
static GroundTrackHeading |
DEG_90
|
(package private) static long |
serialVersionUID
|
static GroundTrackHeading |
ZERO
A zero value is equal to 360 degrees when normalized. |
| Fields inherited from class faa.tg.units.TrueBearing |
|---|
DEG_60 |
| Fields inherited from class faa.tg.units.Angle |
|---|
D180_DIV_PI, DEG_1, DEG_330, 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 | |
|---|---|
GroundTrackHeading(double theValue,
AngleUnits theUnits)
Constructor for the GroundTrackHeading class. |
|
GroundTrackHeading(java.lang.String dmsStr)
Constructor for GroundTrackHeading that parses a parameter string to determine its value. |
|
| Method Summary | |
|---|---|
boolean |
eq(GroundTrackHeading theMeasure)
This method provides a test for equality. |
boolean |
ge(GroundTrackHeading theMeasure)
This method provides a test for greater than / equal to. |
boolean |
gt(GroundTrackHeading theMeasure)
This method provides a test for greater than. |
boolean |
le(GroundTrackHeading theMeasure)
This method provides a test for less than / equal to. |
boolean |
lt(GroundTrackHeading theMeasure)
This method provides a test for less than. |
static void |
main(java.lang.String[] args)
|
double |
ratio(GroundTrackHeading val)
This division method produces a dimensionless ratio of like measures. |
java.lang.String |
toString()
Returns the String representation of this object in the form with which it was created. |
| Methods inherited from class faa.tg.units.TrueBearing |
|---|
calcTurnAngle, eq, ge, getFuzzyString, gt, le, lt, normalizeRange, ratio, reciprocal, sub, toTrueBearing |
| 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, toDmsString, 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 GroundTrackHeading ZERO
public static final GroundTrackHeading DEG_5
public static final GroundTrackHeading DEG_30
public static final GroundTrackHeading DEG_90
public static final GroundTrackHeading DEG_180
public static final GroundTrackHeading DEG_270
public static final GroundTrackHeading DEG_360
| Constructor Detail |
|---|
public GroundTrackHeading(double theValue,
AngleUnits theUnits)
theValue - the magnitude of GroundTrackHeading as a doubletheUnits - the units of the value that will be stored (ex: km)
public GroundTrackHeading(java.lang.String dmsStr)
throws java.lang.NumberFormatException
ddd-mm-ss.sss ddd-mm-ss ddd-mm.mmm ddd-mm ddd.ddd dd-mm-ss.sss dd-mm-ss dd-mm.mmm dd-mm dd.ddd ddd:mm:ss.sss ddd:mm:ss ddd:mm.mmm ddd:mm ddd dd:mm:ss.sss dd:mm:ss dd:mm.mmm dd:mm dd dddmmss.sss dddmmss dddmm.mmm dddmm ddmmss.sss ddmmss ddmm.mmm ddmmIn addition, the string may start or end with one of the following hemisphere designation characters:
N S E W + -
Note: the degrees field must have either 2 or 3 digits; minutes and
seconds fields (not including decimal fraction) must be 2 digits.
dmsStr - A String in degrees:minutes:seconds format.
If in [D]DD:MM:SS, the string should start or end with
a N-S, E-W or +/- direction designator.
java.lang.NumberFormatException - If the string could not be parsed.Angle.parseDmsString(String)| Method Detail |
|---|
public double ratio(GroundTrackHeading val)
public boolean eq(GroundTrackHeading theMeasure)
public boolean lt(GroundTrackHeading theMeasure)
public boolean gt(GroundTrackHeading theMeasure)
public boolean le(GroundTrackHeading theMeasure)
public boolean ge(GroundTrackHeading theMeasure)
public java.lang.String toString()
toString in class TrueBearingUnitspublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||