|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.units.Dimension
ucar.units.QuantityDimension
public final class QuantityDimension
Provides support for the dimension of a quantity. For example, the dimension of the quantity "force" is "M.L.t-2".
Field Summary |
---|
Fields inherited from class ucar.units.Dimension |
---|
_factors |
Constructor Summary | |
---|---|
|
QuantityDimension()
Constructs from nothing. |
|
QuantityDimension(BaseQuantity baseQuantity)
Constructs from a base quantity. |
protected |
QuantityDimension(Factor[] factors)
Constructs from an array of Factor-s. |
Method Summary | |
---|---|
QuantityDimension |
divideBy(QuantityDimension that)
Divides this quantity dimension by another quantity dimension. |
static void |
main(String[] args)
Tests this class. |
QuantityDimension |
multiplyBy(QuantityDimension that)
Multiplies this quantity dimension by another quantity dimension. |
QuantityDimension |
raiseTo(int power)
Raises this quantity 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 QuantityDimension()
public QuantityDimension(BaseQuantity baseQuantity)
baseQuantity
- The base quantity constituting the dimension.protected QuantityDimension(Factor[] factors)
factors
- The Factor-s constituting the dimension.Method Detail |
---|
public QuantityDimension multiplyBy(QuantityDimension that)
that
- The other quantity dimension.
public QuantityDimension divideBy(QuantityDimension that)
that
- The quantity dimension to divide this
quantity dimension by.
public QuantityDimension raiseTo(int power)
power
- The power to raise this quantity dimension by.
power
.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 |