Difference between revisions of "Extensions.Quantities.Multiplication"
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
Quantities.Quantity Quantity1; | Quantities.Quantity Quantity1; | ||
− | Quantity1 = 1 [@Unit, "ODX_RS_UNIT_LIB.odx", "km"] * | + | Quantity1 = 1 [@Unit, "ODX_RS_UNIT_LIB.odx", "km"] * 500 [@Unit, "ODX_RS_UNIT_LIB.odx", "m"]; |
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 10:01, 10 February 2015
Contents
Classification
Name | Multiplication |
Short Description | Multiplication of all numerical quantities |
Class | Operations |
Extension | OTX Quantities extension |
Group | Overloading semantics |
Exceptions | InvalidConversionException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
QuantityTerm = QuantityTerm1 * QuantityTerm2 * ...;
Description
This is a term wwhich returns as a result of the product of all numerical quantities (NumericQuantity) in accordance with their units.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Quantity | Product of two or more numeric quantity (NumericQuantity) |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
QuantityTerm1 | Quantity | Term | - | [1] | NumericQuantity operand, which should be multiplied |
QuantityTerm2 | Quantity | Term | - | [1] | NumericQuantity operand, which should be multiplied |
OTL Examples
Quantities.Quantity Quantity1;
Quantity1 = 1 [@Unit, "ODX_RS_UNIT_LIB.odx", "km"] * 500 [@Unit, "ODX_RS_UNIT_LIB.odx", "m"];