famix generator for .NET assemblies
by Thomas Haug
Hi everybody,
I have implemented a Famix-Generator which analyses .NET assemblies and produces mse files for CodeCity as well as the MOOSE platform.
If you want to give it a try, you can download it from my site (german, I am sorry - I will change that in near future):
http://www.sharpmetrics.net/index.php/famix-generator
The generator creates famix artifacts for namespaces, types (classes, interfaces, enums und structs), methods, methods calls and local variables. the tool is not complete (missing features, bugs?), I will enhance it during the next weeks or months.. ;-)
(BTW you need a .NET 4.0 installed on your machine. It does not run on the Mono plattform, right now.)
Cheers
Thomas
9 years, 4 months
small case study
by Alexandre Bergel
Hi!
Just to share a small use I had of Moose.
I am working on Roassal2. Roassal2 will be largely compatible with Roassal1. I am trying to make GraphET use Roassal2, and I need to know where Roassal is actually used by GraphET. Moose is ideal for this.
I opened the moose panel, imported GraphET and type the following script in a Roassal easel opened on a class group:
-=-=-=-=-=-=-=-=-=-=-=-=
view shape rectangle
if: #isStub fillColor: Color veryVeryLightGray;
if: #isSUnitTestCase borderColor: Color green.
view nodes: classGroup forEach: [ :cls |
view shape rectangle
if: [ :m | (m queryAllOutgoingAssociations atTypeScope select: [:c | c name beginsWith: 'RO' ] ) notEmpty ] fillColor: Color red;
if: [ :m | (m queryAllOutgoingAssociations atTypeScope select: [:c | c name beginsWith: 'RT' ] ) notEmpty ] fillColor: Color blue.
view interaction
popupText: [ :m | ((m queryAllOutgoingAssociations atTypeScope select: [:c | c name beginsWith: 'RO' ]) inject: '' into: [ :s :e | s, ' ', e name ]), String cr, '-----', String cr, m sourceText ];
action: #inspect;
on: ROMouseClick do: [:event | event model browseSource ].
view nodes: cls methods.
view gridLayout.
].
view edgesFrom: #superclass.
view treeLayout
-=-=-=-=-=-=-=-=-=-=-=-=
It gives a pictures as the following one:
large squares are classes
link are inheritance: superclass is above its subclasses
Inner squares are methods
red square are methods of GraphET that reference to Roassal1 classes
blue square are methods that have been migrated to Roassal2.
Gray classes are stub classes
A popup window details what is the reference. E.g.,
This is a popup I get by having the mouse above a method initialize. The reference to Roassal is because of the use of “ROElement”. I can click on the class to open a code browser on it. I can then modify the reference of ROElement to RTElement...
Happy new year!
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
9 years, 4 months
redesigning the moose webpage
by Tudor Girba
Hi,
I would like to reshape the webpage of Moose to make more obvious what it
is and offer first steps for newcomers to look into it. We now have some
good material around that we can consolidate once we have a new webpage
structure.
But, for this, I need a bit of help. Specifically, first I need to migrate
the existing webpage to Pier3/Pharo 3.0. Can anyone help here?
Cheers,
Doru
--
www.tudorgirba.com
"Every thing has its own flow"
9 years, 4 months
working as a team
by Tudor Girba
Hi,
I wish for the new year to find us working as a team in which
... we take the time to make explicit what works and what does not.
... we build common solutions.
... we strive towards a common vision.
I think there is a great deal of potential in Moose, but we can only
uncover it together.
Cheers,
Doru
--
www.tudorgirba.com
"Every thing has its own flow"
9 years, 5 months
Scatterplot with Graph-ET
by Serge Stinckwich
Hi all,
I try to use scatterplot with Graph-ET and nothing happens.
Apparently generateIn method for GETScatterPlot is empty.
Script I use:
====================================
|diag|
diag := GETDiagramBuilder new.
(diag scatterplot)
x: [ :x | x ];
y: [ :y | y ];
models: (1 to:100).
diag open.
====================================
Cheers,
--
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/
9 years, 5 months