|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.units.Dimension
ucar.units.UnitDimension
public final class UnitDimension
Field Summary |
---|
Fields inherited from class ucar.units.Dimension |
---|
_factors |
Constructor Summary | |
---|---|
UnitDimension()
Constructs a dimensionless unit dimension. |
|
UnitDimension(BaseUnit baseUnit)
Constructs the unit dimension corresponding to a base unit. |
Method Summary | |
---|---|
UnitDimension |
divideBy(UnitDimension that)
Divides this unit dimension by another. |
QuantityDimension |
getQuantityDimension()
Returns the corresponding quantity dimension. |
static void |
main(String[] args)
Tests this class. |
UnitDimension |
multiplyBy(UnitDimension that)
Multiplies this unit dimension by another. |
UnitDimension |
raiseTo(int power)
Raises this unit dimension to a power. |
Methods inherited from class ucar.units.Dimension |
---|
equals, getFactors, getRank, hashCode, isDimensionless, isReciprocalOf, mult, pow, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnitDimension()
public UnitDimension(BaseUnit baseUnit)
baseUnit
- A base unit.Method Detail |
---|
public UnitDimension multiplyBy(UnitDimension that)
that
- The other unit dimension.
public UnitDimension divideBy(UnitDimension that)
that
- The other unit dimension.
public UnitDimension raiseTo(int power)
power
- The power.
public QuantityDimension getQuantityDimension()
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |