|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.GenericValue
public class GenericValue
Defines a generic double value as an I_Unitable datatype with no specific unit.
| Field Summary | |
|---|---|
private double |
_value
the value |
| Constructor Summary | |
|---|---|
GenericValue(double value)
Creates a generic value. |
|
| Method Summary | |
|---|---|
GenericValue |
add_(GenericValue value)
Adds another unit to this one. |
int |
compareTo(GenericValue value)
|
double |
getValue_()
Returns the numerical value of this unit. |
GenericValue |
subtract_(GenericValue value)
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 final double _value
| Constructor Detail |
|---|
public GenericValue(double value)
value - - the value| Method Detail |
|---|
public GenericValue add_(GenericValue value)
add_ in interface I_Unitable<GenericValue>value - - the unit
public int compareTo(GenericValue value)
compareTo in interface java.lang.Comparable<GenericValue>public double getValue_()
getValue_ in interface I_Unitable<GenericValue>public GenericValue subtract_(GenericValue value)
subtract_ in interface I_Unitable<GenericValue>value - - 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 | ||||||||