U
- Unit; the unit of this MutableDoubleScalarpublic abstract class MutableDoubleScalar<U extends Unit<U>> extends DoubleScalar<U> implements DoubleMathFunctions<DoubleScalar<U>>
This file was generated by the OpenTrafficSim value classes generator, 09 mrt, 2015
Copyright (c) 2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Class and Description |
---|---|
static class |
MutableDoubleScalar.Abs<U extends Unit<U>> |
static class |
MutableDoubleScalar.Rel<U extends Unit<U>> |
Modifier | Constructor and Description |
---|---|
protected |
MutableDoubleScalar(U unit)
Construct a new MutableDoubleScalar.
|
Modifier and Type | Method and Description |
---|---|
protected MutableDoubleScalar<U> |
decrementBy(DoubleScalar<U> decrement)
Decrement the value in this MutableDoubleScalar by the value in a DoubleScalar.
|
protected MutableDoubleScalar<U> |
decrementByImpl(DoubleScalar.Rel<U> rel)
Decrement the value of this Relative DoubleScalar from the value of this MutableDoubleScalar.
|
MutableDoubleScalar<U> |
divide(double constant)
Scale the value(s) by the inverse of a factor; i.e.
|
abstract DoubleScalar<U> |
immutable()
Make (immutable) DoubleScalar equivalent for any type of MutableDoubleScalar.
|
protected MutableDoubleScalar<U> |
incrementBy(DoubleScalar<U> increment)
Increment the value in this MutableDoubleScalar by the value in a DoubleScalar.
|
protected MutableDoubleScalar<U> |
incrementByImpl(DoubleScalar.Rel<U> rel)
Increment the value in this MutableDoubleScalar by the value in a Relative DoubleScalar.
|
MutableDoubleScalar<U> |
multiply(double constant)
Scale the value(s) by a factor.
|
divide, divide, doubleValue, equals, floatValue, getInUnit, getInUnit, getSI, hashCode, initialize, initialize, interpolate, interpolate, intValue, longValue, minus, minus, minus, multiply, multiply, mutable, plus, plus, setValueSI, toString, toString, toString, toString
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative
byteValue, shortValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
protected MutableDoubleScalar(U unit)
unit
- U; the unit of the new MutableDoubleScalarpublic abstract DoubleScalar<U> immutable()
public final MutableDoubleScalar<U> multiply(double constant)
multiply
in interface DoubleMathFunctions<DoubleScalar<U extends Unit<U>>>
constant
- double; the multiplierpublic final MutableDoubleScalar<U> divide(double constant)
divide
in interface DoubleMathFunctions<DoubleScalar<U extends Unit<U>>>
constant
- double; the divisorprotected final MutableDoubleScalar<U> incrementBy(DoubleScalar<U> increment)
increment
- DoubleScalar<U>; the amount by which to increment the value in this MutableDoubleScalarprotected final MutableDoubleScalar<U> decrementBy(DoubleScalar<U> decrement)
decrement
- DoubleScalar<U>; the amount by which to decrement the value in this MutableDoubleScalarprotected final MutableDoubleScalar<U> incrementByImpl(DoubleScalar.Rel<U> rel)
rel
- DoubleScalar.Rel<U>; the Relative DoubleScalarprotected final MutableDoubleScalar<U> decrementByImpl(DoubleScalar.Rel<U> rel)
rel
- DoubleScalar.Rel<U>; the Relative DoubleScalarCopyright © 2014–2015 Delft University of Technology. All rights reserved.