A quantity of the model (with unit, value) such as a Parameter or an Amount
Super classes
rSharp::NetObject -> ospsuite::DotNetWrapper -> ospsuite::ObjectBase -> ospsuite::Entity -> Quantity
Active bindings
valueThe value of the quantity in unit
unitThe base unit in which the quantity value is defined (Read-Only)
displayUnitThe unit in which the quantity value is usually displayed (Read-Only)
dimensionThe dimension in which the quantity is defined (Read-Only)
allUnitsthe list of all supported units (Read-Only)
quantityTypeThe type of the quantity (Read-Only)
formulaAn instance of a
Formulaobject used by this quantity (Read-Only)isTableReturns
TRUEif the formula used by this quantity is a table formula otherwiseFALSEisConstantReturns
TRUEif the formula used by this quantity is a constant formula otherwiseFALSEisFormulaReturns
TRUEif the formula used by this quantity is an explicit formula (e.g an equation) otherwiseFALSEisDistributedReturns
TRUEif the quantity represents a quantity with an underlying distribution otherwiseFALSEformulaStringReturns the equation of the formula for a quantity using an explicit formula (e.g.
isFormula == TRUE) orNULLfor a quantity that does not use an explicit formula.isFixedValueReturns
TRUEif the formula was overridden by a constant value, otherwiseFALSE
Methods
Inherited methods
rSharp::NetObject$.printClass()rSharp::NetObject$.printLine()rSharp::NetObject$call()rSharp::NetObject$get()rSharp::NetObject$getFields()rSharp::NetObject$getMemberSignature()rSharp::NetObject$getMethods()rSharp::NetObject$getProperties()rSharp::NetObject$getStaticFields()rSharp::NetObject$getStaticMethods()rSharp::NetObject$getStaticProperties()rSharp::NetObject$set()
Method print()
Print the object to the console
Method printQuantityValue()
Print the value (in scientific notation with 2 digits when needed) and unit of the quantity
Method getPrintValue()
Return a string for printing the value (in scientific notation with 2 digits when needed) and unit of the quantity
Method hasUnit()
Returns TRUE if the quantity supports the given unit otherwise FALSE.
For the list of supported units, use allUnits