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-2020 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, Wouter Schakel
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
DoubleScalarInterface.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 interface
DoubleScalarInterface.Rel<U extends Unit<U>,R extends DoubleScalarInterface.Rel<U,R>>
Methods for Relative DoubleScalar.static interface
DoubleScalarInterface.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
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 Details
-
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
Retrieve the value converted into some specified unit.- Parameters:
targetUnit
- U; the unit to convert the value into- Returns:
- double
-