User-defined reusable type of properties and enumerations in "library" models [message #1281771] |
Tue, 01 April 2014 10:27 |
Fabian G. Messages: 60 Registered: May 2010 Location: Christchurch (NZ) |
Member |
|
|
Hi,
I'm wondering if it is possible to define reusable types of properties that could be "instantiated" into model elements. A concrete example, in a first model, I would define a property type with something like:
declare property(Speed,integer)
and use it another model with
So, I would have some kind of dynamic binding from the type of the property as defined in a "declare" statement and its "usage" with the value specified in its instance.
For the definition rule, it's pretty simple, but I'm puzzled on how to define the other one; especially to avoid defining all values as strings.
A somewhat related question would be if there is a way to define enumerations in a similar way, with something like
type myenumeration values { value1, value2, value3 }
and also being able to instantiate it the same way as I did upper for simple types.
Any help, hint or pointers would be much appreciated.
Cheers,
Fabian
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03326 seconds