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=RnnrLpm... 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
Hi Jannick,
When you say that you Open in Mondrian Easel what did you have selected?
When you open Mondrian Easel on the left side you see a variable. The name of that variable is used in the script. In particular, the script expects a classes variable to hold a collection (or group) of FAMIXClasses.
Cheers, Doru
On Jun 27, 2008, at 5:38 PM, Menanteau Jannick wrote:
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=RnnrLpm... 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
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"Every successful trip needs a suitable vehicle."
Hi Doru,
At the first image, in this page : http://moose.unibe.ch/tools/mondrian/tour there is this code :
" view nodes: classes. view edgesFrom: #superclass. view treeLayout."
I have the same window, just Object is different (in the left side)
But #superclass is not define. An error "Message not understood : #superclass" appear.
Le 27 juin 08 à 23:35, Tudor Girba a écrit :
Hi Jannick,
When you say that you Open in Mondrian Easel what did you have selected?
When you open Mondrian Easel on the left side you see a variable. The name of that variable is used in the script. In particular, the script expects a classes variable to hold a collection (or group) of FAMIXClasses.
Cheers, Doru
On Jun 27, 2008, at 5:38 PM, Menanteau Jannick wrote:
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=RnnrLpm... 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
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"Every successful trip needs a suitable vehicle."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi Jannick,
You probably have the wrong input. The code you mention works on a collection/group of classes and it does not work on anything else.
Try this: - open Moose - select a model - select All Classes - open in Mondrian Easel (you get in the left side a variable called classGroup) - type in the following code: view nodes: classGroup. view edgesFrom: #superclass. view treeLayout. - generate
This works because the code uses the correct variable and it sends messages that the objects held in that variable can understand.
Cheers, Doru
On Jun 28, 2008, at 8:13 AM, Menanteau Jannick wrote:
Hi Doru,
At the first image, in this page : http://moose.unibe.ch/tools/mondrian/tour there is this code :
" view nodes: classes. view edgesFrom: #superclass. view treeLayout."
I have the same window, just Object is different (in the left side)
But #superclass is not define. An error "Message not understood : #superclass" appear.
Le 27 juin 08 à 23:35, Tudor Girba a écrit :
Hi Jannick,
When you say that you Open in Mondrian Easel what did you have selected?
When you open Mondrian Easel on the left side you see a variable. The name of that variable is used in the script. In particular, the script expects a classes variable to hold a collection (or group) of FAMIXClasses.
Cheers, Doru
On Jun 27, 2008, at 5:38 PM, Menanteau Jannick wrote:
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=RnnrLpm... 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
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"Every successful trip needs a suitable vehicle."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"Obvious things are difficult to teach."
Thanks,
I opened model in Mondrian, not collection of classes.
Now, it work fine :)
Le 28 juin 08 à 09:58, Tudor Girba a écrit :
Hi Jannick,
You probably have the wrong input. The code you mention works on a collection/group of classes and it does not work on anything else.
Try this:
- open Moose
- select a model
- select All Classes
- open in Mondrian Easel (you get in the left side a variable called
classGroup)
- type in the following code:
view nodes: classGroup. view edgesFrom: #superclass. view treeLayout.
- generate
This works because the code uses the correct variable and it sends messages that the objects held in that variable can understand.
Cheers, Doru
On Jun 28, 2008, at 8:13 AM, Menanteau Jannick wrote:
Hi Doru,
At the first image, in this page : http://moose.unibe.ch/tools/mondrian/tour there is this code :
" view nodes: classes. view edgesFrom: #superclass. view treeLayout."
I have the same window, just Object is different (in the left side)
But #superclass is not define. An error "Message not understood : #superclass" appear.
Le 27 juin 08 à 23:35, Tudor Girba a écrit :
Hi Jannick,
When you say that you Open in Mondrian Easel what did you have selected?
When you open Mondrian Easel on the left side you see a variable. The name of that variable is used in the script. In particular, the script expects a classes variable to hold a collection (or group) of FAMIXClasses.
Cheers, Doru
On Jun 27, 2008, at 5:38 PM, Menanteau Jannick wrote:
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=RnnrLpm... 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
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"Every successful trip needs a suitable vehicle."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"Obvious things are difficult to teach."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev