Data-Items and Data Types Used in Condition Expressions
The following operators are applicable to strings, arrays and bit-array data-items, and to user-defined types that are defined as string, array or bit-array. The result is a constant integer.
Length of array, bit-array, or stringA
(data-item or user-defined type) Left index of array or bit-arrayA
(data-item or user-defined type) Right index of array or bit-arrayA
(data-item or user-defined type)The following operator is applicable to queues:
The following operators are applicable to integers and reals, and to user-defined types that are defined as integer or real.
Data-Item ExpressionThe
tmin
andtmax
operators accept one parameter, the name of the data-item or data-type, and return the defined minimum or maximum value. When the value is not defined, the operators returnOUT_OF_RANGE
.Note the following limitations for
tmin
andtmax
:
● You cannot use these operators on generic activity-chart or generic statechart formal parameters, or within subroutine implementations (action language, truth table, or procedural statechart).
● The analysis tools do not support dynamic evaluation of expressions with the these operators. Specifically, the following functions do not support the operators:
● Because the operators are not considered as “usage” of data, a data-item used only inside thetmin
andtmax
operators will not be included in the simulation scope.