[ann] punch builder in Roassal

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

[ann] punch builder in Roassal

abergel
Hi!

We have added a new builder, the punch card.
Consider the following script:

builder := ROPunchcardBuilder new.
builder addModels: (ROObject withAllSubclasses copyFrom: 3 to: 9).
builder addMetric: [ :c | c numberOfMethods + 5] namedAs: 'NOM'.
builder addMetric: [ :c | c numberOfVariables * 5 ] namedAs: 'NOA'.
builder addMetric: [ :c | c numberOfSubclasses * 5  ] namedAs: 'NOS'.
builder popupText: [ :class :metricName :value | 'The value of ', metricName, ' for ', class name, ' is ', value asString ].
builder minColor: Color green.
builder maxColor: Color red.
builder open.

It produce the following:

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




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [ann] punch builder in Roassal

Uko2
Very nice!
Thank you!


On 07 Nov 2013, at 22:17, Alexandre Bergel <[hidden email]> wrote:

Hi!

We have added a new builder, the punch card.
Consider the following script:

builder := ROPunchcardBuilder new.
builder addModels: (ROObject withAllSubclasses copyFrom: 3 to: 9).
builder addMetric: [ :c | c numberOfMethods + 5] namedAs: 'NOM'.
builder addMetric: [ :c | c numberOfVariables * 5 ] namedAs: 'NOA'.
builder addMetric: [ :c | c numberOfSubclasses * 5  ] namedAs: 'NOS'.
builder popupText: [ :class :metricName :value | 'The value of ', metricName, ' for ', class name, ' is ', value asString ].
builder minColor: Color green.
builder maxColor: Color red.
builder open.

It produce the following:
<Screen Shot 2013-11-07 at 6.15.03 PM.png>
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



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


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [ann] punch builder in Roassal

Tudor Girba-2
In reply to this post by abergel
Nice.

However, I think this type of charts would be better fit inside Graph-ET in order to make use of axis support.

Cheers,
Doru


On Thu, Nov 7, 2013 at 10:17 PM, Alexandre Bergel <[hidden email]> wrote:
Hi!

We have added a new builder, the punch card.
Consider the following script:

builder := ROPunchcardBuilder new.
builder addModels: (ROObject withAllSubclasses copyFrom: 3 to: 9).
builder addMetric: [ :c | c numberOfMethods + 5] namedAs: 'NOM'.
builder addMetric: [ :c | c numberOfVariables * 5 ] namedAs: 'NOA'.
builder addMetric: [ :c | c numberOfSubclasses * 5  ] namedAs: 'NOS'.
builder popupText: [ :class :metricName :value | 'The value of ', metricName, ' for ', class name, ' is ', value asString ].
builder minColor: Color green.
builder maxColor: Color red.
builder open.

It produce the following:

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




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




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [ann] punch builder in Roassal

abergel
Could be.

The nice thing, is that ROPunchcardBuilder is __really__ small. Maybe it can be ported to GraphET.
I am currently building new builder.
Will let you know...

Alexandre


On Nov 10, 2013, at 6:21 PM, Tudor Girba <[hidden email]> wrote:

> Nice.
>
> However, I think this type of charts would be better fit inside Graph-ET in order to make use of axis support.
>
> Cheers,
> Doru
>
>
> On Thu, Nov 7, 2013 at 10:17 PM, Alexandre Bergel <[hidden email]> wrote:
> Hi!
>
> We have added a new builder, the punch card.
> Consider the following script:
>
> builder := ROPunchcardBuilder new.
> builder addModels: (ROObject withAllSubclasses copyFrom: 3 to: 9).
> builder addMetric: [ :c | c numberOfMethods + 5] namedAs: 'NOM'.
> builder addMetric: [ :c | c numberOfVariables * 5 ] namedAs: 'NOA'.
> builder addMetric: [ :c | c numberOfSubclasses * 5  ] namedAs: 'NOS'.
> builder popupText: [ :class :metricName :value | 'The value of ', metricName, ' for ', class name, ' is ', value asString ].
> builder minColor: Color green.
> builder maxColor: Color red.
> builder open.
>
> It produce the following:
> <Screen Shot 2013-11-07 at 6.15.03 PM.png>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

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




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