uavsim.datatypes
Class A_Deviation<_TYPE_ extends A_Deviation<_TYPE_>>

java.lang.Object
  extended by uavsim.datatypes.A_Deviation<_TYPE_>
Type Parameters:
_TYPE_ - -zzz
All Implemented Interfaces:
java.lang.Comparable<_TYPE_>, I_Unitable<_TYPE_>
Direct Known Subclasses:
Deviation, DeviationFree

public abstract class A_Deviation<_TYPE_ extends A_Deviation<_TYPE_>>
extends java.lang.Object
implements I_Unitable<_TYPE_>

Defines zzz

Author:
Dan Tappan [26.10.11]

Field Summary
protected  double _deviation
          the deviation as a percent
protected static double DEVIATION_MAX
          the maximum deviation as a percent
protected static double DEVIATION_MIN
          the minimum deviation as a percent
 
Constructor Summary
A_Deviation(double deviation)
          Creates a deviation object.
A_Deviation(double deviation, boolean isClamped)
          Creates a deviation object.
 
Method Summary
 int compareTo(_TYPE_ deviation)
          
 double getValue_()
          Returns the numerical value of this unit.
protected abstract  void setValue(double deviation)
          Sets the deviation.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface uavsim.datatypes.I_Unitable
add_, subtract_
 

Field Detail

_deviation

protected double _deviation
the deviation as a percent


DEVIATION_MAX

protected static final double DEVIATION_MAX
the maximum deviation as a percent

See Also:
Constant Field Values

DEVIATION_MIN

protected static final double DEVIATION_MIN
the minimum deviation as a percent

See Also:
Constant Field Values
Constructor Detail

A_Deviation

public A_Deviation(double deviation)
Creates a deviation object.

Parameters:
deviation - - the deviation on the interval [-1,+1].

A_Deviation

public A_Deviation(double deviation,
                   boolean isClamped)
Creates a deviation object.

Parameters:
deviation - - the deviation on the interval [-1,+1].
isClamped - - zzz
Method Detail

compareTo

public int compareTo(_TYPE_ deviation)

Specified by:
compareTo in interface java.lang.Comparable<_TYPE_ extends A_Deviation<_TYPE_>>

getValue_

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

Specified by:
getValue_ in interface I_Unitable<_TYPE_ extends A_Deviation<_TYPE_>>
Returns:
the value

setValue

protected abstract void setValue(double deviation)
Sets the deviation.

Parameters:
deviation - - the deviation

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object