flatCollect: reintroduced
by Stéphane Ducasse
Hi all
I reintroduced flatCollect: fixing also collectUnion:
I deprecated collectUnion: and replaced all the occurence of
collectUnion: in mooseDevelopment and friends
let me know if this is ok for you.
Stef
14 years, 11 months
About a model of changes on top of famix
by Stéphane Ducasse
let us imagine that we would like to see what would happen if we would
move
a class A from package P1 to P2, without changing the source code and
may be been able to undo the change
Solution A:
We could copy the complete model, modify it. (and keep somewhere an
history)
Solution B:
We could change the model and keep an history of the changes (move A
P1 P2).
Solution C: I could cache in each model a timestamp similar to what
frederic pluquet did
and know at which version modification we are. then for a given
changes I could get the model by getting entity at the same level or
lower.
Any thoughts on that.
I have the impression that solution B is easier.
stef
15 years, 2 months
Symbols not define
by Menanteau Jannick
Hello,
I'm beginning with moose and I've a problem with Mondrian
I want to generate visualization with this code :
view newShape rectangle; height: #numberOfMethods; width:
#numberOfAttributes; linearFillColor: #numberOfLinesOfCode within:
classes; withBorder.
view nodes: classes.
view edges: classes
from: [:each | each superclass]
to: [:each | each].
view treeLayout.
I think it's correct because I've found it on http://moose.unibe.ch/tools/mondrian/tour?_s=LrcZtOGEBQIygSJg&_k=RnnrLpmU...
But I've problem with symbols (like #numberOfMethods) : they are not
defined.
Maybe there is a special manipulation to do ?
I've done this :
- open Moose
- "Open in Mondrian Easel"
- inset this code in the window
- "generate view"
Thanks to help me
15 years, 2 months
Re: Tests Mondrian
by Alexandre Bergel
Hi Jannick!
Glad to hear that you jump on the boat!
Best would be to ask the moose mailing list.
You may want to register the mailing list for this. I do not have the
answer right now.
Cheers,
Alexandre
On 27 Jun 2008, at 14:51, jannick.menanteau.gmail wrote:
> J'essai de générer des visualisations dans Mondrian:
>
> view newShape rectangle; height: #numberOfMethods; width:
> #numberOfAttributes; linearFillColor: #numberOfLinesOfCode within:
> classes; withBorder.
> view nodes: classes.
> view edges: classes
> from: [:each | each superclass]
> to: [:each | each].
> view treeLayout.
>
> C'est un code trouvé sur http://moose.unibe.ch/tools/mondrian/tour?_s=LrcZtOGEBQIygSJg&_k=RnnrLpmU...
>
> Le problème est que les symboles (#numberOfMethods par exemple) ne
> sont pas définis...
> Y a-t-il une manipulation spécifique à faire ?
>
> Voici comment j'ai procédé :
> - ouverture de Moose
> - "open in Mondrian Easel"
> - insertion du code dans la fenêtre au centre bas
> - "generate view"
>
> Merci
>
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
15 years, 2 months
google code
by Orla Greevy
Hi,
did someone set up the google code for Moose? If so can you send the link...
Orla
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
15 years, 2 months
group?
by stéphane ducasse
Hi doru
in Squeak I started to get some green tests :)
Now if you load and try to run testClassSides
you get an error because allClasses does not return a model but a
collection.
classSide
^self isClassSide
ifFalse:
[self mooseModel allClasses
entityNamed: (self mooseName , '_class') asSymbol]
ifTrue: [self]
can you have a look?
Stef
15 years, 3 months
Layering in moose
by stéphane ducasse
Hi Doru
There are several methods in MooseFamixModel that depend on
MooseFamixExtensions.
I suggest to move them there. Do we agree?
- la méthode hasSubclasses dans FAMIXClass
(Root::Smalltalk::SCG::Moose::FAMIXClass.hasSubclasses()-
>numberOfChildren())
- la méthode hasSuperclasses dans FAMIXClass
(Root::Smalltalk::SCG::Moose::FAMIXClass.hasSuperclasses()-
>numberOfParents()
)
- la méthode hasEmptyBody dans FAMIXAbstractBehaviouralEntity (2
invocations:
Root
::Smalltalk::SCG::Moose::FAMIXAbstractBehaviouralEntity.hasEmptyBody()-
>numberOfAccesses()
et
Root
::Smalltalk::SCG::Moose::FAMIXAbstractBehaviouralEntity.hasEmptyBody()-
>numberOfOutgoingInvocations()
)
Then in MooseUI
mooseKill <menuItem: 'Kill' nameKey: nil menu: #(#menuBar #tools
#mooseUtilities) position: 1> SCG.Moose.MooseModel kill
depends on MooeUIExtensions
So may be we should move it there.
Stef
15 years, 3 months
what is the name of a class in Squeak
by stéphane ducasse
hi
I have a question. What is the name of the class in Squeak when there
is no (or just Smalltalk as namespace?
| mseClass |
mseClass := self model entityNamed: #'Node'.
self assert: mseClass name = #Node.
self assert: mseClass mooseName
= (FAMIX2NameResolver
uniqueNameForClassNamed: Node name
scope: (FAMIX2NameResolver moosify: Node environment
absoluteName)).
I imagined
#'::Node'
Sytef
15 years, 3 months