public class AbsoluteTemperature extends TypedDoubleScalarAbs<TemperatureUnit,AbsoluteTemperature,Temperature>
DoubleScalar.Abs<TemperatureUnit> value = new DoubleScalar.Abs<TemperatureUnit>(100.0, TemperatureUnit.SI);we can now write:
AbsoluteTemperature value = new AbsoluteTemperature(100.0, TemperatureUnit.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 OpenTrafficSim License.
$LastChangedDate: 2015-12-22 04:32:39 +0100 (Tue, 22 Dec 2015) $, @version $Revision: 180 $, by $Author: averbraeck $,
initial version Sep 1, 2015
DoubleScalar.Abs<U extends Unit<U>>, DoubleScalar.Rel<U extends Unit<U>>| Modifier and Type | Field and Description |
|---|---|
static AbsoluteTemperature |
ZERO
constant with value zero.
|
si| Constructor and Description |
|---|
AbsoluteTemperature(AbsoluteTemperature value)
Construct AbsoluteTemperature scalar.
|
AbsoluteTemperature(double value,
TemperatureUnit unit)
Construct AbsoluteTemperature scalar.
|
| Modifier and Type | Method and Description |
|---|---|
protected AbsoluteTemperature |
instantiateTypeAbs(double value,
TemperatureUnit unit)
Construct a new Absolute Immutable DoubleScalar of the right type.
|
protected Temperature |
instantiateTypeRel(double value,
TemperatureUnit unit)
Construct a new Relative Immutable DoubleScalar of the right type.
|
static AbsoluteTemperature |
interpolate(AbsoluteTemperature zero,
AbsoluteTemperature one,
double ratio)
Interpolate between two values.
|
static AbsoluteTemperature |
max(AbsoluteTemperature a1,
AbsoluteTemperature a2)
Return the maximum value of two absolute scalars.
|
static AbsoluteTemperature |
max(AbsoluteTemperature a1,
AbsoluteTemperature a2,
AbsoluteTemperature... an)
Return the maximum value of more than two absolute scalars.
|
static AbsoluteTemperature |
min(AbsoluteTemperature a1,
AbsoluteTemperature a2)
Return the minimum value of two absolute scalars.
|
static AbsoluteTemperature |
min(AbsoluteTemperature a1,
AbsoluteTemperature a2,
AbsoluteTemperature... an)
Return the minimum value of more than two absolute scalars.
|
ceil, floor, minus, minus, plus, rint, round, toRelcompareTo, divideBy, eq, ge, getSI, gt, le, lt, minus, minus, multiplyBy, 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 AbsoluteTemperature ZERO
public AbsoluteTemperature(double value,
TemperatureUnit unit)
value - double valueunit - unit for the double valuepublic AbsoluteTemperature(AbsoluteTemperature value)
value - Scalar from which to construct this instanceprotected final AbsoluteTemperature instantiateTypeAbs(double value, TemperatureUnit unit)
instantiateTypeAbs in class TypedDoubleScalarAbs<TemperatureUnit,AbsoluteTemperature,Temperature>value - the double valueunit - the unitprotected final Temperature instantiateTypeRel(double value, TemperatureUnit unit)
instantiateTypeRel in class TypedDoubleScalarAbs<TemperatureUnit,AbsoluteTemperature,Temperature>value - the double valueunit - the unitpublic static AbsoluteTemperature interpolate(AbsoluteTemperature zero, AbsoluteTemperature one, double ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic static AbsoluteTemperature max(AbsoluteTemperature a1, AbsoluteTemperature a2)
a1 - the first scalara2 - the second scalarpublic static AbsoluteTemperature max(AbsoluteTemperature a1, AbsoluteTemperature a2, AbsoluteTemperature... an)
a1 - the first scalara2 - the second scalaran - the other scalarspublic static AbsoluteTemperature min(AbsoluteTemperature a1, AbsoluteTemperature a2)
a1 - the first scalara2 - the second scalarpublic static AbsoluteTemperature min(AbsoluteTemperature a1, AbsoluteTemperature a2, AbsoluteTemperature... an)
a1 - the first scalara2 - the second scalaran - the other scalarsCopyright © 2015–2016 Delft University of Technology. All rights reserved.