Package org.djunits.value.vdouble.vector
Class SIVector
- java.lang.Object
-
- org.djunits.value.AbstractValue<U,T>
-
- org.djunits.value.AbstractIndexedValue<U,S,V,DoubleVectorData>
-
- org.djunits.value.vdouble.vector.base.AbstractDoubleVector<U,S,RV>
-
- org.djunits.value.vdouble.vector.base.AbstractDoubleVectorRel<SIUnit,SIScalar,SIVector>
-
- org.djunits.value.vdouble.vector.SIVector
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<SIScalar>
,Vector<SIUnit,SIScalar,SIVector>
,Vector.Rel<SIUnit,SIScalar,SIVector>
,ValueFunctions<SIUnit,SIVector>
,IndexedValue<SIUnit,SIScalar,SIVector>
,Relative<SIUnit,SIVector>
,Value<SIUnit,SIVector>
,DoubleVectorInterface<SIUnit,SIScalar,SIVector>
@Generated(value="org.djunits.generator.GenerateDJUNIT", date="2023-04-30T13:59:27.633664900Z") public class SIVector extends AbstractDoubleVectorRel<SIUnit,SIScalar,SIVector>
Easy access methods for the generic Relative SI DoubleVector.Copyright (c) 2013-2023 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
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.djunits.value.vdouble.vector.base.AbstractDoubleVector
AbstractDoubleVector.Itr
-
Nested classes/interfaces inherited from interface org.djunits.value.base.Vector
Vector.Abs<AU extends AbsoluteLinearUnit<AU,RU>,A extends Scalar<AU,A>,AV extends Vector.Abs<AU,A,AV,RU,R,RV>,RU extends Unit<RU>,R extends Scalar<RU,R>,RV extends Vector.RelWithAbs<AU,A,AV,RU,R,RV>>, Vector.Rel<U extends Unit<U>,S extends Scalar<U,S>,RV extends Vector.Rel<U,S,RV>>, Vector.RelWithAbs<AU extends AbsoluteLinearUnit<AU,RU>,A extends Scalar<AU,A>,AV extends Vector.Abs<AU,A,AV,RU,R,RV>,RU extends Unit<RU>,R extends Scalar<RU,R>,RV extends Vector.RelWithAbs<AU,A,AV,RU,R,RV>>
-
-
Field Summary
-
Fields inherited from class org.djunits.value.vdouble.vector.base.AbstractDoubleVector
data
-
-
Constructor Summary
Constructors Constructor Description SIVector(DoubleVectorData data, SIUnit unit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <U extends Unit<U>,S extends AbstractDoubleScalarRel<U,S>,V extends AbstractDoubleVectorRel<U,S,V>>
Vas(U displayUnit)
Return the current vector transformed to a vector in the given unit.AbsorbedDoseVector
asAbsorbedDose()
Return the current vector as a absorbeddose vector.AbsorbedDoseVector
asAbsorbedDose(AbsorbedDoseUnit displayUnit)
Return the current vector as a absorbeddose vector, and provide a display unit.AccelerationVector
asAcceleration()
Return the current vector as a acceleration vector.AccelerationVector
asAcceleration(AccelerationUnit displayUnit)
Return the current vector as a acceleration vector, and provide a display unit.AmountOfSubstanceVector
asAmountOfSubstance()
Return the current vector as a amountofsubstance vector.AmountOfSubstanceVector
asAmountOfSubstance(AmountOfSubstanceUnit displayUnit)
Return the current vector as a amountofsubstance vector, and provide a display unit.AngleVector
asAngle()
Return the current vector as a angle vector.AngleVector
asAngle(AngleUnit displayUnit)
Return the current vector as a angle vector, and provide a display unit.AngularAccelerationVector
asAngularAcceleration()
Return the current vector as a angularacceleration vector.AngularAccelerationVector
asAngularAcceleration(AngularAccelerationUnit displayUnit)
Return the current vector as a angularacceleration vector, and provide a display unit.AngularVelocityVector
asAngularVelocity()
Return the current vector as a angularvelocity vector.AngularVelocityVector
asAngularVelocity(AngularVelocityUnit displayUnit)
Return the current vector as a angularvelocity vector, and provide a display unit.AreaVector
asArea()
Return the current vector as a area vector.AreaVector
asArea(AreaUnit displayUnit)
Return the current vector as a area vector, and provide a display unit.CatalyticActivityVector
asCatalyticActivity()
Return the current vector as a catalyticactivity vector.CatalyticActivityVector
asCatalyticActivity(CatalyticActivityUnit displayUnit)
Return the current vector as a catalyticactivity vector, and provide a display unit.DensityVector
asDensity()
Return the current vector as a density vector.DensityVector
asDensity(DensityUnit displayUnit)
Return the current vector as a density vector, and provide a display unit.DimensionlessVector
asDimensionless()
Return the current vector as a dimensionless vector.DimensionlessVector
asDimensionless(DimensionlessUnit displayUnit)
Return the current vector as a dimensionless vector, and provide a display unit.DurationVector
asDuration()
Return the current vector as a duration vector.DurationVector
asDuration(DurationUnit displayUnit)
Return the current vector as a duration vector, and provide a display unit.ElectricalCapacitanceVector
asElectricalCapacitance()
Return the current vector as a electricalcapacitance vector.ElectricalCapacitanceVector
asElectricalCapacitance(ElectricalCapacitanceUnit displayUnit)
Return the current vector as a electricalcapacitance vector, and provide a display unit.ElectricalChargeVector
asElectricalCharge()
Return the current vector as a electricalcharge vector.ElectricalChargeVector
asElectricalCharge(ElectricalChargeUnit displayUnit)
Return the current vector as a electricalcharge vector, and provide a display unit.ElectricalConductanceVector
asElectricalConductance()
Return the current vector as a electricalconductance vector.ElectricalConductanceVector
asElectricalConductance(ElectricalConductanceUnit displayUnit)
Return the current vector as a electricalconductance vector, and provide a display unit.ElectricalCurrentVector
asElectricalCurrent()
Return the current vector as a electricalcurrent vector.ElectricalCurrentVector
asElectricalCurrent(ElectricalCurrentUnit displayUnit)
Return the current vector as a electricalcurrent vector, and provide a display unit.ElectricalInductanceVector
asElectricalInductance()
Return the current vector as a electricalinductance vector.ElectricalInductanceVector
asElectricalInductance(ElectricalInductanceUnit displayUnit)
Return the current vector as a electricalinductance vector, and provide a display unit.ElectricalPotentialVector
asElectricalPotential()
Return the current vector as a electricalpotential vector.ElectricalPotentialVector
asElectricalPotential(ElectricalPotentialUnit displayUnit)
Return the current vector as a electricalpotential vector, and provide a display unit.ElectricalResistanceVector
asElectricalResistance()
Return the current vector as a electricalresistance vector.ElectricalResistanceVector
asElectricalResistance(ElectricalResistanceUnit displayUnit)
Return the current vector as a electricalresistance vector, and provide a display unit.EnergyVector
asEnergy()
Return the current vector as a energy vector.EnergyVector
asEnergy(EnergyUnit displayUnit)
Return the current vector as a energy vector, and provide a display unit.EquivalentDoseVector
asEquivalentDose()
Return the current vector as a equivalentdose vector.EquivalentDoseVector
asEquivalentDose(EquivalentDoseUnit displayUnit)
Return the current vector as a equivalentdose vector, and provide a display unit.FlowMassVector
asFlowMass()
Return the current vector as a flowmass vector.FlowMassVector
asFlowMass(FlowMassUnit displayUnit)
Return the current vector as a flowmass vector, and provide a display unit.FlowVolumeVector
asFlowVolume()
Return the current vector as a flowvolume vector.FlowVolumeVector
asFlowVolume(FlowVolumeUnit displayUnit)
Return the current vector as a flowvolume vector, and provide a display unit.ForceVector
asForce()
Return the current vector as a force vector.ForceVector
asForce(ForceUnit displayUnit)
Return the current vector as a force vector, and provide a display unit.FrequencyVector
asFrequency()
Return the current vector as a frequency vector.FrequencyVector
asFrequency(FrequencyUnit displayUnit)
Return the current vector as a frequency vector, and provide a display unit.IlluminanceVector
asIlluminance()
Return the current vector as a illuminance vector.IlluminanceVector
asIlluminance(IlluminanceUnit displayUnit)
Return the current vector as a illuminance vector, and provide a display unit.LengthVector
asLength()
Return the current vector as a length vector.LengthVector
asLength(LengthUnit displayUnit)
Return the current vector as a length vector, and provide a display unit.LinearDensityVector
asLinearDensity()
Return the current vector as a lineardensity vector.LinearDensityVector
asLinearDensity(LinearDensityUnit displayUnit)
Return the current vector as a lineardensity vector, and provide a display unit.LuminousFluxVector
asLuminousFlux()
Return the current vector as a luminousflux vector.LuminousFluxVector
asLuminousFlux(LuminousFluxUnit displayUnit)
Return the current vector as a luminousflux vector, and provide a display unit.LuminousIntensityVector
asLuminousIntensity()
Return the current vector as a luminousintensity vector.LuminousIntensityVector
asLuminousIntensity(LuminousIntensityUnit displayUnit)
Return the current vector as a luminousintensity vector, and provide a display unit.MagneticFluxVector
asMagneticFlux()
Return the current vector as a magneticflux vector.MagneticFluxVector
asMagneticFlux(MagneticFluxUnit displayUnit)
Return the current vector as a magneticflux vector, and provide a display unit.MagneticFluxDensityVector
asMagneticFluxDensity()
Return the current vector as a magneticfluxdensity vector.MagneticFluxDensityVector
asMagneticFluxDensity(MagneticFluxDensityUnit displayUnit)
Return the current vector as a magneticfluxdensity vector, and provide a display unit.MassVector
asMass()
Return the current vector as a mass vector.MassVector
asMass(MassUnit displayUnit)
Return the current vector as a mass vector, and provide a display unit.MomentumVector
asMomentum()
Return the current vector as a momentum vector.MomentumVector
asMomentum(MomentumUnit displayUnit)
Return the current vector as a momentum vector, and provide a display unit.PowerVector
asPower()
Return the current vector as a power vector.PowerVector
asPower(PowerUnit displayUnit)
Return the current vector as a power vector, and provide a display unit.PressureVector
asPressure()
Return the current vector as a pressure vector.PressureVector
asPressure(PressureUnit displayUnit)
Return the current vector as a pressure vector, and provide a display unit.RadioActivityVector
asRadioActivity()
Return the current vector as a radioactivity vector.RadioActivityVector
asRadioActivity(RadioActivityUnit displayUnit)
Return the current vector as a radioactivity vector, and provide a display unit.SolidAngleVector
asSolidAngle()
Return the current vector as a solidangle vector.SolidAngleVector
asSolidAngle(SolidAngleUnit displayUnit)
Return the current vector as a solidangle vector, and provide a display unit.SpeedVector
asSpeed()
Return the current vector as a speed vector.SpeedVector
asSpeed(SpeedUnit displayUnit)
Return the current vector as a speed vector, and provide a display unit.TemperatureVector
asTemperature()
Return the current vector as a temperature vector.TemperatureVector
asTemperature(TemperatureUnit displayUnit)
Return the current vector as a temperature vector, and provide a display unit.TorqueVector
asTorque()
Return the current vector as a torque vector.TorqueVector
asTorque(TorqueUnit displayUnit)
Return the current vector as a torque vector, and provide a display unit.VolumeVector
asVolume()
Return the current vector as a volume vector.VolumeVector
asVolume(VolumeUnit displayUnit)
Return the current vector as a volume vector, and provide a display unit.Class<SIScalar>
getScalarClass()
Return the class of the corresponding scalar.static SIVector
instantiate(double[] values, SIUnit unit, StorageType storageType)
Construct a new Relative Double SIVector.static SIVector
instantiate(List<Double> values, SIUnit unit, StorageType storageType)
Construct a new Relative Double SIVector.static SIVector
instantiate(SortedMap<Integer,Double> values, int length, SIUnit unit, StorageType storageType)
Construct a new Relative Double SIVector.SIScalar
instantiateScalarSI(double valueSI, SIUnit unit)
Instantiate a new scalar for the class of this vector.SIVector
instantiateVector(DoubleVectorData dvd, SIUnit unit)
Instantiate a new vector of the class of this vector.static SIVector
of(double[] value, String unitString, StorageType storageType)
Returns an SIVector based on an array of values and the textual representation of the unit.static SIVector
of(List<Double> valueList, String unitString, StorageType storageType)
Returns an SIVector based on an array of values and the textual representation of the unit.static SIVector
of(SortedMap<Integer,Double> valueMap, String unitString, int length, StorageType storageType)
Returns an SIVector based on a (sparse) map of values and the textual representation of the unit.String
toString(SIUnit displayUnit, boolean verbose, boolean withUnit)
Somewhat verbose description of this value with the values expressed in the specified unit.-
Methods inherited from class org.djunits.value.vdouble.vector.base.AbstractDoubleVectorRel
decrementBy, decrementBy, divide, divide, divide, divideBy, incrementBy, incrementBy, minus, multiplyBy, plus, times, times, times, zSum
-
Methods inherited from class org.djunits.value.vdouble.vector.base.AbstractDoubleVector
abs, assign, ceil, checkIndex, checkSize, equals, floor, get, getData, getInUnit, getInUnit, getScalars, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, iterator, neg, rint, set, setData, setInUnit, setInUnit, setSI, size, toDense, toSparse, toString, toString, toString
-
Methods inherited from class org.djunits.value.AbstractIndexedValue
cardinality, checkCopyOnWrite, clone, getStorageType, immutable, isCopyOnWrite, isDense, isMutable, isSparse, mutable, setCopyOnWrite, setMutable
-
Methods inherited from class org.djunits.value.AbstractValue
getDisplayUnit, isAbsolute, isRelative, setDisplayUnit
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.djunits.value.IndexedValue
cardinality, getStorageType, immutable, isDense, isMutable, isSparse, mutable, toDense, toSparse
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface org.djunits.value.Value
getDisplayUnit, isAbsolute, isRelative, setDisplayUnit, toString, toString, toString
-
Methods inherited from interface org.djunits.value.function.ValueFunctions
abs, ceil, floor, neg, rint
-
Methods inherited from interface org.djunits.value.base.Vector
get, getScalars, iterator, size
-
-
-
-
Constructor Detail
-
SIVector
public SIVector(DoubleVectorData data, SIUnit unit)
- Parameters:
data
- DoubleVectorData; an internal data objectunit
- SIUnit; the unit
-
-
Method Detail
-
instantiate
public static SIVector instantiate(double[] values, SIUnit unit, StorageType storageType) throws ValueRuntimeException
Construct a new Relative Double SIVector.- Parameters:
values
- double[]; the values of the entries in the new Relative Double SIVectorunit
- SIUnit; the unit of the new Relative Double SIVectorstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)- Returns:
- SIVector; the SIVector of the given unit
- Throws:
ValueRuntimeException
- when values is null
-
instantiate
public static SIVector instantiate(List<Double> values, SIUnit unit, StorageType storageType) throws ValueRuntimeException
Construct a new Relative Double SIVector.- Parameters:
values
- List<Double>; the values of the entries in the new Relative Double SIVectorunit
- SIUnit; the unit of the new Relative Double SIVectorstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)- Returns:
- SIVector; the SIVector of the given unit
- Throws:
ValueRuntimeException
- when values is null
-
instantiate
public static SIVector instantiate(SortedMap<Integer,Double> values, int length, SIUnit unit, StorageType storageType) throws ValueRuntimeException
Construct a new Relative Double SIVector.- Parameters:
values
- SortedMap<Integer, Double>; the map of indexes to values of the Relative Sparse Double SIVectorlength
- int; the size of the vectorunit
- SIUnit; the unit of the new Relative Sparse Double SIVectorstorageType
- StorageType; the data type to use (e.g., DENSE or SPARSE)- Returns:
- SIVector; the SIVector of the given unit
- Throws:
ValueRuntimeException
- when values is null
-
getScalarClass
public Class<SIScalar> getScalarClass()
Return the class of the corresponding scalar.- Returns:
- Class<S>; the class of the corresponding scalar
-
of
public static SIVector of(double[] value, String unitString, StorageType storageType)
Returns an SIVector based on an array of values and the textual representation of the unit.- Parameters:
value
- double[]; the values to useunitString
- String; the textual representation of the unitstorageType
- StorageType; the storage type to use- Returns:
- SIVector; the vector representation of the values in their unit
- Throws:
IllegalArgumentException
- when the unit cannot be parsed or is incorrectNullPointerException
- when the unitString argument is null
-
of
public static SIVector of(List<Double> valueList, String unitString, StorageType storageType)
Returns an SIVector based on an array of values and the textual representation of the unit.- Parameters:
valueList
- List<Double>; the values to useunitString
- String; the textual representation of the unitstorageType
- StorageType; the storage type to use- Returns:
- SIVector; the vector representation of the values in their unit
- Throws:
IllegalArgumentException
- when the unit cannot be parsed or is incorrectNullPointerException
- when the unitString argument is null
-
of
public static SIVector of(SortedMap<Integer,Double> valueMap, String unitString, int length, StorageType storageType)
Returns an SIVector based on a (sparse) map of values and the textual representation of the unit.- Parameters:
valueMap
- SortedMap<Integer, Double>; the values to useunitString
- String; the textual representation of the unitlength
- int; the size of the vectorstorageType
- StorageType; the storage type to use- Returns:
- SIVector; the vector representation of the values in their unit
- Throws:
IllegalArgumentException
- when the unit cannot be parsed or is incorrectNullPointerException
- when the unitString argument is null
-
instantiateVector
public SIVector instantiateVector(DoubleVectorData dvd, SIUnit unit)
Instantiate a new vector of the class of this vector. This can be used instead of the DoubleVector.instiantiate() methods in case another vector of this class is known. The method is faster than DoubleVector.instantiate, and it will also work if the vector is user-defined.- Parameters:
dvd
- DoubleVectorData; the data used to instantiate the vectorunit
- U; the display unit of the vector- Returns:
- V; a vector of the correct type
-
instantiateScalarSI
public SIScalar instantiateScalarSI(double valueSI, SIUnit unit)
Instantiate a new scalar for the class of this vector. This can be used instead of the DoubleScalar.instiantiate() methods in case a vector of this class is known. The method is faster than DoubleScalar.instantiate, and it will also work if the vector and/or scalar are user-defined.- Parameters:
valueSI
- double; the SI value of the scalarunit
- U; the unit in which the value will be displayed- Returns:
- S; a scalar of the correct type, belonging to the vector type
-
toString
public String toString(SIUnit displayUnit, boolean verbose, boolean withUnit)
Somewhat verbose description of this value with the values expressed in the specified unit.- Specified by:
toString
in interfaceValue<SIUnit,SIVector>
- Overrides:
toString
in classAbstractDoubleVector<SIUnit,SIScalar,SIVector>
- Parameters:
displayUnit
- U; the unit into which the values are converted for displayverbose
- boolean; if true; include type info; if false; exclude type infowithUnit
- boolean; if true; include the unit; of false; exclude the unit- Returns:
- String; printable string with the value contents
-
as
public final <U extends Unit<U>,S extends AbstractDoubleScalarRel<U,S>,V extends AbstractDoubleVectorRel<U,S,V>> V as(U displayUnit)
Return the current vector transformed to a vector in the given unit. Of course the SI dimensionality has to match, otherwise the vector cannot be transformed. The compiler will check the alignment between the return value and the unit.- Type Parameters:
U
- the unit typeS
- the scalar typeV
- the vector type- Parameters:
displayUnit
- KU; the unit in which the vector needs to be expressed- Returns:
- V; the vector that has been transformed into the right vector type and unit
-
asAbsorbedDose
public final AbsorbedDoseVector asAbsorbedDose()
Return the current vector as a absorbeddose vector.- Returns:
- AbsorbedDoseVector; the current vector as a absorbeddose vector
-
asAbsorbedDose
public final AbsorbedDoseVector asAbsorbedDose(AbsorbedDoseUnit displayUnit)
Return the current vector as a absorbeddose vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- AbsorbedDoseVector; the current vector as a absorbeddose vector
-
asAcceleration
public final AccelerationVector asAcceleration()
Return the current vector as a acceleration vector.- Returns:
- AccelerationVector; the current vector as a acceleration vector
-
asAcceleration
public final AccelerationVector asAcceleration(AccelerationUnit displayUnit)
Return the current vector as a acceleration vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- AccelerationVector; the current vector as a acceleration vector
-
asAmountOfSubstance
public final AmountOfSubstanceVector asAmountOfSubstance()
Return the current vector as a amountofsubstance vector.- Returns:
- AmountOfSubstanceVector; the current vector as a amountofsubstance vector
-
asAmountOfSubstance
public final AmountOfSubstanceVector asAmountOfSubstance(AmountOfSubstanceUnit displayUnit)
Return the current vector as a amountofsubstance vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- AmountOfSubstanceVector; the current vector as a amountofsubstance vector
-
asAngularAcceleration
public final AngularAccelerationVector asAngularAcceleration()
Return the current vector as a angularacceleration vector.- Returns:
- AngularAccelerationVector; the current vector as a angularacceleration vector
-
asAngularAcceleration
public final AngularAccelerationVector asAngularAcceleration(AngularAccelerationUnit displayUnit)
Return the current vector as a angularacceleration vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- AngularAccelerationVector; the current vector as a angularacceleration vector
-
asAngularVelocity
public final AngularVelocityVector asAngularVelocity()
Return the current vector as a angularvelocity vector.- Returns:
- AngularVelocityVector; the current vector as a angularvelocity vector
-
asAngularVelocity
public final AngularVelocityVector asAngularVelocity(AngularVelocityUnit displayUnit)
Return the current vector as a angularvelocity vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- AngularVelocityVector; the current vector as a angularvelocity vector
-
asArea
public final AreaVector asArea()
Return the current vector as a area vector.- Returns:
- AreaVector; the current vector as a area vector
-
asArea
public final AreaVector asArea(AreaUnit displayUnit)
Return the current vector as a area vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- AreaVector; the current vector as a area vector
-
asCatalyticActivity
public final CatalyticActivityVector asCatalyticActivity()
Return the current vector as a catalyticactivity vector.- Returns:
- CatalyticActivityVector; the current vector as a catalyticactivity vector
-
asCatalyticActivity
public final CatalyticActivityVector asCatalyticActivity(CatalyticActivityUnit displayUnit)
Return the current vector as a catalyticactivity vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- CatalyticActivityVector; the current vector as a catalyticactivity vector
-
asDensity
public final DensityVector asDensity()
Return the current vector as a density vector.- Returns:
- DensityVector; the current vector as a density vector
-
asDensity
public final DensityVector asDensity(DensityUnit displayUnit)
Return the current vector as a density vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- DensityVector; the current vector as a density vector
-
asDimensionless
public final DimensionlessVector asDimensionless()
Return the current vector as a dimensionless vector.- Returns:
- DimensionlessVector; the current vector as a dimensionless vector
-
asDimensionless
public final DimensionlessVector asDimensionless(DimensionlessUnit displayUnit)
Return the current vector as a dimensionless vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- DimensionlessVector; the current vector as a dimensionless vector
-
asElectricalCapacitance
public final ElectricalCapacitanceVector asElectricalCapacitance()
Return the current vector as a electricalcapacitance vector.- Returns:
- ElectricalCapacitanceVector; the current vector as a electricalcapacitance vector
-
asElectricalCapacitance
public final ElectricalCapacitanceVector asElectricalCapacitance(ElectricalCapacitanceUnit displayUnit)
Return the current vector as a electricalcapacitance vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- ElectricalCapacitanceVector; the current vector as a electricalcapacitance vector
-
asElectricalCharge
public final ElectricalChargeVector asElectricalCharge()
Return the current vector as a electricalcharge vector.- Returns:
- ElectricalChargeVector; the current vector as a electricalcharge vector
-
asElectricalCharge
public final ElectricalChargeVector asElectricalCharge(ElectricalChargeUnit displayUnit)
Return the current vector as a electricalcharge vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- ElectricalChargeVector; the current vector as a electricalcharge vector
-
asElectricalConductance
public final ElectricalConductanceVector asElectricalConductance()
Return the current vector as a electricalconductance vector.- Returns:
- ElectricalConductanceVector; the current vector as a electricalconductance vector
-
asElectricalConductance
public final ElectricalConductanceVector asElectricalConductance(ElectricalConductanceUnit displayUnit)
Return the current vector as a electricalconductance vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- ElectricalConductanceVector; the current vector as a electricalconductance vector
-
asElectricalCurrent
public final ElectricalCurrentVector asElectricalCurrent()
Return the current vector as a electricalcurrent vector.- Returns:
- ElectricalCurrentVector; the current vector as a electricalcurrent vector
-
asElectricalCurrent
public final ElectricalCurrentVector asElectricalCurrent(ElectricalCurrentUnit displayUnit)
Return the current vector as a electricalcurrent vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- ElectricalCurrentVector; the current vector as a electricalcurrent vector
-
asElectricalInductance
public final ElectricalInductanceVector asElectricalInductance()
Return the current vector as a electricalinductance vector.- Returns:
- ElectricalInductanceVector; the current vector as a electricalinductance vector
-
asElectricalInductance
public final ElectricalInductanceVector asElectricalInductance(ElectricalInductanceUnit displayUnit)
Return the current vector as a electricalinductance vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- ElectricalInductanceVector; the current vector as a electricalinductance vector
-
asElectricalPotential
public final ElectricalPotentialVector asElectricalPotential()
Return the current vector as a electricalpotential vector.- Returns:
- ElectricalPotentialVector; the current vector as a electricalpotential vector
-
asElectricalPotential
public final ElectricalPotentialVector asElectricalPotential(ElectricalPotentialUnit displayUnit)
Return the current vector as a electricalpotential vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- ElectricalPotentialVector; the current vector as a electricalpotential vector
-
asElectricalResistance
public final ElectricalResistanceVector asElectricalResistance()
Return the current vector as a electricalresistance vector.- Returns:
- ElectricalResistanceVector; the current vector as a electricalresistance vector
-
asElectricalResistance
public final ElectricalResistanceVector asElectricalResistance(ElectricalResistanceUnit displayUnit)
Return the current vector as a electricalresistance vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- ElectricalResistanceVector; the current vector as a electricalresistance vector
-
asEnergy
public final EnergyVector asEnergy()
Return the current vector as a energy vector.- Returns:
- EnergyVector; the current vector as a energy vector
-
asEnergy
public final EnergyVector asEnergy(EnergyUnit displayUnit)
Return the current vector as a energy vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- EnergyVector; the current vector as a energy vector
-
asEquivalentDose
public final EquivalentDoseVector asEquivalentDose()
Return the current vector as a equivalentdose vector.- Returns:
- EquivalentDoseVector; the current vector as a equivalentdose vector
-
asEquivalentDose
public final EquivalentDoseVector asEquivalentDose(EquivalentDoseUnit displayUnit)
Return the current vector as a equivalentdose vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- EquivalentDoseVector; the current vector as a equivalentdose vector
-
asFlowMass
public final FlowMassVector asFlowMass()
Return the current vector as a flowmass vector.- Returns:
- FlowMassVector; the current vector as a flowmass vector
-
asFlowMass
public final FlowMassVector asFlowMass(FlowMassUnit displayUnit)
Return the current vector as a flowmass vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- FlowMassVector; the current vector as a flowmass vector
-
asFlowVolume
public final FlowVolumeVector asFlowVolume()
Return the current vector as a flowvolume vector.- Returns:
- FlowVolumeVector; the current vector as a flowvolume vector
-
asFlowVolume
public final FlowVolumeVector asFlowVolume(FlowVolumeUnit displayUnit)
Return the current vector as a flowvolume vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- FlowVolumeVector; the current vector as a flowvolume vector
-
asForce
public final ForceVector asForce()
Return the current vector as a force vector.- Returns:
- ForceVector; the current vector as a force vector
-
asForce
public final ForceVector asForce(ForceUnit displayUnit)
Return the current vector as a force vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- ForceVector; the current vector as a force vector
-
asFrequency
public final FrequencyVector asFrequency()
Return the current vector as a frequency vector.- Returns:
- FrequencyVector; the current vector as a frequency vector
-
asFrequency
public final FrequencyVector asFrequency(FrequencyUnit displayUnit)
Return the current vector as a frequency vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- FrequencyVector; the current vector as a frequency vector
-
asIlluminance
public final IlluminanceVector asIlluminance()
Return the current vector as a illuminance vector.- Returns:
- IlluminanceVector; the current vector as a illuminance vector
-
asIlluminance
public final IlluminanceVector asIlluminance(IlluminanceUnit displayUnit)
Return the current vector as a illuminance vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- IlluminanceVector; the current vector as a illuminance vector
-
asLinearDensity
public final LinearDensityVector asLinearDensity()
Return the current vector as a lineardensity vector.- Returns:
- LinearDensityVector; the current vector as a lineardensity vector
-
asLinearDensity
public final LinearDensityVector asLinearDensity(LinearDensityUnit displayUnit)
Return the current vector as a lineardensity vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- LinearDensityVector; the current vector as a lineardensity vector
-
asLuminousFlux
public final LuminousFluxVector asLuminousFlux()
Return the current vector as a luminousflux vector.- Returns:
- LuminousFluxVector; the current vector as a luminousflux vector
-
asLuminousFlux
public final LuminousFluxVector asLuminousFlux(LuminousFluxUnit displayUnit)
Return the current vector as a luminousflux vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- LuminousFluxVector; the current vector as a luminousflux vector
-
asLuminousIntensity
public final LuminousIntensityVector asLuminousIntensity()
Return the current vector as a luminousintensity vector.- Returns:
- LuminousIntensityVector; the current vector as a luminousintensity vector
-
asLuminousIntensity
public final LuminousIntensityVector asLuminousIntensity(LuminousIntensityUnit displayUnit)
Return the current vector as a luminousintensity vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- LuminousIntensityVector; the current vector as a luminousintensity vector
-
asMagneticFluxDensity
public final MagneticFluxDensityVector asMagneticFluxDensity()
Return the current vector as a magneticfluxdensity vector.- Returns:
- MagneticFluxDensityVector; the current vector as a magneticfluxdensity vector
-
asMagneticFluxDensity
public final MagneticFluxDensityVector asMagneticFluxDensity(MagneticFluxDensityUnit displayUnit)
Return the current vector as a magneticfluxdensity vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- MagneticFluxDensityVector; the current vector as a magneticfluxdensity vector
-
asMagneticFlux
public final MagneticFluxVector asMagneticFlux()
Return the current vector as a magneticflux vector.- Returns:
- MagneticFluxVector; the current vector as a magneticflux vector
-
asMagneticFlux
public final MagneticFluxVector asMagneticFlux(MagneticFluxUnit displayUnit)
Return the current vector as a magneticflux vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- MagneticFluxVector; the current vector as a magneticflux vector
-
asMass
public final MassVector asMass()
Return the current vector as a mass vector.- Returns:
- MassVector; the current vector as a mass vector
-
asMass
public final MassVector asMass(MassUnit displayUnit)
Return the current vector as a mass vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- MassVector; the current vector as a mass vector
-
asMomentum
public final MomentumVector asMomentum()
Return the current vector as a momentum vector.- Returns:
- MomentumVector; the current vector as a momentum vector
-
asMomentum
public final MomentumVector asMomentum(MomentumUnit displayUnit)
Return the current vector as a momentum vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- MomentumVector; the current vector as a momentum vector
-
asPower
public final PowerVector asPower()
Return the current vector as a power vector.- Returns:
- PowerVector; the current vector as a power vector
-
asPower
public final PowerVector asPower(PowerUnit displayUnit)
Return the current vector as a power vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- PowerVector; the current vector as a power vector
-
asPressure
public final PressureVector asPressure()
Return the current vector as a pressure vector.- Returns:
- PressureVector; the current vector as a pressure vector
-
asPressure
public final PressureVector asPressure(PressureUnit displayUnit)
Return the current vector as a pressure vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- PressureVector; the current vector as a pressure vector
-
asRadioActivity
public final RadioActivityVector asRadioActivity()
Return the current vector as a radioactivity vector.- Returns:
- RadioActivityVector; the current vector as a radioactivity vector
-
asRadioActivity
public final RadioActivityVector asRadioActivity(RadioActivityUnit displayUnit)
Return the current vector as a radioactivity vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- RadioActivityVector; the current vector as a radioactivity vector
-
asSolidAngle
public final SolidAngleVector asSolidAngle()
Return the current vector as a solidangle vector.- Returns:
- SolidAngleVector; the current vector as a solidangle vector
-
asSolidAngle
public final SolidAngleVector asSolidAngle(SolidAngleUnit displayUnit)
Return the current vector as a solidangle vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- SolidAngleVector; the current vector as a solidangle vector
-
asSpeed
public final SpeedVector asSpeed()
Return the current vector as a speed vector.- Returns:
- SpeedVector; the current vector as a speed vector
-
asSpeed
public final SpeedVector asSpeed(SpeedUnit displayUnit)
Return the current vector as a speed vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- SpeedVector; the current vector as a speed vector
-
asTorque
public final TorqueVector asTorque()
Return the current vector as a torque vector.- Returns:
- TorqueVector; the current vector as a torque vector
-
asTorque
public final TorqueVector asTorque(TorqueUnit displayUnit)
Return the current vector as a torque vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- TorqueVector; the current vector as a torque vector
-
asVolume
public final VolumeVector asVolume()
Return the current vector as a volume vector.- Returns:
- VolumeVector; the current vector as a volume vector
-
asVolume
public final VolumeVector asVolume(VolumeUnit displayUnit)
Return the current vector as a volume vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- VolumeVector; the current vector as a volume vector
-
asAngle
public final AngleVector asAngle()
Return the current vector as a angle vector.- Returns:
- AngleVector; the current vector as a angle vector
-
asAngle
public final AngleVector asAngle(AngleUnit displayUnit)
Return the current vector as a angle vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- AngleVector; the current vector as a angle vector
-
asLength
public final LengthVector asLength()
Return the current vector as a length vector.- Returns:
- LengthVector; the current vector as a length vector
-
asLength
public final LengthVector asLength(LengthUnit displayUnit)
Return the current vector as a length vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- LengthVector; the current vector as a length vector
-
asTemperature
public final TemperatureVector asTemperature()
Return the current vector as a temperature vector.- Returns:
- TemperatureVector; the current vector as a temperature vector
-
asTemperature
public final TemperatureVector asTemperature(TemperatureUnit displayUnit)
Return the current vector as a temperature vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- TemperatureVector; the current vector as a temperature vector
-
asDuration
public final DurationVector asDuration()
Return the current vector as a duration vector.- Returns:
- DurationVector; the current vector as a duration vector
-
asDuration
public final DurationVector asDuration(DurationUnit displayUnit)
Return the current vector as a duration vector, and provide a display unit.- Parameters:
displayUnit
- the unit in which the value will be displayed- Returns:
- DurationVector; the current vector as a duration vector
-
-