OTX Reference  
OpenTestSystem.Otx.Extensions.Range.Actions.SetRangedQuantityValue Class Reference

Sets the value of the given RangedQuantity More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.Range.Actions.SetRangedQuantityValue:
Inheritance graph

Public Attributes

RangedQuantityVariable rangedObject
 This is the variable which refers to the RangedQuantity. More...
 
QuantityTerm value
 Represents the value of the RangedQuantity. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Cardinality [0..1]
Validity of ActionRealisation. More...
 

Detailed Description

Sets the value of the given RangedQuantity

SetRangedQuantityValue sets the value of the given RangedQuantity.

Exceptions
Quantities.Exceptions.InvalidConversionExceptionIf the physical dimension of the value does not match the physical dimensions inside the RangedQuantity interval limits.


Syntax
Range.SetRangedQuantityValue(RangedQuantityVariable rangedObject, QuantityTerm value);
RangedQuantityVariable rangedObject
This is the variable which refers to the RangedQuantity.
Definition: Range.cs:686
QuantityTerm value
Represents the value of the RangedQuantity.
Definition: Range.cs:696
Examples
// Local Declarations
Range.QuantityInterval QuantityInterval1;
List<Range.QuantityInterval> ListInterval1;
Range.RangedQuantity RangedQuantity1;
Quantities.Quantity Value1;
// Flow
QuantityInterval1 = Range.CreateQuantityInterval(5.0 [@Unit, "km"], 100.0 [@Unit, "km"], @IntervalSemantic:SUCCESS, "Label1");
ListAppendItems(ListInterval1, {QuantityInterval1});
RangedQuantity1 = Range.CreateRangedQuantity(20.0 [@Unit, "km"], ListInterval1);
Value1 = Range.GetRangedQuantityValue(RangedQuantity1);
Range.SetRangedQuantityValue(RangedQuantity1, 50.5 [@Unit, "km"]);
Value1 = Range.GetRangedQuantityValue(RangedQuantity1);

Member Data Documentation

◆ rangedObject

RangedQuantityVariable OpenTestSystem.Otx.Extensions.Range.Actions.SetRangedQuantityValue.rangedObject

This is the variable which refers to the RangedQuantity.

◆ value

QuantityTerm OpenTestSystem.Otx.Extensions.Range.Actions.SetRangedQuantityValue.value

Represents the value of the RangedQuantity.