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(a)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."