What Doru is saying is that there are actually two models when drawing with Mondrian: your
domain model, which holds your data, and the Mondrian model, basically Node+Edge. The
Mondrian model is built on top of your domain model using constructors such as
#edges:from:toAll:
So the first argument of #edges:from:toAll: is the collection of data from your domain.
To take another example:
view edges: someFamixInvocations from: #sender toAll: #candidates
will draw an edge from the sender (method) of the invocation to each candidate of the
invocation.
On 18 févr. 2011, at 11:07, Nicolas Anquetil wrote:
thanks doru, but I am afraid I did not get it :-(
An edge goes from aNode to anotherNode, what do you mean by "behind the edge"
Behind each edge, there will be one class. If a
class invokes multiple
classes, the same class will be behind each of the corresponding
edges.
this seems to be refering to the source of the edge, so why do you also need to put it
"behind"?
nicolas
----- Mail original -----
> De: "Tudor Girba" <tudor.girba(a)gmail.com>
> À: "Moose-related development" <moose-dev(a)iam.unibe.ch>
> Envoyé: Vendredi 18 Février 2011 10:48:30
> Objet: [Moose-dev] Re: MOViewRendered>>edges:from:toAll: ???
> The first argument provides the model behind the edge.
>
> For example:
>
> view nodes: classes.
> view edges: classes from: [:each | each ] toAll: [:each | each
> invokedClasses].
>
Behind each edge, there will be one class. If a
class invokes multiple
classes, the same class will be behind each of the corresponding
edges.
>
> Cheers,
> Doru
>
>
> On 18 Feb 2011, at 10:45, Nicolas Anquetil wrote:
>
>>
>> What is the purpose of the first argument of this method?
>>
>> MOViewRendered>>
>> edges: aCollection from: aFromBlock toAll: aToBlock
>> "aToBlock should return a collection, edges will be drawn from
>> the element returned by aFromBlock to this collection"
>>
>> ^self edges: aCollection from: aFromBlock toAll: aToBlock using:
>> self edgeShape
>>
>> nicolas
>> _______________________________________________
>> Moose-dev mailing list
>> Moose-dev(a)iam.unibe.ch
>>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
>
www.tudorgirba.com
>
> "Be rather willing to give than demanding to get."
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev(a)iam.unibe.ch
>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev