Script of the day!

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Script of the day!

abergel
Already publicized on Facebook and Tweeter. Since there are not many emails these days, here it is:

Script of the day: visualizing dependencies between FAMIX classes and methods. Here is an example with SweetHome3D, a java application
-=-=-=-=-=-=-=-=-=-=-=-=
methods := self flatCollect: ‪#‎methods‬.
b := RTMondrian new.
b shape rectangle withTextAbove.
b nodes: self forEach: [ :cls |
b nodes: cls methods.
b layout grid.
].
b shape line
color: (Color red alpha: 0.2); width: 3.
b edges 
objects: methods;
connectToAll: [ :m | m queryAllOutgoingInvocations atMethodScope ].
b layout circle .
b
-=-=-=-=-=-=-=-=-=-=-=-=
The script has to be executed on 'all model classes', within the moose panel.

Cheers,
Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev