I would do it like this:

view edges
   connect: aCollection from: [ ... ] to: [ ... ]

Doru

On Tue, Sep 22, 2015 at 10:41 PM, Alexandre Bergel <alexandre.bergel@me.com> wrote:
Oh! Well spotted!

> a := FAMIXClass new name: 'A'.
> b := FAMIXClass new name: 'B'.
> i := FAMIXInheritance new
>       superclass: a;
>       subclass: b.
> view := RTMondrian new.
> view nodes: { a . b }.
> view edges object: i; connectFrom: #superclass to: #subclass.
> view
>
> With the current API, there is no way to make this work. We need to separate the specification of objects to be traversed from the filtering mechanism.

What could it be then? Something like:

-=-=-=-=-=-=-=-=-=
view edges
        searchObjectFrom: i;
        connectFrom: #superclass to: #subclass
-=-=-=-=-=-=-=-=-=

I do not like the name #searchObjectFrom: but I do not see any better now.

That should be easy to implement…

Alexandre

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




_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--
www.tudorgirba.com

"Every thing has its own flow"