|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.Airspeed
public class Airspeed
Defines an airspeed. The units are arbitrary as either miles per hour or knots. No internal calculations rely on the units.
| Field Summary | |
|---|---|
private double |
_airspeed
the airspeed |
private static double |
DEFAULT_AIRSPEED
the default airspeed |
| Constructor Summary | |
|---|---|
Airspeed()
Creates an airspeed object with a default speed of zero. |
|
Airspeed(double speed)
Creates an airspeed object. |
|
| Method Summary | |
|---|---|
Airspeed |
add_(Airspeed airspeed)
Adds another unit to this one. |
int |
compareTo(Airspeed airspeed)
|
double |
getValue_()
Returns the numerical value of this unit. |
Airspeed |
interpolate(Airspeed airspeed,
Scaler scaler)
Interpolates between this airspeed and another in the forward direction. |
private void |
setValue(double airspeed)
Sets the airspeed. |
Airspeed |
subtract_(Airspeed airspeed)
Subtract another unit from this one. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private double _airspeed
private static final double DEFAULT_AIRSPEED
| Constructor Detail |
|---|
public Airspeed()
public Airspeed(double speed)
speed - - the speed| Method Detail |
|---|
public Airspeed add_(Airspeed airspeed)
add_ in interface I_Unitable<Airspeed>airspeed - - the unit
public int compareTo(Airspeed airspeed)
compareTo in interface java.lang.Comparable<Airspeed>public double getValue_()
getValue_ in interface I_Unitable<Airspeed>
public Airspeed interpolate(Airspeed airspeed,
Scaler scaler)
airspeed - - the other airspeedscaler - - the scaler between the airspeeds
private void setValue(double airspeed)
airspeed - - the airspeedpublic Airspeed subtract_(Airspeed airspeed)
subtract_ in interface I_Unitable<Airspeed>airspeed - - the unit
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||