uavsim.datatypes
Interface I_Unitable<_UNIT_>

Type Parameters:
_UNIT_ - - the unit
All Superinterfaces:
java.lang.Comparable<_UNIT_>
All Known Implementing Classes:
A_Angle, A_Attitude, A_Coordinate, A_CoordinateCartesian, A_CoordinatePolar, A_Deviation, A_Frequency, A_LatitudeLongitude, Airspeed, Altitude, AngleMathematical, AngleNavigational, Attitude, AttitudePitch, AttitudeRoll, AttitudeYaw, CoordinateCartesianAbsolute, CoordinateCartesianRelative, CoordinatePolarMathematical, CoordinatePolarNavigational, CoordinatePolarNavigational3D, CoordinateWorld, CoordinateWorld3D, Course, DegreesPerSecond, Deviation, DeviationFree, Distance, FrequencyComponent, GenericValue, Latitude, Longitude, NDBFrequency, Radius, RevolutionsPerMinute, Scaler, Time, Velocity, VOR_ILS_DME_Frequency

public interface I_Unitable<_UNIT_>
extends java.lang.Comparable<_UNIT_>

Declares the capability to do basic manipulation on units of measurement like Time, Latitude, Altitude, etc.

Author:
Dan Tappan [29.06.11]

Method Summary
 _UNIT_ add_(_UNIT_ unit)
          Adds another unit to this one.
 double getValue_()
          Returns the numerical value of this unit.
 _UNIT_ subtract_(_UNIT_ unit)
          Subtract another unit from this one.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

add_

_UNIT_ add_(_UNIT_ unit)
Adds another unit to this one.

Parameters:
unit - - the unit
Returns:
the result as a new unit

getValue_

double getValue_()
Returns the numerical value of this unit.

Returns:
the value

subtract_

_UNIT_ subtract_(_UNIT_ unit)
Subtract another unit from this one.

Parameters:
unit - - the unit
Returns:
the result as a new unit