|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.RevolutionsPerMinute
public class RevolutionsPerMinute
Defines revolutions per minute.
| Field Summary | |
|---|---|
private int |
_rpm
the RPM |
private static int |
DEFAULT_RPM
the default RPM |
| Constructor Summary | |
|---|---|
RevolutionsPerMinute()
Creates an RPM object with a default 0. |
|
RevolutionsPerMinute(int rpm)
Creates an RPM object. |
|
| Method Summary | |
|---|---|
RevolutionsPerMinute |
add_(RevolutionsPerMinute rpm)
Adds another unit to this one. |
int |
compareTo(RevolutionsPerMinute rpm)
|
double |
getValue_()
Returns the numerical value of this unit. |
private void |
setValue(int rpm)
Sets the RPM. |
RevolutionsPerMinute |
subtract_(RevolutionsPerMinute rpm)
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 int _rpm
private static int DEFAULT_RPM
| Constructor Detail |
|---|
public RevolutionsPerMinute()
public RevolutionsPerMinute(int rpm)
rpm - - the non-negative RPM| Method Detail |
|---|
public RevolutionsPerMinute add_(RevolutionsPerMinute rpm)
add_ in interface I_Unitable<RevolutionsPerMinute>rpm - - the unit
public int compareTo(RevolutionsPerMinute rpm)
compareTo in interface java.lang.Comparable<RevolutionsPerMinute>public double getValue_()
getValue_ in interface I_Unitable<RevolutionsPerMinute>private void setValue(int rpm)
rpm - - the non-negative RPMpublic RevolutionsPerMinute subtract_(RevolutionsPerMinute rpm)
subtract_ in interface I_Unitable<RevolutionsPerMinute>rpm - - 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 | ||||||||