|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Unit
represents some multiple of a UnitType
.
That multiple is equivalent to the power by which a UnitType
is raised.
For example, a Measurement
of five square meters (5 [m^2]) has a Length Unit
raised to the power of two (2).
Method Summary | |
double |
getPower()
The power that the UnitType has been raised to. |
UnitType |
getType()
A reference to UnitType that this Unit is a multiple of. |
void |
setPower(double power)
The power that this Unit should be set to. |
Method Detail |
public UnitType getType()
UnitType
that this Unit
is a multiple of.
UnitType
that this Unit
is a multiple of.public double getPower()
UnitType
has been raised to.
UnitType
has been raised to.public void setPower(double power)
Unit
should be set to.
power
- The power that this Unit
should be set to.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |