Hi Sara,
Your meta-model of chicken and eggs sounds really nice :). Did you also manage to have relationships between entities?
Currently, we synchronize the meta-descriptions only manually. But, indeed it would be nice if we could recompute the meta-descriptions at compile time or unload time. This is part of the future work, and until then .
I saw that you used System reinitializeDefaultSystem. However, at the moment in the case of Moose you need to call AbstractEntity initializeAllMofDescriptions, or just used from the VW main menu: Tools/Moose Utilities/Reinitialize meta descriptions. This deals with some specific meta-annotations related to Moose.
Cheers, Doru
On Jun 26, 2007, at 12:57 PM, Stéphane Ducasse wrote:
a trick for now is to add a properties in the package that invoke the reinitializeDefaultSystem.
Stef
On 26 juin 07, at 11:19, sellossa@ensieta.fr wrote:
hello
I created my own metamodel to import my own elements in Moose.
Actually, I want to analyse chickens and eggs with Moose. So,I wrote classes Chicken and Egg which both extend MooseElement. Then, I extended MooseModel in my package and I implemented allChickens and allEggs methods in the class MooseModel. Finally, I imported in Moose my instances of Chicken and Egg and I could see them into Moose, so I was very happy :)
Infortunatly, when I decided to unload my model(and consequently the methods allChickens and allEggs in MooseModel), Moose didn't work anymore! To solve it, I ran System>> reinitializeDefaultSystem. Nervertheless, it may be painful and tiresome to reinitialize the system whenever a metamodel is removed.
Is there an other solution to fix this problem? Or is there possible to reinitialize it automatically at Moose launch.
Thank you for your help
Sara
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.iam.unibe.ch/~girba www.iam.unibe.ch/~girba/blog/
"There are no old things, there are only old ways of looking at them."