package org.djunits.demo.website; import org.djunits.value.vdouble.vector.base.AbstractDoubleVectorRel; import org.djunits.value.vdouble.vector.data.DoubleVectorData; /** * Double JerkVector, a vector of values with a JerkUnit. *

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

* @author Alexander Verbraeck * @author Peter Knoppers */ public class JerkVector extends AbstractDoubleVectorRel { /** */ private static final long serialVersionUID = 20190905L; /** * Construct an JerkVector from an internal data object. * @param data DoubleVectorData; the internal data object for the vector data * @param displayUnit JerkUnit; the display unit of the vector data */ public JerkVector(final DoubleVectorData data, final JerkUnit displayUnit) { super(data, displayUnit); } /** {@inheritDoc} */ @Override public Class getScalarClass() { return Jerk.class; } /** {@inheritDoc} */ @Override public JerkVector instantiateVector(final DoubleVectorData dvd, final JerkUnit displayUnit) { return new JerkVector(dvd, displayUnit); } /** {@inheritDoc} */ @Override public Jerk instantiateScalarSI(final double valueSI, final JerkUnit displayUnit) { Jerk result = Jerk.instantiateSI(valueSI); result.setDisplayUnit(displayUnit); return result; } }