|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.agmodel.physical.AbstractQuantity
net.agmodel.physical.Volume
This class represents the amount of space occupied by a three-dimensional object or region of space, expressed in cubic units.
| Field Summary | |
static int |
BARREL
Used to specify barrel unit (oil). |
static int |
BUSHEL_UK
Used to specify UK bushel unit. |
static int |
BUSHEL_US
Used to specify US bushel unit. |
static int |
CENTILITER
Used to specify centiliter unit. |
static int |
CENTILITRE
|
static int |
CUBIC_CENTIMETER
Used to specify cubic centimeter unit. |
static int |
CUBIC_CENTIMETRE
|
static int |
CUBIC_DECAMETER
Used to specify cubic decameter unit. |
static int |
CUBIC_DECAMETRE
|
static int |
CUBIC_DECIMETER
Used to specify cubic decimeter unit. |
static int |
CUBIC_DECIMETRE
|
static int |
CUBIC_FOOT
Used to specify cubic foot unit. |
static int |
CUBIC_INCH
Used to specify cubic inch unit. |
static int |
CUBIC_METER
Used to specify cubic meter unit. |
static int |
CUBIC_METRE
|
static int |
CUBIC_MILLIMETER
Used to specify cubic millimeter unit. |
static int |
CUBIC_MILLIMETRE
|
static int |
CUBIC_YARD
Used to specify cubic yard unit. |
static int |
CUP_UK
Used to specify UK cup unit (= 10 UK ounces). |
static int |
CUP_US
Used to specify US cup unit (= 8 US ounces). |
static int |
DECILITER
Used to specify deciliter unit. |
static int |
DECILITRE
|
static int |
DRACHM
Used to specify drachm, fluid unit (= 1/1280 UK Gallon). |
static int |
GALLON_DRY_US
Used to specify US gallon, dry unit. |
static int |
GALLON_LIQUID_US
Used to specify US gallon, liquid unit. |
static int |
GALLON_UK
Used to specify UK gallon unit. |
static int |
LITER
Used to specify liter unit, (1964 Standard: 1 liter = 1 cubic decimeter). |
static int |
LITRE
|
static int |
MAAS
Used to specify maas unit (Germany). |
static int |
MILLILITER
Used to specify milliter unit. |
static int |
MILLILITRE
|
static int |
OUNCE_UK
Used to specify UK ounce, fluid unit. |
static int |
OUNCE_US
Used to specify US ounce, fluid unit. |
static int |
PINT_DRY_US
Used to specify US pint, dry unit. |
static int |
PINT_LIQUID_US
Used to specify US pint, liquid unit. |
static int |
PINT_UK
Used to specify UK pint unit. |
static int |
QUART_DRY_US
Used to specify US quart, dry unit. |
static int |
QUART_LIQUID_US
Used to specify US quart, liquid unit. |
static int |
QUART_UK
Used to specify UK quart unit. |
static int |
TABLESPOON_AU
Used to specify Australian tablespoon unit. |
static int |
TABLESPOON_UK
Used to specify UK tablespoon unit. |
static int |
TABLESPOON_US
Used to specify US tablespoon unit. |
| Fields inherited from class net.agmodel.physical.AbstractQuantity |
COMPLETE, DEVOID, SPATIALLYINTERPOLATED, TEMPORALLYINTERPOLATED, UNINTERPOLATED |
| Constructor Summary | |
Volume(Composite c)
Volume constructor from Composite quantity. |
|
Volume(double value,
int unit)
Volume constructor. |
|
Volume(Length radius,
Angle theta)
Volume constructor from a Length and an Angle (slice of a sphere). |
|
| Method Summary | |
Volume |
add(Volume x)
Returns a Volume whose value is (this + x). |
int |
compareTo(Object o)
Compares this Volume with the specified Object. |
int |
compareTo(Volume x)
Compares this Volume with the specified Volume. |
Length |
divide(Area x)
Returns a Length whose value is (this / x). |
Volume |
divide(double coefficient)
Returns a Volume whose value is (this / coefficient). |
Area |
divide(Length x)
Returns an Area whose value is (this / x). |
double |
getValue(int unit)
Gets the volume in the specified unit. |
Volume |
multiply(double coefficient)
Returns a Volume whose value is (this * coefficient). |
Mass |
multiply(Volume d)
Returns a Mass whose value is (this * d). |
void |
setValue(double value,
int unit)
Sets this Volume using the specified unit. |
Volume |
substract(Volume x)
Returns a Volume whose value is (this - x). |
| Methods inherited from class net.agmodel.physical.AbstractQuantity |
clone, divide, isSpatiallyInterpolated, isTemporallyInterpolated, multiply, toComposite, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int CUBIC_METER
public static final int CUBIC_METRE
public static final int CUBIC_FOOT
public static final int CUBIC_YARD
public static final int CUBIC_INCH
public static final int LITER
public static final int LITRE
public static final int GALLON_LIQUID_US
public static final int GALLON_DRY_US
public static final int GALLON_UK
public static final int OUNCE_US
public static final int OUNCE_UK
public static final int BUSHEL_US
public static final int BUSHEL_UK
public static final int BARREL
public static final int PINT_LIQUID_US
public static final int PINT_DRY_US
public static final int PINT_UK
public static final int QUART_LIQUID_US
public static final int QUART_DRY_US
public static final int QUART_UK
public static final int MILLILITER
public static final int MILLILITRE
public static final int CENTILITER
public static final int CENTILITRE
public static final int DECILITER
public static final int DECILITRE
public static final int CUBIC_MILLIMETER
public static final int CUBIC_MILLIMETRE
public static final int CUBIC_CENTIMETER
public static final int CUBIC_CENTIMETRE
public static final int CUBIC_DECIMETER
public static final int CUBIC_DECIMETRE
public static final int CUBIC_DECAMETER
public static final int CUBIC_DECAMETRE
public static final int CUP_US
public static final int CUP_UK
public static final int TABLESPOON_US
public static final int TABLESPOON_UK
public static final int TABLESPOON_AU
public static final int MAAS
public static final int DRACHM
| Constructor Detail |
public Volume(double value,
int unit)
value - the volume in the specified unit.unit - the measurement unit being used.
ArrayIndexOutOfBoundsException - unknown measurement unitpublic Volume(Composite c)
c - the quantity to convert.
UnitDimensionException - composite is not a volume.Composite
public Volume(Length radius,
Angle theta)
radius - the sphere radius.theta - the central solid angle.| Method Detail |
public double getValue(int unit)
unit - the measurement unit being used.
ArrayIndexOutOfBoundsException - unknown measurement unit
public void setValue(double value,
int unit)
value - the new volume in the specified unit.unit - the measurement unit being used.
ArrayIndexOutOfBoundsException - unknown measurement unitpublic Volume add(Volume x)
x - the Volume to be added.
public Volume substract(Volume x)
x - the Volume to be substracted.
public Volume multiply(double coefficient)
coefficient - the dimensionless multiplier.
public Volume divide(double coefficient)
coefficient - the dimensionless divisor.
ArithmeticException - coefficient == 0.0public Length divide(Area x)
x - the Area divisor.
ArithmeticException - x.getValue(SQUARE_METER) == 0.0public Area divide(Length x)
x - the Length divisor.
ArithmeticException - x.getValue(METER) == 0.0public Mass multiply(Volume d)
d - the volumetric density multiplier.
public int compareTo(Volume x)
x - Volume to which this Volume is to be compared.
public int compareTo(Object o)
compareTo in interface Comparableo - Object to which this Volume is to be compared.
ClassCastException - o is not a Volume.compareTo(Volume),
Comparable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||