U
- Unit; the unit of this MutableFloatScalarpublic abstract class MutableFloatScalar<U extends Unit<U>> extends FloatScalar<U> implements FloatMathFunctions<FloatScalar<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 |
MutableFloatScalar.Abs<U extends Unit<U>> |
static class |
MutableFloatScalar.Rel<U extends Unit<U>> |
Modifier | Constructor and Description |
---|---|
protected |
MutableFloatScalar(U unit)
Construct a new MutableFloatScalar.
|
Modifier and Type | Method and Description |
---|---|
protected MutableFloatScalar<U> |
decrementBy(FloatScalar<U> decrement)
Decrement the value in this MutableFloatScalar by the value in a FloatScalar.
|
protected MutableFloatScalar<U> |
decrementByImpl(FloatScalar.Rel<U> rel)
Decrement the value of this Relative FloatScalar from the value of this MutableFloatScalar.
|
MutableFloatScalar<U> |
divide(float constant)
Scale the value(s) by the inverse of a factor; i.e.
|
abstract FloatScalar<U> |
immutable()
Make (immutable) FloatScalar equivalent for any type of MutableFloatScalar.
|
protected MutableFloatScalar<U> |
incrementBy(FloatScalar<U> increment)
Increment the value in this MutableFloatScalar by the value in a FloatScalar.
|
protected MutableFloatScalar<U> |
incrementByImpl(FloatScalar.Rel<U> rel)
Increment the value in this MutableFloatScalar by the value in a Relative FloatScalar.
|
MutableFloatScalar<U> |
multiply(float 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 MutableFloatScalar(U unit)
unit
- U; the unit of the new MutableFloatScalarpublic abstract FloatScalar<U> immutable()
public final MutableFloatScalar<U> multiply(float constant)
multiply
in interface FloatMathFunctions<FloatScalar<U extends Unit<U>>>
constant
- float; the multiplierpublic final MutableFloatScalar<U> divide(float constant)
divide
in interface FloatMathFunctions<FloatScalar<U extends Unit<U>>>
constant
- float; the divisorprotected final MutableFloatScalar<U> incrementBy(FloatScalar<U> increment)
increment
- FloatScalar<U>; the amount by which to increment the value in this MutableFloatScalarprotected final MutableFloatScalar<U> decrementBy(FloatScalar<U> decrement)
decrement
- FloatScalar<U>; the amount by which to decrement the value in this MutableFloatScalarprotected final MutableFloatScalar<U> incrementByImpl(FloatScalar.Rel<U> rel)
rel
- FloatScalar.Rel<U>; the Relative FloatScalarprotected final MutableFloatScalar<U> decrementByImpl(FloatScalar.Rel<U> rel)
rel
- FloatScalar.Rel<U>; the Relative FloatScalarCopyright © 2014–2015 Delft University of Technology. All rights reserved.