OTX Reference  
OpenTestSystem.Otx.Extensions.Range.Terms.CreateQuantityInterval Class Reference

A constructor for QuantityInterval More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.Range.Terms.CreateQuantityInterval:
Inheritance graph

Public Attributes

StringTerm label
 Optionally represents the label to categorize the interval. More...
 
QuantityTerm lowerLimit
 Optionally represents the lower limit of the interval. If the lower limit is omitted, the lower limit value is -Infinity. More...
 
IntervalSemanticTerm semantic
 Optionally represents the semantics of how values inside the interval are interpreted. If the type is omitted, the semantic is NONE. More...
 
QuantityTerm upperLimit
 Optionally represents the upper limit of the interval. If the upper limit is omitted, the upper limit value is Infinity. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

A constructor for QuantityInterval

CreateQuantityInterval is a QuantityIntervalTerm. It is a constructor for QuantityInterval.

Exceptions
Quantities.Exceptions.InvalidConversionExceptionIf the physical dimension of the lower limit does not match the physical dimensions inside the upper limit.
Checker rules
CheckerRule.Range_Chk002 – Identical physical dimensions

Syntax
QuantityIntervalTerm = Range.CreateQuantityInterval(QuantityTerm lowerLimit, QuantityTerm upperLimit, IntervalSemanticTerm semantic, StringTerm label);
Examples
// Local Declarations
Range.QuantityInterval QuantityInterval1;
// Flow
QuantityInterval1 = Range.CreateQuantityInterval(5.0 [@Unit, "km"], 100.0 [@Unit, "km"], @IntervalSemantic:SUCCESS, "Label1");

Member Data Documentation

◆ label

StringTerm OpenTestSystem.Otx.Extensions.Range.Terms.CreateQuantityInterval.label

Optionally represents the label to categorize the interval.

◆ lowerLimit

QuantityTerm OpenTestSystem.Otx.Extensions.Range.Terms.CreateQuantityInterval.lowerLimit

Optionally represents the lower limit of the interval. If the lower limit is omitted, the lower limit value is -Infinity.

◆ semantic

IntervalSemanticTerm OpenTestSystem.Otx.Extensions.Range.Terms.CreateQuantityInterval.semantic

Optionally represents the semantics of how values inside the interval are interpreted. If the type is omitted, the semantic is NONE.

◆ upperLimit

QuantityTerm OpenTestSystem.Otx.Extensions.Range.Terms.CreateQuantityInterval.upperLimit

Optionally represents the upper limit of the interval. If the upper limit is omitted, the upper limit value is Infinity.

OpenTestSystem.Otx.Extensions.Range.Terms.CreateQuantityInterval.lowerLimit
QuantityTerm lowerLimit
Optionally represents the lower limit of the interval. If the lower limit is omitted,...
Definition: Range.cs:2512
OpenTestSystem.Otx.Extensions.Range.Terms.CreateQuantityInterval.upperLimit
QuantityTerm upperLimit
Optionally represents the upper limit of the interval. If the upper limit is omitted,...
Definition: Range.cs:2522
OpenTestSystem.Otx.Extensions.Range.Terms.CreateQuantityInterval.label
StringTerm label
Optionally represents the label to categorize the interval.
Definition: Range.cs:2542
OpenTestSystem.Otx.Extensions.Range.Terms.CreateQuantityInterval.semantic
IntervalSemanticTerm semantic
Optionally represents the semantics of how values inside the interval are interpreted....
Definition: Range.cs:2532