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

Sets the value of the given RangedInteger More...

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

Public Attributes

RangedIntegerVariable rangedObject
 This is the variable which refers to the RangedInteger. More...
 
NumericTerm value
 Represents the value of the RangedInteger. The value can be either an Integer or a Float. Float values shall be truncated. 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 RangedInteger

SetRangedIntegerValue sets the value of the given RangedInteger.

Syntax
Range.SetRangedIntegerValue(RangedIntegerVariable rangedObject, NumericTerm value);
RangedIntegerVariable rangedObject
This is the variable which refers to the RangedInteger.
Definition: Range.cs:767
NumericTerm value
Represents the value of the RangedInteger. The value can be either an Integer or a Float....
Definition: Range.cs:777
Examples
// Local Declarations
Range.IntegerInterval IntegerInterval1;
List<Range.IntegerInterval> ListInterval1;
Range.RangedInteger RangedInteger1;
Integer Value1;
// Flow
IntegerInterval1 = Range.CreateIntegerInterval(5, 100, @IntervalSemantic:SUCCESS, "Label1");
ListAppendItems(ListInterval1, {IntegerInterval1});
RangedInteger1 = Range.CreateRangedInteger(20, ListInterval1);
Value1 = Range.GetRangedIntegerValue(RangedInteger1);
Range.SetRangedIntegerValue(RangedInteger1, 40.5);
Value1 = Range.GetRangedIntegerValue(RangedInteger1);

Member Data Documentation

◆ rangedObject

RangedIntegerVariable OpenTestSystem.Otx.Extensions.Range.Actions.SetRangedIntegerValue.rangedObject

This is the variable which refers to the RangedInteger.

◆ value

NumericTerm OpenTestSystem.Otx.Extensions.Range.Actions.SetRangedIntegerValue.value

Represents the value of the RangedInteger. The value can be either an Integer or a Float. Float values shall be truncated.