GetQuantityInfo(string quantityName)
- Purpose:
For each quantity that the UDO creates, it must also describe the quantity
(unit and other details). This method is called for each quantity name
(across all categories) as returned from an earlier call of the
GetQuantityNames
method. - Parameters:
quantityName
(input string) - quantity name.- Returns: Object of type QuantityInfo.
Example:
# Returns an instance of QuantityInfo for the qtyName supplied or None if such a
# quantity could not be found
def GetQuantityInfo(self, qtyName):
# All the quantities we have are simple doubles
# we can leave them unitless
return QuantityInfo(Constants.kDoubleParamStr)