modelAttribute

Entity attribute

Extends from Object (Data element object).

Information

This element is implemented as an Object element with type=1.

The functions implemented to manage the attributes are:

  • get(entity, attrnum, row, col)
    Returns the value in the position [row,col] of the attribute with attrnum, associated with the entity.
  • set(entity, attrnum, value, rows, cols, row, col)
    Sets or creates the attribute with attrnum associated to the entity. The attribute is created with size rows x cols, and the value is assigned to the position [row,col].

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