A quantity of the model (with unit, value) such as a Parameter or an Amount
Super classes
ospsuite.utils::Printable
-> ospsuite::DotNetWrapper
-> ospsuite::ObjectBase
-> ospsuite::Entity
-> Quantity
Active bindings
value
The value of the quantity in unit
unit
The base unit in which the quantity value is defined (Read-Only)
displayUnit
The unit in which the quantity value is usually displayed (Read-Only)
dimension
The dimension in which the quantity is defined (Read-Only)
allUnits
the list of all supported units (Read-Only)
quantityType
The type of the quantity (Read-Only)
formula
An instance of a
Formula
object used by this quantity (Read-Only)isTable
Returns
TRUE
if the formula used by this quantity is a table formula otherwiseFALSE
isConstant
Returns
TRUE
if the formula used by this quantity is a constant formula otherwiseFALSE
isFormula
Returns
TRUE
if the formula used by this quantity is an explicit formula (e.g an equation) otherwiseFALSE
isDistributed
Returns
TRUE
if the quantity represents a quantity with an underlying distribution otherwiseFALSE
formulaString
Returns the equation of the formula for a quantity using an explicit formula (e.g.
isFormula == TRUE
) orNULL
for a quantity that does not use an explicit formula.isFixedValue
Returns
TRUE
if the formula was overridden by a constant value, otherwiseFALSE
Methods
Method print()
Print the object to the console
Method hasUnit()
Returns TRUE
if the quantity supports the given unit otherwise FALSE
.
For the list of supported units, use allUnits