OTX Reference  
OpenTestSystem.Otx.Core.Declarations.ParameterDeclarations Class Reference

Parameters declarations of signatures and procedures More...

Public Attributes

InOutParameterDeclaration inoutParam
 In- and ouput parameter (Reference) More...
 
InParameterDeclaration inParam
 Input parameter More...
 
OutParameterDeclaration outParam
 Ouput parameter (Result) More...
 

Detailed Description

Parameters declarations of signatures and procedures

The parameter declaration block allows for declaring in-, inout- and out-parameters of signatures and procedures. Parameters are especially important for the ProcedureCall action. The order of parameter declarations is semantically irrelevant. Parameters have a procedure wide scope. ParameterDeclarations allows for declaring an arbitrary number of in-, out- and inout-parameters.

Note
Parameter declaration names must be unique among all local declaration and local parameter declaration names.
Furthermore, Parameter declaration with the same name like a global declaration are be allowed. At this, OTX follows the concept of shadowing: If an identifier is used which is declared both locally and globally in the same OTX document, the local identifier shadows the global identifier. This means that the global identifier is invisible and not useable by any node in the local Procedure. Since this may lead to unwanted situations, identifier shadowing is discouraged. To avoid it, distinct names should be used for local and global declarations. Another solution is making an OTX document import itself; this provides a prefix which can be used for unambiguously referring to global declarations.

Member Data Documentation

◆ inoutParam

InOutParameterDeclaration OpenTestSystem.Otx.Core.Declarations.ParameterDeclarations.inoutParam

In- and ouput parameter (Reference)

◆ inParam

InParameterDeclaration OpenTestSystem.Otx.Core.Declarations.ParameterDeclarations.inParam

Input parameter

◆ outParam

OutParameterDeclaration OpenTestSystem.Otx.Core.Declarations.ParameterDeclarations.outParam

Ouput parameter (Result)