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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | Number (from Object) | 1 | Number of the object |
| Integer | rows (from Object) | 1 | size of the attribute in rows |
| Integer | cols (from Object) | 1 | size of the attribute in columns |
| Real | InitialValue (from Object) | [0] | Initial values for the variable |
| Integer | objType (from Object) | 0 | Object Type (0 == variable, 1 == attribute) |
| Integer | P (from Object) | Objects.ObjCreate(rows, cols, foo = Number) | pointer to actual matrix of values |