public class FlowVolume extends AbstractDoubleScalarRel<FlowVolumeUnit,FlowVolume>
DoubleScalar.Rel<FlowVolumeUnit> value = new DoubleScalar.Rel<FlowVolumeUnit>(100.0, FlowVolumeUnit.SI);we can now write:
FlowVolume value = new FlowVolume(100.0, FlowVolumeUnit.SI);The compiler will automatically recognize which units belong to which quantity, and whether the quantity type and the unit used are compatible.
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2019-03-03 00:53:50 +0100 (Sun, 03 Mar 2019) $, @version $Revision: 349 $, by $Author: averbraeck $,
initial version Sep 5, 2015
| Modifier and Type | Field and Description |
|---|---|
static FlowVolume |
NaN
constant with value NaN.
|
static FlowVolume |
NEG_MAXVALUE
constant with value -MAX_VALUE.
|
static FlowVolume |
NEGATIVE_INFINITY
constant with value NEGATIVE_INFINITY.
|
static FlowVolume |
POS_MAXVALUE
constant with value MAX_VALUE.
|
static FlowVolume |
POSITIVE_INFINITY
constant with value POSITIVE_INFINITY.
|
static FlowVolume |
ZERO
constant with value zero.
|
siNUMBER_PATTERN| Constructor and Description |
|---|
FlowVolume(double value,
FlowVolumeUnit unit)
Construct FlowVolume scalar.
|
FlowVolume(FlowVolume value)
Construct FlowVolume scalar.
|
| Modifier and Type | Method and Description |
|---|---|
static FlowVolume |
createSI(double value)
Construct FlowVolume scalar.
|
Speed |
divideBy(Area v)
Calculate the division of FlowVolume and Area, which results in a Speed scalar.
|
Dimensionless |
divideBy(FlowVolume v)
Calculate the division of FlowVolume and FlowVolume, which results in a Dimensionless scalar.
|
Volume |
divideBy(Frequency v)
Calculate the division of FlowVolume and Frequency, which results in a Volume scalar.
|
Area |
divideBy(Speed v)
Calculate the division of FlowVolume and Speed, which results in a Area scalar.
|
Frequency |
divideBy(Volume v)
Calculate the division of FlowVolume and Volume, which results in a Frequency scalar.
|
FlowVolume |
instantiateRel(double value,
FlowVolumeUnit unit)
Construct a new Relative Immutable DoubleScalar of the right type.
|
static FlowVolume |
interpolate(FlowVolume zero,
FlowVolume one,
double ratio)
Interpolate between two values.
|
static FlowVolume |
max(FlowVolume r1,
FlowVolume r2)
Return the maximum value of two relative scalars.
|
static FlowVolume |
max(FlowVolume r1,
FlowVolume r2,
FlowVolume... rn)
Return the maximum value of more than two relative scalars.
|
static FlowVolume |
min(FlowVolume r1,
FlowVolume r2)
Return the minimum value of two relative scalars.
|
static FlowVolume |
min(FlowVolume r1,
FlowVolume r2,
FlowVolume... rn)
Return the minimum value of more than two relative scalars.
|
Volume |
multiplyBy(Duration v)
Calculate the multiplication of FlowVolume and Duration, which results in a Volume scalar.
|
static FlowVolume |
valueOf(String text)
Returns a FlowVolume representation of a textual representation of a value with a unit.
|
abs, ceil, divideBy, floor, minus, multiplyBy, neg, plus, rint, roundcompareTo, doubleValue, eq, eq0, equals, floatValue, ge, ge0, getInUnit, getInUnit, getSI, gt, gt0, hashCode, intValue, le, le0, longValue, lt, lt0, ne, ne0, toString, toString, toString, toStringexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnit, stringOf, stringOfDefaultLocale, textualStringOf, textualStringOfDefaultLocalebyteValue, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitDIV, MULT, POWpublic static final FlowVolume ZERO
public static final FlowVolume NaN
public static final FlowVolume POSITIVE_INFINITY
public static final FlowVolume NEGATIVE_INFINITY
public static final FlowVolume POS_MAXVALUE
public static final FlowVolume NEG_MAXVALUE
public FlowVolume(double value,
FlowVolumeUnit unit)
value - double valueunit - unit for the double valuepublic FlowVolume(FlowVolume value)
value - Scalar from which to construct this instancepublic final FlowVolume instantiateRel(double value, FlowVolumeUnit unit)
instantiateRel in class AbstractDoubleScalarRel<FlowVolumeUnit,FlowVolume>value - double; the double valueunit - U; the unitpublic static final FlowVolume createSI(double value)
value - double value in SI unitspublic static FlowVolume interpolate(FlowVolume zero, FlowVolume one, double ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic static FlowVolume max(FlowVolume r1, FlowVolume r2)
r1 - the first scalarr2 - the second scalarpublic static FlowVolume max(FlowVolume r1, FlowVolume r2, FlowVolume... rn)
r1 - the first scalarr2 - the second scalarrn - the other scalarspublic static FlowVolume min(FlowVolume r1, FlowVolume r2)
r1 - the first scalarr2 - the second scalarpublic static FlowVolume min(FlowVolume r1, FlowVolume r2, FlowVolume... rn)
r1 - the first scalarr2 - the second scalarrn - the other scalarspublic static FlowVolume valueOf(String text) throws IllegalArgumentException
text - String; the textual representation to parse into a FlowVolumeIllegalArgumentException - when the text cannot be parsedpublic final Dimensionless divideBy(FlowVolume v)
v - FlowVolume scalarpublic final Volume multiplyBy(Duration v)
v - FlowVolume scalarpublic final Volume divideBy(Frequency v)
v - FlowVolume scalarpublic final Frequency divideBy(Volume v)
v - FlowVolume scalarpublic final Speed divideBy(Area v)
v - FlowVolume scalarCopyright © 2015–2019 Delft University of Technology. All rights reserved.