Hello Doru
I have to be more precise :) The models that I import are not conformed to FAMIX. My models can be conformed to anything.
Let me give you an example: Imagine that I work with a meta model with a class Chicken and a class Egg. Imagine then that I import the instances of Chicken and Egg into Moose.
With Moose, I can inspect may instances, apply the navigations. But, I couldn't apply the Mondrian visualizations as "blueprint complexity", "UML macro" .... because they are no defined in my classes Chicken and Egg. The only views avalaible is "Name of occurrences" but it leads into a bug :(
Therefore, I want to know if it is possible to generate a visualisation for my instances of Chicken and Egg. And apply the same visualization for instances of an other meta model (Flower and Tree for example).
Do you understand what I want?
thank you for you help
sara
Hi Sara,
Mondrian is a generic visualization framework and it is part of Moose Config. Mondrian has a graph model behind, it works at the level of Smalltalk objects and allows you to script your visualization.
For example, if you have a FAMIX model in a variable called mooseModel and you want to show the hierarchy of classes you can do:
view := Mondrian.ViewRenderer new. view nodes: mooseModel allClasses. view edges: mooseModel allInheritanceDefinitions from: #superclass to: #subclass. view treeLayout. view open.
You can find more details here: http://smallwiki.unibe.ch/moose/tools/mondrian/
But, could you elaborate on what you have in mind when you say generic visualizations?
Cheers, Doru
On Jul 2, 2007, at 10:22 AM, sellossa@ensieta.fr wrote:
Hi,
I am still working on an Ecore Importer in Moose and I need some advices for a particular point.
Here is the context: First, I managed to generate code from a meta- model conformed to Ecore. Then I managed to import into Moose instances of this meta-model in generating allmethods in MooseModel.
For the moment, there is no visualisation for the instances imported. That's why I think it could be great if I generated generic visualisations with my code generator.
I had a look on FAMIX entities to see how some visualisations are implemented, but it's still difficult for me to know how I could generate generic visualisations.
What do you think about it?
thank you for your help
sara
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
-- www.iam.unibe.ch/~girba www.iam.unibe.ch/~girba/blog/
"One cannot do more than one can do."