|
||||||||||
| 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.Speed
faa.tg.units.AltitudeRate
public class AltitudeRate
The AltitudeRate class defines the objects used to quantify the rate of altitude change.See section 5.6 of the Detailed Design Document for a discussion of design issues.
See the source: AltitudeRate.java
AUnits,
AMeasure,
Units.mPerSec,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
(package private) static long |
serialVersionUID
|
static AltitudeRate |
ZERO
|
| Fields inherited from class faa.tg.units.Speed |
|---|
ACCEPTABLE_VARIATION, KTS_1, KTS_10, KTS_20, KTS_25, KTS_40, KTS_5, KTS_50 |
| 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 | |
|---|---|
AltitudeRate(Altitude startAlt,
Altitude endAlt,
Time timeToChg)
Creates an AltitudeRate based on the difference between two altitudes over a period of time. |
|
AltitudeRate(Altitude altChg,
Time timeToChg)
Constructor that takes an altitude change and the period of time to change by that altitude amount. |
|
AltitudeRate(double theValue,
SpeedUnits theUnits)
Constructor for the AltitudeRate class. |
|
| Method Summary | |
|---|---|
AltitudeRate |
add(AltitudeRate theMeasure)
This summation method adds a value with like units. |
double |
as(SpeedUnits theUnits)
The as method extracts the value from a Measure in specified units. |
boolean |
eq(AltitudeRate theMeasure)
This method provides a test for equality. |
boolean |
ge(AltitudeRate theMeasure)
This method provides a test for less than / equal to. |
boolean |
gt(AltitudeRate theMeasure)
This method provides a test for greater than. |
boolean |
le(AltitudeRate theMeasure)
This method provides a test for greater than / equal to. |
boolean |
lt(AltitudeRate theMeasure)
This method provides a test for less than. |
double |
ratio(AltitudeRate val)
This division method produces a dimensionless ratio of like measures. |
AltitudeRate |
sub(AltitudeRate theMeasure)
This subtraction method subtracts a value with like units. |
java.lang.String |
toString()
Returns the String representation of this object in the form it was created. |
| Methods inherited from class faa.tg.units.Speed |
|---|
abs, add, aeq, eq, eq, ge, gt, gt, le, lt, lt, ratio, sub, toSpeed, toString, toString, travelDistance |
| 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 AltitudeRate ZERO
| Constructor Detail |
|---|
public AltitudeRate(double theValue,
SpeedUnits theUnits)
theValue - the magnitude of AltitudeRate as a doubletheUnits - the units of the value that will be stored (ex: km)
public AltitudeRate(Altitude startAlt,
Altitude endAlt,
Time timeToChg)
throws java.lang.ArithmeticException
startAlt - the initial altitude.endAlt - the altitude changed to.timeToChg - the time it took to change altitudes.
java.lang.ArithmeticException - if time is zero.
public AltitudeRate(Altitude altChg,
Time timeToChg)
altChg - the change in altitude during the time specified.timeToChg - the time it took to change by the specified altitude.
java.lang.ArithmeticException - if time is zero.| Method Detail |
|---|
public AltitudeRate add(AltitudeRate theMeasure)
theMeasure - the unit of measure you wish to add to this measure.
public AltitudeRate sub(AltitudeRate theMeasure)
theMeasure - the unit of measure you wish to sub from this measure.
public double ratio(AltitudeRate val)
public boolean eq(AltitudeRate theMeasure)
public boolean lt(AltitudeRate theMeasure)
public boolean gt(AltitudeRate theMeasure)
public boolean ge(AltitudeRate theMeasure)
public boolean le(AltitudeRate theMeasure)
public double as(SpeedUnits theUnits)
as in class SpeedtheUnits - the units of the value that will be returned (ex: km)
public java.lang.String toString()
toString in class Speed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||