public class FloatFlowVolume extends AbstractFloatScalarRel<FlowVolumeUnit,FloatFlowVolume>
FloatScalar.Rel<FlowVolumeUnit> value = new FloatScalar.Rel<FlowVolumeUnit>(100.0, FlowVolumeUnit.SI);we can now write:
FloatFlowVolume value = new FloatFlowVolume(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-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2018-01-28 03:17:44 +0100 (Sun, 28 Jan 2018) $, @version $Revision: 256 $, by $Author: averbraeck $,
initial version Sep 5, 2015
Modifier and Type | Field and Description |
---|---|
static FloatFlowVolume |
NaN
constant with value NaN.
|
static FloatFlowVolume |
NEG_MAXVALUE
constant with value -MAX_VALUE.
|
static FloatFlowVolume |
NEGATIVE_INFINITY
constant with value NEGATIVE_INFINITY.
|
static FloatFlowVolume |
POS_MAXVALUE
constant with value MAX_VALUE.
|
static FloatFlowVolume |
POSITIVE_INFINITY
constant with value POSITIVE_INFINITY.
|
static FloatFlowVolume |
ZERO
constant with value zero.
|
si
Constructor and Description |
---|
FloatFlowVolume(double value,
FlowVolumeUnit unit)
Construct FloatFlowVolume scalar using a double value.
|
FloatFlowVolume(FloatFlowVolume value)
Construct FloatFlowVolume scalar.
|
FloatFlowVolume(float value,
FlowVolumeUnit unit)
Construct FloatFlowVolume scalar.
|
Modifier and Type | Method and Description |
---|---|
static FloatFlowVolume |
createSI(float value)
Construct FloatFlowVolume scalar.
|
FloatSpeed |
divideBy(FloatArea v)
Calculate the division of FloatFlowVolume and FloatArea, which results in a FloatSpeed scalar.
|
FloatDimensionless |
divideBy(FloatFlowVolume v)
Calculate the division of FloatFlowVolume and FloatFlowVolume, which results in a FloatDimensionless scalar.
|
FloatVolume |
divideBy(FloatFrequency v)
Calculate the division of FloatFlowVolume and FloatFrequency, which results in a FloatVolume scalar.
|
FloatArea |
divideBy(FloatSpeed v)
Calculate the division of FloatFlowVolume and FloatSpeed, which results in a FloatArea scalar.
|
FloatFrequency |
divideBy(FloatVolume v)
Calculate the division of FloatFlowVolume and FloatVolume, which results in a FloatFrequency scalar.
|
FloatFlowVolume |
instantiateRel(float value,
FlowVolumeUnit unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
static FloatFlowVolume |
interpolate(FloatFlowVolume zero,
FloatFlowVolume one,
float ratio)
Interpolate between two values.
|
static FloatFlowVolume |
max(FloatFlowVolume r1,
FloatFlowVolume r2)
Return the maximum value of two relative scalars.
|
static FloatFlowVolume |
max(FloatFlowVolume r1,
FloatFlowVolume r2,
FloatFlowVolume... rn)
Return the maximum value of more than two relative scalars.
|
static FloatFlowVolume |
min(FloatFlowVolume r1,
FloatFlowVolume r2)
Return the minimum value of two relative scalars.
|
static FloatFlowVolume |
min(FloatFlowVolume r1,
FloatFlowVolume r2,
FloatFlowVolume... rn)
Return the minimum value of more than two relative scalars.
|
FloatVolume |
multiplyBy(FloatDuration v)
Calculate the multiplication of FloatFlowVolume and FloatDuration, which results in a FloatVolume scalar.
|
abs, ceil, divideBy, floor, minus, multiplyBy, neg, plus, rint, round
compareTo, doubleValue, eq, eq0, equals, floatValue, ge, ge0, getInUnit, getInUnit, getSI, gt, gt0, hashCode, intValue, le, le0, longValue, lt, lt0, ne, ne0, toString, toString, toString, toString
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnit
byteValue, shortValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
DIV, MULT, POW
public static final FloatFlowVolume ZERO
public static final FloatFlowVolume NaN
public static final FloatFlowVolume POSITIVE_INFINITY
public static final FloatFlowVolume NEGATIVE_INFINITY
public static final FloatFlowVolume POS_MAXVALUE
public static final FloatFlowVolume NEG_MAXVALUE
public FloatFlowVolume(float value, FlowVolumeUnit unit)
value
- float valueunit
- unit for the float valuepublic FloatFlowVolume(FloatFlowVolume value)
value
- Scalar from which to construct this instancepublic FloatFlowVolume(double value, FlowVolumeUnit unit)
value
- double valueunit
- unit for the resulting float valuepublic final FloatFlowVolume instantiateRel(float value, FlowVolumeUnit unit)
instantiateRel
in class AbstractFloatScalarRel<FlowVolumeUnit,FloatFlowVolume>
value
- the float valueunit
- the unitpublic static final FloatFlowVolume createSI(float value)
value
- float value in SI unitspublic static FloatFlowVolume interpolate(FloatFlowVolume zero, FloatFlowVolume one, float ratio)
zero
- the low valueone
- the high valueratio
- the ratio between 0 and 1, inclusivepublic static FloatFlowVolume max(FloatFlowVolume r1, FloatFlowVolume r2)
r1
- the first scalarr2
- the second scalarpublic static FloatFlowVolume max(FloatFlowVolume r1, FloatFlowVolume r2, FloatFlowVolume... rn)
r1
- the first scalarr2
- the second scalarrn
- the other scalarspublic static FloatFlowVolume min(FloatFlowVolume r1, FloatFlowVolume r2)
r1
- the first scalarr2
- the second scalarpublic static FloatFlowVolume min(FloatFlowVolume r1, FloatFlowVolume r2, FloatFlowVolume... rn)
r1
- the first scalarr2
- the second scalarrn
- the other scalarspublic final FloatDimensionless divideBy(FloatFlowVolume v)
v
- FloatFlowVolume scalarpublic final FloatVolume multiplyBy(FloatDuration v)
v
- FloatFlowVolume scalarpublic final FloatVolume divideBy(FloatFrequency v)
v
- FloatFlowVolume scalarpublic final FloatFrequency divideBy(FloatVolume v)
v
- FloatFlowVolume scalarpublic final FloatSpeed divideBy(FloatArea v)
v
- FloatFlowVolume scalarpublic final FloatArea divideBy(FloatSpeed v)
v
- FloatFlowVolume scalarCopyright © 2015–2018 Delft University of Technology. All rights reserved.