Package org.djunits.demo.website
Class Jerk
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Jerk>
,org.djunits.value.base.Scalar<JerkUnit,Jerk>
,org.djunits.value.base.Scalar.Rel<JerkUnit,Jerk>
,org.djunits.value.function.ValueFunctions<JerkUnit,Jerk>
,org.djunits.value.Relative<JerkUnit,Jerk>
,org.djunits.value.Value<JerkUnit,Jerk>
,org.djunits.value.vdouble.scalar.base.DoubleScalarInterface<JerkUnit,Jerk>
,org.djunits.value.vdouble.scalar.base.DoubleScalarInterface.Rel<JerkUnit,Jerk>
public class Jerk extends org.djunits.value.vdouble.scalar.base.AbstractDoubleScalarRel<JerkUnit,Jerk>
Copyright (c) 2013-2019 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, Wouter Schakel
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.djunits.value.vdouble.scalar.base.DoubleScalarInterface
org.djunits.value.vdouble.scalar.base.DoubleScalarInterface.Abs<AU extends org.djunits.unit.AbsoluteLinearUnit<AU,RU>,A extends org.djunits.value.vdouble.scalar.base.DoubleScalarInterface.Abs<AU,A,RU,R>,RU extends org.djunits.unit.Unit<RU>,R extends org.djunits.value.vdouble.scalar.base.DoubleScalarInterface.RelWithAbs<AU,A,RU,R>>, org.djunits.value.vdouble.scalar.base.DoubleScalarInterface.Rel<U extends org.djunits.unit.Unit<U>,R extends org.djunits.value.vdouble.scalar.base.DoubleScalarInterface.Rel<U,R>>, org.djunits.value.vdouble.scalar.base.DoubleScalarInterface.RelWithAbs<AU extends org.djunits.unit.AbsoluteLinearUnit<AU,RU>,A extends org.djunits.value.vdouble.scalar.base.DoubleScalarInterface.Abs<AU,A,RU,R>,RU extends org.djunits.unit.Unit<RU>,R extends org.djunits.value.vdouble.scalar.base.DoubleScalarInterface.RelWithAbs<AU,A,RU,R>>
Nested classes/interfaces inherited from interface org.djunits.value.base.Scalar
org.djunits.value.base.Scalar.Abs<AU extends org.djunits.unit.AbsoluteLinearUnit<AU,RU>,A extends org.djunits.value.base.Scalar.Abs<AU,A,RU,R>,RU extends org.djunits.unit.Unit<RU>,R extends org.djunits.value.base.Scalar.RelWithAbs<AU,A,RU,R>>, org.djunits.value.base.Scalar.Rel<U extends org.djunits.unit.Unit<U>,R extends org.djunits.value.base.Scalar.Rel<U,R>>, org.djunits.value.base.Scalar.RelWithAbs<AU extends org.djunits.unit.AbsoluteLinearUnit<AU,RU>,A extends org.djunits.value.base.Scalar.Abs<AU,A,RU,R>,RU extends org.djunits.unit.Unit<RU>,R extends org.djunits.value.base.Scalar.RelWithAbs<AU,A,RU,R>>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description org.djunits.value.vdouble.scalar.Dimensionless
divide(Jerk v)
Calculate the division of Jerk and Jerk, which results in a Dimensionless scalar.Jerk
instantiateRel(double value, JerkUnit unit)
static Jerk
instantiateSI(double value)
Construct Jerk scalar.static Jerk
interpolate(Jerk zero, Jerk one, double ratio)
Interpolate between two values.static Jerk
max(Jerk r1, Jerk r2)
Return the maximum value of two relative scalars.static Jerk
max(Jerk r1, Jerk r2, Jerk... rn)
Return the maximum value of more than two relative scalars.static Jerk
min(Jerk r1, Jerk r2)
Return the minimum value of two relative scalars.static Jerk
min(Jerk r1, Jerk r2, Jerk... rn)
Return the minimum value of more than two relative scalars.static Jerk
of(double value, String unitString)
Returns a Jerk based on a value and the textual representation of the unit.org.djunits.value.vdouble.scalar.Frequency
times(org.djunits.value.vdouble.scalar.Acceleration v)
Calculate the division of Jerk and Acceleration, which results in a Frequency scalar.org.djunits.value.vdouble.scalar.Acceleration
times(org.djunits.value.vdouble.scalar.Duration v)
Calculate the multiplication of Jerk and Duration, which results in an Acceleration scalar.static Jerk
valueOf(String text)
Returns a Jerk representation of a textual representation of a value with a unit.Methods inherited from class org.djunits.value.vdouble.scalar.base.AbstractDoubleScalarRel
abs, ceil, divide, divide, divide, floor, minus, neg, plus, reciprocal, rint, times, times, times
Methods inherited from class org.djunits.value.vdouble.scalar.base.AbstractDoubleScalar
clone, compareTo, doubleValue, eq, eq0, equals, floatValue, ge, ge0, getInUnit, getInUnit, getSI, gt, gt0, hashCode, intValue, le, le0, longValue, lt, lt0, ne, ne0, toString, toString, toString, toString
Methods inherited from class org.djunits.value.AbstractScalar
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.vdouble.scalar.base.DoubleScalarInterface
getInUnit, getInUnit, getSI
-
Constructor Details
-
Method Details
-
instantiateRel
-
instantiateSI
Construct Jerk scalar.- Parameters:
value
- double; the double value in SI units- Returns:
- Jerk; the new scalar with the SI value
-
interpolate
Interpolate between two values.- Parameters:
zero
- Jerk; the low valueone
- Jerk; the high valueratio
- double; the ratio between 0 and 1, inclusive- Returns:
- Jerk; a Scalar at the ratio between
-
max
Return the maximum value of two relative scalars.- Parameters:
r1
- Jerk; the first scalarr2
- Jerk; the second scalar- Returns:
- Jerk; the maximum value of two relative scalars
-
max
Return the maximum value of more than two relative scalars.- Parameters:
r1
- Jerk; the first scalarr2
- Jerk; the second scalarrn
- Jerk...; the other scalars- Returns:
- Jerk; the maximum value of more than two relative scalars
-
min
Return the minimum value of two relative scalars.- Parameters:
r1
- Jerk; the first scalarr2
- Jerk; the second scalar- Returns:
- Jerk; the minimum value of two relative scalars
-
min
Return the minimum value of more than two relative scalars.- Parameters:
r1
- Jerk; the first scalarr2
- Jerk; the second scalarrn
- Jerk...; the other scalars- Returns:
- Jerk; the minimum value of more than two relative scalars
-
valueOf
Returns a Jerk representation of a textual representation of a value with a unit. The String representation that can be parsed is the double value in the unit, followed by the official abbreviation of the unit. Spaces are allowed, but not required, between the value and the unit.- Parameters:
text
- String; the textual representation to parse into a Jerk- Returns:
- Jerk; the Scalar representation of the value in its unit
- Throws:
IllegalArgumentException
- when the text cannot be parsedNullPointerException
- when the text argument is null
-
of
Returns a Jerk based on a value and the textual representation of the unit.- Parameters:
value
- double; the value to useunitString
- String; the textual representation of the unit- Returns:
- Jerk; the Scalar representation of the value in its unit
- Throws:
IllegalArgumentException
- when the unit cannot be parsed or is incorrectNullPointerException
- when the unitString argument is null
-
divide
Calculate the division of Jerk and Jerk, which results in a Dimensionless scalar.- Parameters:
v
- Jerk scalar- Returns:
- Dimensionless scalar as a division of Jerk and Jerk
-
times
public final org.djunits.value.vdouble.scalar.Acceleration times(org.djunits.value.vdouble.scalar.Duration v)Calculate the multiplication of Jerk and Duration, which results in an Acceleration scalar.- Parameters:
v
- Duration scalar- Returns:
- Acceleration scalar as a multiplication of Jerk and Duration
-
times
public final org.djunits.value.vdouble.scalar.Frequency times(org.djunits.value.vdouble.scalar.Acceleration v)Calculate the division of Jerk and Acceleration, which results in a Frequency scalar.- Parameters:
v
- Acceleration scalar- Returns:
- Frequency scalar as a division of Jerk and Accelration
-