Class AbsorbedDoseVector

All Implemented Interfaces:
Serializable, Cloneable, Iterable<AbsorbedDose>, Vector<AbsorbedDoseUnit,​AbsorbedDose,​AbsorbedDoseVector>, Vector.Rel<AbsorbedDoseUnit,​AbsorbedDose,​AbsorbedDoseVector>, ValueFunctions<AbsorbedDoseUnit,​AbsorbedDoseVector>, IndexedValue<AbsorbedDoseUnit,​AbsorbedDose,​AbsorbedDoseVector>, Relative<AbsorbedDoseUnit,​AbsorbedDoseVector>, Value<AbsorbedDoseUnit,​AbsorbedDoseVector>, DoubleVectorInterface<AbsorbedDoseUnit,​AbsorbedDose,​AbsorbedDoseVector>

public class AbsorbedDoseVector
extends AbstractDoubleVectorRel<AbsorbedDoseUnit,​AbsorbedDose,​AbsorbedDoseVector>
Double AbsorbedDoseVector, a vector of values with a AbsorbedDoseUnit.

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.

Alexander Verbraeck, Peter Knoppers
See Also:
Serialized Form
  • Constructor Details

    • AbsorbedDoseVector

      public AbsorbedDoseVector​(DoubleVectorData data, AbsorbedDoseUnit displayUnit)
      Construct an AbsorbedDoseVector from an internal data object.
      data - DoubleVectorData; the internal data object for the vector data
      displayUnit - AbsorbedDoseUnit; the display unit of the vector data
  • Method Details

    • getScalarClass

      public Class<AbsorbedDose> getScalarClass()
      Return the class of the corresponding scalar.
      Class<S>; the class of the corresponding scalar
    • instantiateVector

      public AbsorbedDoseVector instantiateVector​(DoubleVectorData dvd, AbsorbedDoseUnit displayUnit)
      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.
      dvd - DoubleVectorData; the data used to instantiate the vector
      displayUnit - U; the display unit of the vector
      V; a vector of the correct type
    • instantiateScalarSI

      public AbsorbedDose instantiateScalarSI​(double valueSI, AbsorbedDoseUnit displayUnit)
      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.
      valueSI - double; the SI value of the scalar
      displayUnit - U; the unit in which the value will be displayed
      S; a scalar of the correct type, belonging to the vector type