Class DoubleSIVectorTest

java.lang.Object
org.djunits.value.vdouble.vector.DoubleSIVectorTest

public class DoubleSIVectorTest
extends Object
Test.java.

Copyright (c) 2019-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License

Author:
Alexander Verbraeck
  • Constructor Summary

    Constructors 
    Constructor Description
    DoubleSIVectorTest()  
  • Method Summary

    Modifier and Type Method Description
    <AU extends org.djunits.unit.AbsoluteLinearUnit<AU,​ RU>,​ A extends org.djunits.value.vdouble.scalar.base.AbstractDoubleScalarAbs<AU,​ A,​ RU,​ R>,​ AV extends org.djunits.value.vdouble.vector.base.AbstractDoubleVectorAbs<AU,​ A,​ AV,​ RU,​ R,​ RV>,​ RU extends org.djunits.unit.Unit<RU>,​ R extends org.djunits.value.vdouble.scalar.base.AbstractDoubleScalarRelWithAbs<AU,​ A,​ RU,​ R>,​ RV extends org.djunits.value.vdouble.vector.base.AbstractDoubleVectorRelWithAbs<AU,​ A,​ AV,​ RU,​ R,​ RV>>
    void
    testAsAll()
    Test all "asXX" methods.
    void testDimensionLess()
    Test the methods that are only implemented in DimensionLess vectors.
    static void verifyDimensionLessVector​(double[] reference, org.djunits.value.vdouble.function.DoubleFunction operation, org.djunits.value.vdouble.vector.DimensionlessVector got)
    Verify the contents of a FloatDimensionlessVector.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • testAsAll

      public <AU extends org.djunits.unit.AbsoluteLinearUnit<AU,​ RU>,​ A extends org.djunits.value.vdouble.scalar.base.AbstractDoubleScalarAbs<AU,​ A,​ RU,​ R>,​ AV extends org.djunits.value.vdouble.vector.base.AbstractDoubleVectorAbs<AU,​ A,​ AV,​ RU,​ R,​ RV>,​ RU extends org.djunits.unit.Unit<RU>,​ R extends org.djunits.value.vdouble.scalar.base.AbstractDoubleScalarRelWithAbs<AU,​ A,​ RU,​ R>,​ RV extends org.djunits.value.vdouble.vector.base.AbstractDoubleVectorRelWithAbs<AU,​ A,​ AV,​ RU,​ R,​ RV>> void testAsAll() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, ClassNotFoundException, org.djunits.unit.util.UnitException
      Test all "asXX" methods.
      Type Parameters:
      AU - the absolute unit type
      A - the absolute scalar type
      AV - the absolute vector type
      RU - the relative unit type
      R - the relative scalar type
      RV - the relative vector type
      Throws:
      SecurityException - on error
      NoSuchMethodException - on error
      InvocationTargetException - on error
      IllegalArgumentException - on error
      IllegalAccessException - on error
      ClassNotFoundException - on error
      org.djunits.unit.util.UnitException - on error
    • testDimensionLess

      public void testDimensionLess()
      Test the methods that are only implemented in DimensionLess vectors.
    • verifyDimensionLessVector

      public static void verifyDimensionLessVector​(double[] reference, org.djunits.value.vdouble.function.DoubleFunction operation, org.djunits.value.vdouble.vector.DimensionlessVector got)
      Verify the contents of a FloatDimensionlessVector.
      Parameters:
      reference - double[]; the values on which the operation needs to be applied to get the values that must be verified
      operation - FloatFunction; the operation that converts the reference values to the values that must be verified
      got - FloatDimensionlessVector; the values that must be verified