Argument Class
An argument for a method.
Constructor
Argument
-
options
Parameters:
-
options
Object-
[name]
String optionalThe name of the argument.
-
[dataType]
NodeId optionalThe nodeId of the Data type of the argument.
-
[valueRank= -1]
Int32 optionalWhether the argument is an array type and the rank of the array if it is.
-
[arrayDimensions= null]
UInt32 optionalThe number of dimensions if the argument is an array type and one or more dimensions have a fixed length.
-
[description]
LocalizedText optionalThe description for the argument.
-
Item Index
Properties
- arrayDimensions
- arrayDimensions !~YUIDOC_LINE~!This Attribute specifies the length of each dimension for an array!~YUIDOC_LINE~!value. The Attribute is intended to describe the capability of the!~YUIDOC_LINE~!Variable, not the current size.!~YUIDOC_LINE~!The number of elements shall be equal to the value of the ValueRank!~YUIDOC_LINE~!Attribute. Shall be null if ValueRank ≤0.!~YUIDOC_LINE~!A value of 0 for an individual dimension indicates that the dimension!~YUIDOC_LINE~!has a variable length.!~YUIDOC_LINE~!For example, if a Variable is defined by the following C array:!~YUIDOC_LINE~!Int32 myArray[346];!~YUIDOC_LINE~!then this Variable’s DataType would point to an Int32, the Variable’s!~YUIDOC_LINE~!ValueRank has the value 1 and the one entry having the value 346.
- dataType
- description
- name
- valueRank
Methods
binaryStoreSize
()
Number
Calculate the required size to store this object in a binary stream.
Returns:
decode
-
stream
-
[option]
decode the object from a binary stream
Parameters:
-
stream
BinaryStream -
[option]
Object optional
decode_debug
()
isValid
()
Boolean
verify that all object attributes values are valid according to schema
Returns:
toString
()
String
Returns:
Properties
arrayDimensions
UInt32
The number of dimensions if the argument is an array type and one or more dimensions have a fixed length.
Default: null
arrayDimensions !~YUIDOC_LINE~!This Attribute specifies the length of each dimension for an array!~YUIDOC_LINE~!value. The Attribute is intended to describe the capability of the!~YUIDOC_LINE~!Variable, not the current size.!~YUIDOC_LINE~!The number of elements shall be equal to the value of the ValueRank!~YUIDOC_LINE~!Attribute. Shall be null if ValueRank ≤0.!~YUIDOC_LINE~!A value of 0 for an individual dimension indicates that the dimension!~YUIDOC_LINE~!has a variable length.!~YUIDOC_LINE~!For example, if a Variable is defined by the following C array:!~YUIDOC_LINE~!Int32 myArray[346];!~YUIDOC_LINE~!then this Variable’s DataType would point to an Int32, the Variable’s!~YUIDOC_LINE~!ValueRank has the value 1 and the one entry having the value 346.
UInt32
name
String
The name of the argument.
valueRank
Int32
Whether the argument is an array type and the rank of the array if it is.
Default: -1