Package org.djunits.value.vdouble.scalar
Class SIScalar
java.lang.Object
java.lang.Number
org.djunits.value.AbstractScalar<U,S>
org.djunits.value.vdouble.scalar.base.AbstractDoubleScalar<U,R>
org.djunits.value.vdouble.scalar.base.AbstractDoubleScalarRel<SIUnit,SIScalar>
org.djunits.value.vdouble.scalar.SIScalar
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<SIScalar>,Scalar<SIUnit,SIScalar>,Scalar.Rel<SIUnit,SIScalar>,ValueFunctions<SIUnit,SIScalar>,Relative<SIUnit,SIScalar>,Value<SIUnit,SIScalar>,DoubleScalarInterface<SIUnit,SIScalar>,DoubleScalarInterface.Rel<SIUnit,SIScalar>
@Generated(value="org.djunits.generator.GenerateDJUNIT", date="2020-01-19T15:21:24.964166400Z") public class SIScalar extends AbstractDoubleScalarRel<SIUnit,SIScalar>
Easy access methods for the generic Relative SI DoubleScalar.
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.djunits.value.vdouble.scalar.base.DoubleScalarInterface
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>>, DoubleScalarInterface.Rel<U extends Unit<U>,R extends DoubleScalarInterface.Rel<U,R>>, 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>>Nested classes/interfaces inherited from interface org.djunits.value.base.Scalar
Scalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,A extends Scalar.Abs<AU,A,RU,R>,RU extends Unit<RU>,R extends Scalar.RelWithAbs<AU,A,RU,R>>, Scalar.Rel<U extends Unit<U>,R extends Scalar.Rel<U,R>>, Scalar.RelWithAbs<AU extends AbsoluteLinearUnit<AU,RU>,A extends Scalar.Abs<AU,A,RU,R>,RU extends Unit<RU>,R extends Scalar.RelWithAbs<AU,A,RU,R>> -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description <U extends Unit<U>, S extends AbstractDoubleScalarRel<U, S>>
Sas(U displayUnit)Return the current scalar transformed to a scalar in the given unit.AbsorbedDoseasAbsorbedDose()Return the current scalar as a absorbeddose.AbsorbedDoseasAbsorbedDose(AbsorbedDoseUnit displayUnit)Return the current scalar as a absorbeddose, and provide a display unit.AccelerationasAcceleration()Return the current scalar as a acceleration.AccelerationasAcceleration(AccelerationUnit displayUnit)Return the current scalar as a acceleration, and provide a display unit.AmountOfSubstanceasAmountOfSubstance()Return the current scalar as a amountofsubstance.AmountOfSubstanceasAmountOfSubstance(AmountOfSubstanceUnit displayUnit)Return the current scalar as a amountofsubstance, and provide a display unit.AngleasAngle()Return the current scalar as a angle.AngleasAngle(AngleUnit displayUnit)Return the current scalar as a angle, and provide a display unit.AngularAccelerationasAngularAcceleration()Return the current scalar as a angularacceleration.AngularAccelerationasAngularAcceleration(AngularAccelerationUnit displayUnit)Return the current scalar as a angularacceleration, and provide a display unit.AngularVelocityasAngularVelocity()Return the current scalar as a angularvelocity.AngularVelocityasAngularVelocity(AngularVelocityUnit displayUnit)Return the current scalar as a angularvelocity, and provide a display unit.AreaasArea()Return the current scalar as a area.AreaasArea(AreaUnit displayUnit)Return the current scalar as a area, and provide a display unit.CatalyticActivityasCatalyticActivity()Return the current scalar as a catalyticactivity.CatalyticActivityasCatalyticActivity(CatalyticActivityUnit displayUnit)Return the current scalar as a catalyticactivity, and provide a display unit.DensityasDensity()Return the current scalar as a density.DensityasDensity(DensityUnit displayUnit)Return the current scalar as a density, and provide a display unit.DimensionlessasDimensionless()Return the current scalar as a dimensionless.DimensionlessasDimensionless(DimensionlessUnit displayUnit)Return the current scalar as a dimensionless, and provide a display unit.DurationasDuration()Return the current scalar as a duration.DurationasDuration(DurationUnit displayUnit)Return the current scalar as a duration, and provide a display unit.ElectricalCapacitanceasElectricalCapacitance()Return the current scalar as a electricalcapacitance.ElectricalCapacitanceasElectricalCapacitance(ElectricalCapacitanceUnit displayUnit)Return the current scalar as a electricalcapacitance, and provide a display unit.ElectricalChargeasElectricalCharge()Return the current scalar as a electricalcharge.ElectricalChargeasElectricalCharge(ElectricalChargeUnit displayUnit)Return the current scalar as a electricalcharge, and provide a display unit.ElectricalConductanceasElectricalConductance()Return the current scalar as a electricalconductance.ElectricalConductanceasElectricalConductance(ElectricalConductanceUnit displayUnit)Return the current scalar as a electricalconductance, and provide a display unit.ElectricalCurrentasElectricalCurrent()Return the current scalar as a electricalcurrent.ElectricalCurrentasElectricalCurrent(ElectricalCurrentUnit displayUnit)Return the current scalar as a electricalcurrent, and provide a display unit.ElectricalInductanceasElectricalInductance()Return the current scalar as a electricalinductance.ElectricalInductanceasElectricalInductance(ElectricalInductanceUnit displayUnit)Return the current scalar as a electricalinductance, and provide a display unit.ElectricalPotentialasElectricalPotential()Return the current scalar as a electricalpotential.ElectricalPotentialasElectricalPotential(ElectricalPotentialUnit displayUnit)Return the current scalar as a electricalpotential, and provide a display unit.ElectricalResistanceasElectricalResistance()Return the current scalar as a electricalresistance.ElectricalResistanceasElectricalResistance(ElectricalResistanceUnit displayUnit)Return the current scalar as a electricalresistance, and provide a display unit.EnergyasEnergy()Return the current scalar as a energy.EnergyasEnergy(EnergyUnit displayUnit)Return the current scalar as a energy, and provide a display unit.EquivalentDoseasEquivalentDose()Return the current scalar as a equivalentdose.EquivalentDoseasEquivalentDose(EquivalentDoseUnit displayUnit)Return the current scalar as a equivalentdose, and provide a display unit.FlowMassasFlowMass()Return the current scalar as a flowmass.FlowMassasFlowMass(FlowMassUnit displayUnit)Return the current scalar as a flowmass, and provide a display unit.FlowVolumeasFlowVolume()Return the current scalar as a flowvolume.FlowVolumeasFlowVolume(FlowVolumeUnit displayUnit)Return the current scalar as a flowvolume, and provide a display unit.ForceasForce()Return the current scalar as a force.ForceasForce(ForceUnit displayUnit)Return the current scalar as a force, and provide a display unit.FrequencyasFrequency()Return the current scalar as a frequency.FrequencyasFrequency(FrequencyUnit displayUnit)Return the current scalar as a frequency, and provide a display unit.IlluminanceasIlluminance()Return the current scalar as a illuminance.IlluminanceasIlluminance(IlluminanceUnit displayUnit)Return the current scalar as a illuminance, and provide a display unit.LengthasLength()Return the current scalar as a length.LengthasLength(LengthUnit displayUnit)Return the current scalar as a length, and provide a display unit.LinearDensityasLinearDensity()Return the current scalar as a lineardensity.LinearDensityasLinearDensity(LinearDensityUnit displayUnit)Return the current scalar as a lineardensity, and provide a display unit.LuminousFluxasLuminousFlux()Return the current scalar as a luminousflux.LuminousFluxasLuminousFlux(LuminousFluxUnit displayUnit)Return the current scalar as a luminousflux, and provide a display unit.LuminousIntensityasLuminousIntensity()Return the current scalar as a luminousintensity.LuminousIntensityasLuminousIntensity(LuminousIntensityUnit displayUnit)Return the current scalar as a luminousintensity, and provide a display unit.MagneticFluxasMagneticFlux()Return the current scalar as a magneticflux.MagneticFluxasMagneticFlux(MagneticFluxUnit displayUnit)Return the current scalar as a magneticflux, and provide a display unit.MagneticFluxDensityasMagneticFluxDensity()Return the current scalar as a magneticfluxdensity.MagneticFluxDensityasMagneticFluxDensity(MagneticFluxDensityUnit displayUnit)Return the current scalar as a magneticfluxdensity, and provide a display unit.MassasMass()Return the current scalar as a mass.MassasMass(MassUnit displayUnit)Return the current scalar as a mass, and provide a display unit.MomentumasMomentum()Return the current scalar as a momentum.MomentumasMomentum(MomentumUnit displayUnit)Return the current scalar as a momentum, and provide a display unit.PowerasPower()Return the current scalar as a power.PowerasPower(PowerUnit displayUnit)Return the current scalar as a power, and provide a display unit.PressureasPressure()Return the current scalar as a pressure.PressureasPressure(PressureUnit displayUnit)Return the current scalar as a pressure, and provide a display unit.RadioActivityasRadioActivity()Return the current scalar as a radioactivity.RadioActivityasRadioActivity(RadioActivityUnit displayUnit)Return the current scalar as a radioactivity, and provide a display unit.SolidAngleasSolidAngle()Return the current scalar as a solidangle.SolidAngleasSolidAngle(SolidAngleUnit displayUnit)Return the current scalar as a solidangle, and provide a display unit.SpeedasSpeed()Return the current scalar as a speed.SpeedasSpeed(SpeedUnit displayUnit)Return the current scalar as a speed, and provide a display unit.TemperatureasTemperature()Return the current scalar as a temperature.TemperatureasTemperature(TemperatureUnit displayUnit)Return the current scalar as a temperature, and provide a display unit.TorqueasTorque()Return the current scalar as a torque.TorqueasTorque(TorqueUnit displayUnit)Return the current scalar as a torque, and provide a display unit.VolumeasVolume()Return the current scalar as a volume.VolumeasVolume(VolumeUnit displayUnit)Return the current scalar as a volume, and provide a display unit.SIScalarinstantiateRel(double value, SIUnit unit)Construct a new Relative Immutable DoubleScalar of the right type.static SIScalarinstantiateSI(double value, SIUnit unit)Construct SI scalar.static SIScalarinterpolate(SIScalar zero, SIScalar one, double ratio)Interpolate between two values.static SIScalarmax(SIScalar r1, SIScalar r2)Return the maximum value of two relative scalars.static SIScalarmax(SIScalar r1, SIScalar r2, SIScalar... rn)Return the maximum value of more than two relative scalars.static SIScalarmin(SIScalar r1, SIScalar r2)Return the minimum value of two relative scalars.static SIScalarmin(SIScalar r1, SIScalar r2, SIScalar... rn)Return the minimum value of more than two relative scalars.static SIScalarof(double value, String unitString)Returns an SIScalar based on a value and the textual representation of the unit.static SIScalarvalueOf(String text)Returns an SIScalar representation of a textual representation of a value with a unit.Methods inherited from class org.djunits.value.vdouble.scalar.base.AbstractDoubleScalarRel
abs, ceil, divide, divide, divide, floor, minus, neg, plus, reciprocal, rint, times, times, timesMethods inherited from class org.djunits.value.vdouble.scalar.base.AbstractDoubleScalar
compareTo, doubleValue, eq, eq0, equals, floatValue, ge, ge0, getInUnit, getInUnit, getSI, gt, gt0, hashCode, intValue, le, le0, longValue, lt, lt0, ne, ne0, toDisplayString, toDisplayString, toString, toString, toString, toString, toTextualString, toTextualStringMethods inherited from class org.djunits.value.AbstractScalar
getDisplayUnit, isAbsolute, isRelative, setDisplayUnitMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.djunits.value.vdouble.scalar.base.DoubleScalarInterface
getInUnit, getInUnit, getSIMethods inherited from interface org.djunits.value.base.Scalar
eq, eq0, ge, ge0, gt, gt0, le, le0, lt, lt0, ne, ne0, toDisplayString, toDisplayString, toTextualString, toTextualStringMethods inherited from interface org.djunits.value.Value
getDisplayUnit, isAbsolute, isRelative, setDisplayUnit, toString, toString, toString, toString
-
Constructor Details
-
Method Details
-
instantiateRel
Construct a new Relative Immutable DoubleScalar of the right type. Each extending class must implement this method.- Parameters:
value- double; the double valueunit- U; the unit- Returns:
- R a new relative instance of the DoubleScalar of the right type
-
instantiateSI
Construct SI scalar.- Parameters:
value- double; the double value in SI unitsunit- SIUnit; the unit to use for the SI scalar- Returns:
- SIScalar; the new scalar with the SI value
-
interpolate
Interpolate between two values.- Parameters:
zero- SIScalar; the low valueone- SIScalar; the high valueratio- double; the ratio between 0 and 1, inclusive- Returns:
- SIScalar; a Scalar at the ratio between
-
max
Return the maximum value of two relative scalars.- Parameters:
r1- SIScalar; the first scalarr2- SIScalar; the second scalar- Returns:
- SIScalar; the maximum value of two relative scalars
-
max
Return the maximum value of more than two relative scalars.- Parameters:
r1- SIScalar; the first scalarr2- SIScalar; the second scalarrn- SIScalar...; the other scalars- Returns:
- SIScalar; the maximum value of more than two relative scalars
-
min
Return the minimum value of two relative scalars.- Parameters:
r1- SIScalar; the first scalarr2- SIScalar; the second scalar- Returns:
- SIScalar; the minimum value of two relative scalars
-
min
Return the minimum value of more than two relative scalars.- Parameters:
r1- SIScalar; the first scalarr2- SIScalar; the second scalarrn- SIScalar...; the other scalars- Returns:
- SIScalar; the minimum value of more than two relative scalars
-
valueOf
Returns an SIScalar representation of a textual representation of a value with a unit. The String representation that can be parsed is the double value in the unit, followed by the official abbreviation of the unit. Spaces are allowed, but not required, between the value and the unit.- Parameters:
text- String; the textual representation to parse into a SIScalar- Returns:
- SIScalar; the Scalar representation of the value in its unit
- Throws:
IllegalArgumentException- when the text cannot be parsedNullPointerException- when the text argument is null
-
of
Returns an SIScalar based on a value and the textual representation of the unit.- Parameters:
value- double; the value to useunitString- String; the textual representation of the unit- Returns:
- SIScalar; the Scalar representation of the value in its unit
- Throws:
IllegalArgumentException- when the unit cannot be parsed or is incorrectNullPointerException- when the unitString argument is null
-
as
Return the current scalar transformed to a scalar in the given unit. Of course the SI dimensionality has to match, otherwise the scalar cannot be transformed. The compiler will check the alignment between the return value and the unit.- Type Parameters:
U- the unit typeS- the scalar type- Parameters:
displayUnit- KU; the unit in which the scalar needs to be expressed- Returns:
- S; the scalar that has been transformed into the right scalar type and unit
-
asAbsorbedDose
Return the current scalar as a absorbeddose.- Returns:
- AbsorbedDose; the current scalar as a absorbeddose
-
asAbsorbedDose
Return the current scalar as a absorbeddose, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- AbsorbedDose; the current scalar as a absorbeddose
-
asAcceleration
Return the current scalar as a acceleration.- Returns:
- Acceleration; the current scalar as a acceleration
-
asAcceleration
Return the current scalar as a acceleration, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Acceleration; the current scalar as a acceleration
-
asAmountOfSubstance
Return the current scalar as a amountofsubstance.- Returns:
- AmountOfSubstance; the current scalar as a amountofsubstance
-
asAmountOfSubstance
Return the current scalar as a amountofsubstance, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- AmountOfSubstance; the current scalar as a amountofsubstance
-
asAngularAcceleration
Return the current scalar as a angularacceleration.- Returns:
- AngularAcceleration; the current scalar as a angularacceleration
-
asAngularAcceleration
Return the current scalar as a angularacceleration, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- AngularAcceleration; the current scalar as a angularacceleration
-
asAngularVelocity
Return the current scalar as a angularvelocity.- Returns:
- AngularVelocity; the current scalar as a angularvelocity
-
asAngularVelocity
Return the current scalar as a angularvelocity, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- AngularVelocity; the current scalar as a angularvelocity
-
asArea
Return the current scalar as a area.- Returns:
- Area; the current scalar as a area
-
asArea
Return the current scalar as a area, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Area; the current scalar as a area
-
asCatalyticActivity
Return the current scalar as a catalyticactivity.- Returns:
- CatalyticActivity; the current scalar as a catalyticactivity
-
asCatalyticActivity
Return the current scalar as a catalyticactivity, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- CatalyticActivity; the current scalar as a catalyticactivity
-
asDensity
Return the current scalar as a density.- Returns:
- Density; the current scalar as a density
-
asDensity
Return the current scalar as a density, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Density; the current scalar as a density
-
asDimensionless
Return the current scalar as a dimensionless.- Returns:
- Dimensionless; the current scalar as a dimensionless
-
asDimensionless
Return the current scalar as a dimensionless, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Dimensionless; the current scalar as a dimensionless
-
asElectricalCapacitance
Return the current scalar as a electricalcapacitance.- Returns:
- ElectricalCapacitance; the current scalar as a electricalcapacitance
-
asElectricalCapacitance
Return the current scalar as a electricalcapacitance, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- ElectricalCapacitance; the current scalar as a electricalcapacitance
-
asElectricalCharge
Return the current scalar as a electricalcharge.- Returns:
- ElectricalCharge; the current scalar as a electricalcharge
-
asElectricalCharge
Return the current scalar as a electricalcharge, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- ElectricalCharge; the current scalar as a electricalcharge
-
asElectricalConductance
Return the current scalar as a electricalconductance.- Returns:
- ElectricalConductance; the current scalar as a electricalconductance
-
asElectricalConductance
Return the current scalar as a electricalconductance, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- ElectricalConductance; the current scalar as a electricalconductance
-
asElectricalCurrent
Return the current scalar as a electricalcurrent.- Returns:
- ElectricalCurrent; the current scalar as a electricalcurrent
-
asElectricalCurrent
Return the current scalar as a electricalcurrent, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- ElectricalCurrent; the current scalar as a electricalcurrent
-
asElectricalInductance
Return the current scalar as a electricalinductance.- Returns:
- ElectricalInductance; the current scalar as a electricalinductance
-
asElectricalInductance
Return the current scalar as a electricalinductance, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- ElectricalInductance; the current scalar as a electricalinductance
-
asElectricalPotential
Return the current scalar as a electricalpotential.- Returns:
- ElectricalPotential; the current scalar as a electricalpotential
-
asElectricalPotential
Return the current scalar as a electricalpotential, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- ElectricalPotential; the current scalar as a electricalpotential
-
asElectricalResistance
Return the current scalar as a electricalresistance.- Returns:
- ElectricalResistance; the current scalar as a electricalresistance
-
asElectricalResistance
Return the current scalar as a electricalresistance, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- ElectricalResistance; the current scalar as a electricalresistance
-
asEnergy
Return the current scalar as a energy.- Returns:
- Energy; the current scalar as a energy
-
asEnergy
Return the current scalar as a energy, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Energy; the current scalar as a energy
-
asEquivalentDose
Return the current scalar as a equivalentdose.- Returns:
- EquivalentDose; the current scalar as a equivalentdose
-
asEquivalentDose
Return the current scalar as a equivalentdose, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- EquivalentDose; the current scalar as a equivalentdose
-
asFlowMass
Return the current scalar as a flowmass.- Returns:
- FlowMass; the current scalar as a flowmass
-
asFlowMass
Return the current scalar as a flowmass, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- FlowMass; the current scalar as a flowmass
-
asFlowVolume
Return the current scalar as a flowvolume.- Returns:
- FlowVolume; the current scalar as a flowvolume
-
asFlowVolume
Return the current scalar as a flowvolume, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- FlowVolume; the current scalar as a flowvolume
-
asForce
Return the current scalar as a force.- Returns:
- Force; the current scalar as a force
-
asForce
Return the current scalar as a force, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Force; the current scalar as a force
-
asFrequency
Return the current scalar as a frequency.- Returns:
- Frequency; the current scalar as a frequency
-
asFrequency
Return the current scalar as a frequency, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Frequency; the current scalar as a frequency
-
asIlluminance
Return the current scalar as a illuminance.- Returns:
- Illuminance; the current scalar as a illuminance
-
asIlluminance
Return the current scalar as a illuminance, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Illuminance; the current scalar as a illuminance
-
asLinearDensity
Return the current scalar as a lineardensity.- Returns:
- LinearDensity; the current scalar as a lineardensity
-
asLinearDensity
Return the current scalar as a lineardensity, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- LinearDensity; the current scalar as a lineardensity
-
asLuminousFlux
Return the current scalar as a luminousflux.- Returns:
- LuminousFlux; the current scalar as a luminousflux
-
asLuminousFlux
Return the current scalar as a luminousflux, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- LuminousFlux; the current scalar as a luminousflux
-
asLuminousIntensity
Return the current scalar as a luminousintensity.- Returns:
- LuminousIntensity; the current scalar as a luminousintensity
-
asLuminousIntensity
Return the current scalar as a luminousintensity, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- LuminousIntensity; the current scalar as a luminousintensity
-
asMagneticFluxDensity
Return the current scalar as a magneticfluxdensity.- Returns:
- MagneticFluxDensity; the current scalar as a magneticfluxdensity
-
asMagneticFluxDensity
Return the current scalar as a magneticfluxdensity, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- MagneticFluxDensity; the current scalar as a magneticfluxdensity
-
asMagneticFlux
Return the current scalar as a magneticflux.- Returns:
- MagneticFlux; the current scalar as a magneticflux
-
asMagneticFlux
Return the current scalar as a magneticflux, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- MagneticFlux; the current scalar as a magneticflux
-
asMass
Return the current scalar as a mass.- Returns:
- Mass; the current scalar as a mass
-
asMass
Return the current scalar as a mass, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Mass; the current scalar as a mass
-
asMomentum
Return the current scalar as a momentum.- Returns:
- Momentum; the current scalar as a momentum
-
asMomentum
Return the current scalar as a momentum, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Momentum; the current scalar as a momentum
-
asPower
Return the current scalar as a power.- Returns:
- Power; the current scalar as a power
-
asPower
Return the current scalar as a power, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Power; the current scalar as a power
-
asPressure
Return the current scalar as a pressure.- Returns:
- Pressure; the current scalar as a pressure
-
asPressure
Return the current scalar as a pressure, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Pressure; the current scalar as a pressure
-
asRadioActivity
Return the current scalar as a radioactivity.- Returns:
- RadioActivity; the current scalar as a radioactivity
-
asRadioActivity
Return the current scalar as a radioactivity, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- RadioActivity; the current scalar as a radioactivity
-
asSolidAngle
Return the current scalar as a solidangle.- Returns:
- SolidAngle; the current scalar as a solidangle
-
asSolidAngle
Return the current scalar as a solidangle, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- SolidAngle; the current scalar as a solidangle
-
asSpeed
Return the current scalar as a speed.- Returns:
- Speed; the current scalar as a speed
-
asSpeed
Return the current scalar as a speed, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Speed; the current scalar as a speed
-
asTorque
Return the current scalar as a torque.- Returns:
- Torque; the current scalar as a torque
-
asTorque
Return the current scalar as a torque, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Torque; the current scalar as a torque
-
asVolume
Return the current scalar as a volume.- Returns:
- Volume; the current scalar as a volume
-
asVolume
Return the current scalar as a volume, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Volume; the current scalar as a volume
-
asAngle
Return the current scalar as a angle.- Returns:
- Angle; the current scalar as a angle
-
asAngle
Return the current scalar as a angle, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Angle; the current scalar as a angle
-
asLength
Return the current scalar as a length.- Returns:
- Length; the current scalar as a length
-
asLength
Return the current scalar as a length, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Length; the current scalar as a length
-
asTemperature
Return the current scalar as a temperature.- Returns:
- Temperature; the current scalar as a temperature
-
asTemperature
Return the current scalar as a temperature, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Temperature; the current scalar as a temperature
-
asDuration
Return the current scalar as a duration.- Returns:
- Duration; the current scalar as a duration
-
asDuration
Return the current scalar as a duration, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- Duration; the current scalar as a duration
-