public class FloatFlowVolume extends TypedFloatScalarRel<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-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2016-05-28 14:25:52 +0200 (Sat, 28 May 2016) $, @version $Revision: 202 $, by $Author: averbraeck $,
initial version Sep 5, 2015
FloatScalar.Abs<U extends Unit<U>>, FloatScalar.Rel<U extends Unit<U>>| Modifier and Type | Field and Description |
|---|---|
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 |
|---|---|
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.
|
protected FloatFlowVolume |
instantiateTypeRel(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, plus, rint, roundcompareTo, eq, ge, getSI, gt, le, lt, minus, ne, plusdivide, divide, doubleValue, equals, floatValue, getInUnit, getInUnit, hashCode, interpolate, interpolate, intValue, longValue, minus, minus, minus, multiply, multiply, plus, plus, plus, toString, toString, toString, toStringexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativebyteValue, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitDIV, MULT, POWpublic static final FloatFlowVolume ZERO
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 valueprotected final FloatFlowVolume instantiateTypeRel(float value, FlowVolumeUnit unit)
instantiateTypeRel in class TypedFloatScalarRel<FlowVolumeUnit,FloatFlowVolume>value - the float valueunit - the unitpublic 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–2016 Delft University of Technology. All rights reserved.