modelVariable

System global variable

Extends from Object (Data element object).

Information

This element is implemented as an Object element with type=0

The functions implemented to manage the variables are:

  • get(variable, row, col)
    Returns the value in the position [row,col] of the variable.
  • set(variable, value, row, col)
    Sets the value in the position [row,col] for that variable.
The first input parameter of both functions corresponds to the value of the P parameter of the object (i.e. variable.P).

Parameters

TypeNameDefaultDescription
IntegerNumber (from Object)1Number of the object
Integerrows (from Object)1size of the attribute in rows
Integercols (from Object)1size of the attribute in columns
RealInitialValue (from Object)[0]Initial values for the variable
IntegerobjType (from Object)0Object Type (0 == variable, 1 == attribute)
IntegerP (from Object)Objects.ObjCreate(rows, cols, foo = Number)pointer to actual matrix of values