Difference between revisions of "Extensions.Quantities.Addition"
Jump to navigation
Jump to search
(Created page with "Category:Quantities == Classification == {{ClassificationActivity | Addition | Sum of all numerical quantities | Operations | OTX Quantities extension |...") |
|||
Line 29: | Line 29: | ||
[[Subtraction]] <br/> | [[Subtraction]] <br/> | ||
[[Multiplication]] <br/> | [[Multiplication]] <br/> | ||
− | [[Division | + | [[Division]] |
− |
Revision as of 08:59, 7 August 2014
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 |
Pseudo-Code Syntax
Quantity result = 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 |
Examples
Quantity result = @Quantity:1/"km" + @Quantity:500/"m";
//Returns result = 1500 m