[Moose-dev] Re: Moose edges
Alexandre Bergel
alexandre at bergel.eu
Tue Nov 18 14:22:10 MET 2008
Because the scripts I did first were dedicated to Java4Moose. I
recently added a section that is independent from Java4Moose.
Evolution problem :-)
Alexandre
On 18 Nov 2008, at 08:19, jannik.laval.gmail wrote:
> Ok, thanks Alex.
> But why is it in java4moose and not in Mondrian tab ?
>
> Jannik
>
> Le 18 nov. 08 à 12:07, Alexandre Bergel a écrit :
>
>> Some example of edges:from:toAll: may be found on http://moose.unibe.ch/tools/java4moose/mondrianscripts
>>
>> Alexandre
>>
>>
>> On 18 Nov 2008, at 07:33, Jannik.laval.inria wrote:
>>
>>> Thanks doru,
>>> it works :)
>>>
>>> Jannik
>>>
>>> Le 18 nov. 08 à 10:58, Tudor Girba a écrit :
>>>
>>>> Hi Jannik,
>>>>
>>>> edges: aCollection from: fromBlock to: toBlock defines a one to one
>>>> relationship between "fromBlock value: each" and "toBlock value:
>>>> each" (if you use a symbol instead of a block, it will just be
>>>> performed on each)
>>>>
>>>> This works well for single inheritance, because given a class there
>>>> is just one superclass. However, in your case, you want to draw
>>>> several edges from one class.
>>>>
>>>> In this case, you can use edges:fromAll:to, or edges:from:toAll:.
>>>> These still expect blocks, only the result of an "All block" should
>>>> be a collection of entities.
>>>>
>>>> Cheers,
>>>> Doru
>>>>
>>>>
>>>> On Nov 18, 2008, at 10:48 AM, Jannik.laval.inria wrote:
>>>>
>>>>> Hi Doru,
>>>>>
>>>>> I am using Mondrian, and I have a problem with edges.
>>>>>
>>>>> When I do
>>>>> aView edgesFrom: #superclass.
>>>>> I have edges from superClasse to each.
>>>>>
>>>>> Now, I would like to have classes used by each.
>>>>> So I do
>>>>> aView edgesFrom:#accesses.
>>>>> Maybe it is because accesses is a collection ?
>>>>> Can you help me ?
>>>>>
>>>>> Also, I would like to know what are the type of parameters in
>>>>> functions edgesFrom: , edgesFrom:To: and edges:From:To:
>>>>>
>>>>> Thanks for all
>>>>>
>>>>> Jannik
>>>>
>>>> --
>>>> www.tudorgirba.com
>>>> www.tudorgirba.com/blog
>>>>
>>>> "Some battles are better lost than fought."
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> Moose-dev at iam.unibe.ch
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> Moose-dev at iam.unibe.ch
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev at iam.unibe.ch
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
More information about the Moose-dev
mailing list