Hi Doru,
I am working on Orion that enables through actions to express evolution operator on model elements.
These actions depend on the language in which the program to evolve is written (even if the actions are performed at model level). I am trying to generate all the required classes, attributes and methods to adapt Orion to a specific language. This part is relatively simple and systematic and dependent to the instance variables of the Famix classes.
Concerning the actions, currently, I am not generating them. But I think I can do some generations, that would certainly need to be manually adapted by the developer.
When you want to add a Class (in Pharo or Java), you have to:
- create the class,
- specify its container property (since this property is mandatory) and add the added class in the collection of the corresponding container.
- specify its name (if you are in Pharo, since once again this property is mandatory).
All the other things, concerning, instance variables, methods, inheritance… are optional; the lower multiplicity is 0, whereas the container and the name properties have 1 as lower multiplicity.
The idea is then to construct a model conform to the metamodel.
Thanks in advance.
Anne
Le 1 sept. 2013 à 08:06, Tudor Girba a écrit :
Hi Anne,
Fame does not have this support. But, for generation purposes, I think the upper bounds should be pretty much enough: as long as you have * upper bound, you should model it with a collection.
Could you give an example of how the lower bounds would change the generation?
Doru
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev