Hi,
Ok. For this purpose, you have to write a Smalltalk program, and then call the vm with
multiple parameters:
- moose.image (the Moose image)
- a Smalltalk script that executes your desired behavior and then quits the image
For example, the desired behavior will be load the model into Moose, perform some
computations, and export the results into a file.
You can get inspiration from AutoMoose:
http://www.themoosebook.org/book/internals/auto-moose
The only problem is that the documentation of AutoMoose mentions the inFusion external
parser, and inFusion has recently changed and the instructions are no longer up to date.
Cheers,
Doru
On 17 Sep 2011, at 08:22, mpescuma wrote:
Hi Tudor.... this is my use case... I need to extract
from moose analysis of
a java project some software metrics... for example for each java class the
number of methods inerithed, the number of messages send, the number of
comments, the number of LOC etc.
My gool is to build a c++ or java program that starting from a java project
path call the moose suite to produce the project analysis and then analyze
the result to produce same table with class metrics. could you tell me how
to get the analysis directly from moose in a format that I can read from my
C ++ or java program? I thought to call moose directly without using the
graphical interface, but directly from my program by reading then the output
... you could give me instructions to do this? I asked the same thing to
Stefan (I found after the forum, so sorry for the duplicate post) ... and in
his response mail...he wrote that I can call or connect to moose in this
way: "You can script moose by passing a script on the command line. You
could also conect via a socket." ... How can I do ? Can you give me an
example ?
Thanks,
Michele
--
View this message in context:
http://moose-dev.97923.n3.nabble.com/moose-data-analysis-exporter-xml-or-ot…
Sent from the moose-dev mailing list archive at
Nabble.com.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Obvious things are difficult to teach."