Difference between revisions of "Extensions.Quantities.Addition"
Jump to navigation
Jump to search
m (Hb moved page Addition to Extensions.Quantities.Addition: #3153) |
|||
Line 1: | Line 1: | ||
− | [[Category:Quantities]] | + | {{DISPLAYTITLE:'''Addition '''}}[[Category:Quantities]] |
== Classification == | == Classification == | ||
− | {{ClassificationActivity | Addition | Sum of all numerical quantities | [[Operations]] | [[Quantities|OTX Quantities extension]] | [[Overloading semantics]] | [[InvalidConversionException]] | - }} | + | {{ClassificationActivity | Addition | Sum of all numerical quantities | [[Operations]] | [[Extensions.Quantities|OTX Quantities extension]] | [[Overloading semantics]] | [[Extensions.Quantities.InvalidConversionException|InvalidConversionException]] | - }} |
== OTL Syntax == | == OTL Syntax == | ||
Line 11: | Line 11: | ||
This is a term which, as a result the sum of all numerical quantities (NumericQuantity returns) with respect to their units. | This is a term which, as a result the sum of all numerical quantities (NumericQuantity returns) with respect to their units. | ||
− | {{TermReturnValue| [[Quantity]] | Sum of all numerical quantities}} | + | {{TermReturnValue| [[Extensions.Quantities.Quantity|Quantity]] | Sum of all numerical quantities}} |
== Properties == | == Properties == | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie1| QuantityTerm1 | [[Quantity]] | [[Term]] | - | [1] | NumericQuantity operand to be summed}} | + | {{TableRowPropertie1| QuantityTerm1 | [[Extensions.Quantities.Quantity|Quantity]] | [[Term]] | - | [1] | NumericQuantity operand to be summed}} |
− | {{TableRowPropertie1| QuantityTerm2 | [[Quantity]] | [[Term]] | - | [1] | NumericQuantity operand to be summed}} | + | {{TableRowPropertie1| QuantityTerm2 | [[Extensions.Quantities.Quantity|Quantity]] | [[Term]] | - | [1] | NumericQuantity operand to be summed}} |
|} | |} | ||
Line 28: | Line 28: | ||
== See also == | == See also == | ||
− | [[Subtraction]] <br/> | + | [[Extensions.Quantities.Subtraction|Subtraction]] <br/> |
− | [[Multiplication]] <br/> | + | [[Extensions.Quantities.Multiplication|Multiplication]] <br/> |
− | [[Division]] | + | [[Extensions.Quantities.Division|Division]] |
Revision as of 03:09, 16 February 2016
Contents
Classification
Name | Addition |
Short Description | Sum 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 which, as a result the sum of all numerical quantities (NumericQuantity returns) with respect to 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 | Sum of all numerical quantities |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
QuantityTerm1 | Quantity | Term | - | [1] | NumericQuantity operand to be summed |
QuantityTerm2 | Quantity | Term | - | [1] | NumericQuantity operand to be summed |
OTL Examples
Quantities.Quantity result;
result = Quantity1 = 1 [@Unit, "ODX_RS_UNIT_LIB.odx", "km"] + 500 [@Unit, "ODX_RS_UNIT_LIB.odx", "m"];