Interface DoubleScalarInterface<U extends Unit<U>,S extends DoubleScalarInterface<U,S>>
-
- Type Parameters:
U- the unit for which this is the interfaceS- the scalar type belonging to the unit
- All Superinterfaces:
Cloneable,Comparable<S>,Scalar<U,S>,Serializable,Value<U,S>,ValueFunctions<U,S>
- All Known Subinterfaces:
DoubleScalarInterface.Abs<AU,A,RU,R>,DoubleScalarInterface.Rel<U,R>,DoubleScalarInterface.RelWithAbs<AU,A,RU,R>
- All Known Implementing Classes:
AbsoluteTemperature,AbsorbedDose,AbstractDoubleScalar,AbstractDoubleScalarAbs,AbstractDoubleScalarRel,AbstractDoubleScalarRelWithAbs,Acceleration,AmountOfSubstance,Angle,AngularAcceleration,AngularVelocity,Area,CatalyticActivity,Density,Dimensionless,Direction,Duration,ElectricalCapacitance,ElectricalCharge,ElectricalConductance,ElectricalCurrent,ElectricalInductance,ElectricalPotential,ElectricalResistance,Energy,EquivalentDose,FlowMass,FlowVolume,Force,Frequency,Illuminance,Length,LinearDensity,LuminousFlux,LuminousIntensity,MagneticFlux,MagneticFluxDensity,Mass,Momentum,Position,Power,Pressure,RadioActivity,SIScalar,SolidAngle,Speed,Temperature,Time,Torque,Volume
public interface DoubleScalarInterface<U extends Unit<U>,S extends DoubleScalarInterface<U,S>> extends Scalar<U,S>
Double scalar functions.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.- Author:
- Alexander Verbraeck, Peter Knoppers
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceDoubleScalarInterface.Abs<AU extends AbsoluteLinearUnit<AU,RU>,A extends DoubleScalarInterface.Abs<AU,A,RU,R>,RU extends Unit<RU>,R extends DoubleScalarInterface.RelWithAbs<AU,A,RU,R>>Methods for Absolute Scalar.static interfaceDoubleScalarInterface.Rel<U extends Unit<U>,R extends DoubleScalarInterface.Rel<U,R>>Methods for Relative DoubleScalar.static interfaceDoubleScalarInterface.RelWithAbs<AU extends AbsoluteLinearUnit<AU,RU>,A extends DoubleScalarInterface.Abs<AU,A,RU,R>,RU extends Unit<RU>,R extends DoubleScalarInterface.RelWithAbs<AU,A,RU,R>>Additional methods for Relative Scalar that has a corresponding Absolute Scalar.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetInUnit()Retrieve the value in the original unit.doublegetInUnit(U targetUnit)Retrieve the value converted into some specified unit.doublegetSI()Retrieve the value in the underlying SI unit.-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.djunits.value.base.Scalar
eq, eq0, ge, ge0, gt, gt0, le, le0, lt, lt0, ne, ne0, toDisplayString, toDisplayString, toTextualString, toTextualString
-
Methods inherited from interface org.djunits.value.Value
getDisplayUnit, isAbsolute, isRelative, setDisplayUnit, toString, toString, toString, toString
-
-
-
-
Method Detail
-
getSI
double getSI()
Retrieve the value in the underlying SI unit.- Returns:
- double
-
getInUnit
double getInUnit()
Retrieve the value in the original unit.- Returns:
- double
-
getInUnit
double getInUnit(U targetUnit)
Retrieve the value converted into some specified unit.- Parameters:
targetUnit- U; the unit to convert the value into- Returns:
- double
-
-