Complex user-defined types
Posted: Thu Jul 29, 2010 9:18 pm
Would be nice to have the type representing models and model instances (clones of models). For instance, to have a variable keeping a reference to model instance or an array of model instance references. Of course, it should be possible to access values of model instances from expression language (ZExpression).
One possibility is to define just one common type representing any model instance independently on model. Another possibility is to have a different type for each model defined.
Is there any way to find instantiated models and access their properties in the current ZGE?
Another improvement would be to support also structures. E.g. in the form of new component "DefineStructure" having "DefineField" (or existing DefineVariable component) as tree elements (sub-components). Variables in the expression language as well as DefineVariable components should use structural types. Accessing of structure fields from expressions: <variable>.<field>.<field>...
One possibility is to define just one common type representing any model instance independently on model. Another possibility is to have a different type for each model defined.
Is there any way to find instantiated models and access their properties in the current ZGE?
Another improvement would be to support also structures. E.g. in the form of new component "DefineStructure" having "DefineField" (or existing DefineVariable component) as tree elements (sub-components). Variables in the expression language as well as DefineVariable components should use structural types. Accessing of structure fields from expressions: <variable>.<field>.<field>...