|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.Radius
public class Radius
Defines a mathematical radius.
| Field Summary | |
|---|---|
private double |
_radius
the non-negative length |
| Constructor Summary | |
|---|---|
Radius(double radius)
Creates a radius descriptor. |
|
| Method Summary | |
|---|---|
Radius |
add_(Radius radius)
Adds another unit to this one. |
int |
compareTo(Radius radius)
|
double |
convertToDiameter()
Converts the radius to a diameter. |
double |
getValue_()
Returns the numerical value of this unit. |
int |
getValueInt()
Gets the radius as an integer. |
Radius |
scale(Radius scaler)
Scales the radius according to a scaler provided by another radius. |
Radius |
scale(Scaler scaler)
Scales the radius according to a scaler. |
private void |
setRadius(double radius)
Sets the radius. |
Radius |
subtract_(Radius radius)
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 _radius
| Constructor Detail |
|---|
public Radius(double radius)
radius - - the non-negative length| Method Detail |
|---|
public Radius add_(Radius radius)
add_ in interface I_Unitable<Radius>radius - - the unit
public int compareTo(Radius radius)
compareTo in interface java.lang.Comparable<Radius>public double convertToDiameter()
public double getValue_()
getValue_ in interface I_Unitable<Radius>public int getValueInt()
public Radius scale(Radius scaler)
scaler - - the scaler
public Radius scale(Scaler scaler)
scaler - - the scaler
private void setRadius(double radius)
radius - - the non-negative lengthpublic Radius subtract_(Radius radius)
subtract_ in interface I_Unitable<Radius>radius - - 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 | ||||||||