Class SIVector

All Implemented Interfaces:
Serializable, Cloneable, Iterable<SIScalar>, Relative<SIUnit,SIVector>, Value<SIUnit,SIVector>

@Generated(value="org.djunits.generator.GenerateDJUNIT", date="2023-07-23T14:06:38.224104100Z") public class SIVector extends DoubleVectorRel<SIUnit,SIScalar,SIVector>
Easy access methods for the generic Relative SI DoubleVector.

Copyright (c) 2013-2024 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:
  • Constructor Details

    • SIVector

      public SIVector(DoubleVectorData data, SIUnit displayUnit)
      Construct an SIVector from an internal data object.
      Parameters:
      data - DoubleVectorData; the internal data object for the vector
      displayUnit - SIUnit; the display unit of the vector data
    • SIVector

      public SIVector(double[] data, SIUnit displayUnit, StorageType storageType)
      Construct an SIVector from a double[] object. The double values are expressed in the displayUnit, and will be printed using the displayUnit.
      Parameters:
      data - double[]; the data for the vector, expressed in the displayUnit
      displayUnit - SIUnit; the unit of the values in the data array, and display unit when printing
      storageType - StorageType; the StorageType (SPARSE or DENSE) to use for constructing the Vector
    • SIVector

      public SIVector(double[] data, SIUnit displayUnit)
      Construct an SIVector from a double[] object. The double values are expressed in the displayUnit. Assume that the StorageType is DENSE since we offer the data as an array.
      Parameters:
      data - double[]; the data for the vector
      displayUnit - SIUnit; the unit of the values in the data array, and display unit when printing
    • SIVector

      public SIVector(SIScalar[] data, SIUnit displayUnit, StorageType storageType)
      Construct an SIVector from an array of SIScalar objects. The SIScalar values are each expressed in their own unit, but will be internally stored as SI values, all expressed in the displayUnit when printing.
      Parameters:
      data - SIScalar[]; the data for the vector
      displayUnit - SIUnit; the display unit of the values when printing
      storageType - StorageType; the StorageType (SPARSE or DENSE) to use for constructing the Vector
    • SIVector

      public SIVector(SIScalar[] data, SIUnit displayUnit)
      Construct an SIVector from an array of SIScalar objects. The SIScalar values are each expressed in their own unit, but will be internally stored as SI values, all expressed in the displayUnit when printing. Assume that the StorageType is DENSE since we offer the data as an array.
      Parameters:
      data - SIScalar[]; the data for the vector
      displayUnit - SIUnit; the display unit of the values when printing
    • SIVector

      public SIVector(List<? extends Number> data, SIUnit displayUnit, StorageType storageType)
      Construct an SIVector from a list of Number objects or a list of SIScalar objects. Note that the displayUnit has a different meaning depending on whether the list contains Number objects (e.g., Double objects) or SIScalar objects. In case the list contains Number objects, the displayUnit indicates the unit in which the values in the list are expressed, as well as the unit in which they will be printed. In case the list contains SIScalar objects, each SIScalar has its own unit, and the displayUnit is just used for printing. The values but will always be internally stored as SI values or base values, and expressed using the display unit or base unit when printing.
      Parameters:
      data - List<Double> or List<SIScalar>; the data for the vector
      displayUnit - SIUnit; the display unit of the vector data, and the unit of the data points when the data is expressed as List<Double> or List<Number> in general
      storageType - StorageType; the StorageType (SPARSE or DENSE) to use for constructing the Vector
    • SIVector

      public SIVector(List<? extends Number> data, SIUnit displayUnit)
      Construct an SIVector from a list of Number objects or a list of SIScalar objects. Note that the displayUnit has a different meaning depending on whether the list contains Number objects (e.g., Double objects) or SIScalar objects. In case the list contains Number objects, the displayUnit indicates the unit in which the values in the list are expressed, as well as the unit in which they will be printed. In case the list contains SIScalar objects, each SIScalar has its own unit, and the displayUnit is just used for printing. The values but will always be internally stored as SI values or base values, and expressed using the display unit or base unit when printing. Assume the storage type is DENSE since we offer the data as a List.
      Parameters:
      data - List<Double> or List<SIScalar>; the data for the vector
      displayUnit - SIUnit; the display unit of the vector data, and the unit of the data points when the data is expressed as List<Double> or List<Number> in general
    • SIVector

      public SIVector(Map<Integer,? extends Number> data, int size, SIUnit displayUnit, StorageType storageType)
      Construct an SIVector from a (sparse) map of index values to Number objects or a (sparse) map of index values to of SIScalar objects. Using index values is particularly useful for sparse vectors. The size parameter indicates the size of the vector, since the largest index does not have to be part of the map. Note that the displayUnit has a different meaning depending on whether the map contains Number objects (e.g., Double objects) or SIScalar objects. In case the map contains Number objects, the displayUnit indicates the unit in which the values in the map are expressed, as well as the unit in which they will be printed. In case the map contains SIScalar objects, each SIScalar has its own unit, and the displayUnit is just used for printing. The values but will always be internally stored as SI values or base values, and expressed using the display unit or base unit when printing.
      Parameters:
      data - Map<Integer, Double> or Map<Integer, SIScalar>; the data for the vector
      size - int; the size off the vector, i.e., the highest index
      displayUnit - SIUnit; the display unit of the vector data, and the unit of the data points when the data is expressed as List<Double> or List<Number> in general
      storageType - StorageType; the StorageType (SPARSE or DENSE) to use for constructing the Vector
    • SIVector

      public SIVector(Map<Integer,? extends Number> data, int size, SIUnit displayUnit)
      Construct an SIVector from a (sparse) map of index values to Number objects or a (sparse) map of index values to of SIScalar objects. Using index values is particularly useful for sparse vectors. The size parameter indicates the size of the vector, since the largest index does not have to be part of the map. Note that the displayUnit has a different meaning depending on whether the map contains Number objects (e.g., Double objects) or SIScalar objects. In case the map contains Number objects, the displayUnit indicates the unit in which the values in the map are expressed, as well as the unit in which they will be printed. In case the map contains SIScalar objects, each SIScalar has its own unit, and the displayUnit is just used for printing. The values but will always be internally stored as SI values or base values, and expressed using the display unit or base unit when printing. Assume the storage type is SPARSE since we offer the data as a Map.
      Parameters:
      data - Map<Integer, Double> or Map<Integer, SIScalar>; the data for the vector
      size - int; the size off the vector, i.e., the highest index
      displayUnit - SIUnit; the display unit of the vector data, and the unit of the data points when the data is expressed as List<Double> or List<Number> in general
  • Method Details

    • getScalarClass

      public Class<SIScalar> getScalarClass()
      Description copied from class: IndexedValue
      Return the class of the corresponding scalar.
      Specified by:
      getScalarClass in class IndexedValue<SIUnit,SIScalar,SIVector,DoubleVectorData>
      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 use
      unitString - String; the textual representation of the unit
      storageType - 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 incorrect
      NullPointerException - 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 use
      unitString - String; the textual representation of the unit
      storageType - 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 incorrect
      NullPointerException - when the unitString argument is null
    • of

      public static SIVector of(Map<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 - Map<Integer, Double>; the values to use
      unitString - String; the textual representation of the unit
      length - int; the size of the vector
      storageType - 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 incorrect
      NullPointerException - when the unitString argument is null
    • instantiateVector

      public SIVector instantiateVector(DoubleVectorData dvd, SIUnit unit)
      Description copied from class: DoubleVector
      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.
      Specified by:
      instantiateVector in class DoubleVector<SIUnit,SIScalar,SIVector>
      Parameters:
      dvd - DoubleVectorData; the data used to instantiate the vector
      unit - U; the display unit of the vector
      Returns:
      V; a vector of the correct type
    • instantiateScalarSI

      public SIScalar instantiateScalarSI(double valueSI, SIUnit unit)
      Description copied from class: DoubleVector
      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.
      Specified by:
      instantiateScalarSI in class DoubleVector<SIUnit,SIScalar,SIVector>
      Parameters:
      valueSI - double; the SI value of the scalar
      unit - 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)
      Description copied from interface: Value
      Somewhat verbose description of this value with the values expressed in the specified unit.
      Specified by:
      toString in interface Value<SIUnit,SIVector>
      Overrides:
      toString in class DoubleVector<SIUnit,SIScalar,SIVector>
      Parameters:
      displayUnit - U; the unit into which the values are converted for display
      verbose - boolean; if true; include type info; if false; exclude type info
      withUnit - boolean; if true; include the unit; of false; exclude the unit
      Returns:
      String; printable string with the value contents
    • 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