public interface FixedScalarValue extends ScalarValue, ComparableDiscreteModelType<ScalarValue>
| Modifier and Type | Method and Description |
|---|---|
default DiscreteValue<Integer> |
compareDiscreteValue(ScalarValue value)
Compares the discretely time varying internal state of this model against the provided value.
|
double |
getValue()
This is a helper method to get the underlying value of the scalar.
|
default double |
getValueAt(MoxieTime time)
Gets the current value of the
ScalarValue at the requested time. |
default BooleanValue |
isEqualTo(ScalarValue rhs)
Returns a
BooleanValue that is true when the value of this instance is strictly equal to the value of the provided ScalarValue. |
default BooleanValue |
isGreaterThan(ScalarValue rhs)
Returns a
BooleanValue that is true when the value of this instance is strictly greater than the value of the provided ScalarValue. |
default BooleanValue |
isLessThan(ScalarValue rhs)
Returns a
BooleanValue that is true when the value of this instance is strictly less than the value of the provided ScalarValue. |
default ScalarValue |
minus(ScalarValue rhs)
Subtracts the value of the provided
ScalarValue from this one to produce a new instance representing the difference of the two. |
default ScalarValue |
negate()
Produces a new value that is the negative of this one.
|
default ScalarValue |
plus(ScalarValue rhs)
Adds the value of the provided
ScalarValue to this one to produce a new instance representing the sum of both. |
default ScalarValue |
times(ScalarValue rhs)
Multiplies the value of the provided
ScalarValue to this one to produce a new instance representing the product of the two. |
Property<Double> |
valueProperty()
Returns the value associated with this
ScalarValue. |
constant, isEqualTo, isGreaterThan, isLessThan, minus, plus, times, within, withindouble getValue()
Property<Double> valueProperty()
ScalarValue.ScalarValue.default DiscreteValue<Integer> compareDiscreteValue(ScalarValue value)
ComparableDiscreteModelTypeDiscreteValue type
representing the aggregate comparisons of all of the discrete states represented by this object as they compare against the provided value. The
data contained in the DiscreteValue must follow the same behavior as Comparable.
A negative integer indicates that a particular discrete value is less than the provided value.
A positive integer indicates that a particular discrete value is greater than the provided value.
Zero indicates that the values are identical.
compareDiscreteValue in interface ComparableDiscreteModelType<ScalarValue>value - The value to compare against.default BooleanValue isLessThan(ScalarValue rhs)
ScalarValueBooleanValue that is true when the value of this instance is strictly less than the value of the provided ScalarValue.isLessThan in interface ScalarValuerhs - The value that represents the scalar to test against.BooleanValue representing whether the current scalar value is less than the value provided.default BooleanValue isGreaterThan(ScalarValue rhs)
ScalarValueBooleanValue that is true when the value of this instance is strictly greater than the value of the provided ScalarValue.isGreaterThan in interface ScalarValuerhs - The value that represents the scalar to test against.BooleanValue representing whether the current scalar value is greater than the value provided.default BooleanValue isEqualTo(ScalarValue rhs)
ScalarValueBooleanValue that is true when the value of this instance is strictly equal to the value of the provided ScalarValue.isEqualTo in interface ScalarValuerhs - The value that represents the scalar to test against.BooleanValue representing whether the current scalar value is equal to the value provided.default ScalarValue negate()
ScalarValuetimes(-1.0) on this instance.negate in interface ScalarValueScalarValue representing the negative of the current value.default ScalarValue plus(ScalarValue rhs)
ScalarValueScalarValue to this one to produce a new instance representing the sum of both.plus in interface ScalarValuerhs - The value to add to the current ScalarValue.ScalarValue representing the sum of the two values.default ScalarValue minus(ScalarValue rhs)
ScalarValueScalarValue from this one to produce a new instance representing the difference of the two.minus in interface ScalarValuerhs - The value to subtract from the current ScalarValue.ScalarValue representing the differences of the two values.default ScalarValue times(ScalarValue rhs)
ScalarValueScalarValue to this one to produce a new instance representing the product of the two.times in interface ScalarValuerhs - The value to multiply to the current ScalarValue.ScalarValue representing the product of the two values.default double getValueAt(MoxieTime time)
ScalarValueScalarValue at the requested time.getValueAt in interface ScalarValuetime - The time that you are interested in obtaining the value at.ScalarValue at the given time.