How to do a transformation from Person to Families [message #830212] |
Tue, 27 March 2012 06:42  |
Eclipse User |
|
|
|
Hi,
On the ATL site there is an example that makes a transformation from a Family model to a Person model.
I am new in OCL. I want to create the opposite transformation, from Persons model to Family model, but I am not sure how I can make a rule that assign the persons with the same lastName to one family. Right now my transformation is transformating each person to a family, instead of the four persons to an unique family.
Any help?
Thanks
|
|
|
Re: How to do a transformation from Person to Families [message #830221 is a reply to message #830212] |
Tue, 27 March 2012 06:50  |
Eclipse User |
|
|
|
Hi
This is the OCL newsgroup. Please ask a specific question.
Surely you do not expect me to spend my time to find out
a) where is the ATL site
b) where the example is
c) study the example
before I can even understand your interest?
And of course OCL is only a component of a transformation language, so
perhaps you should ask a question on the ATL (M2M) newsgroup.
Regards
Ed Willink
On 27/03/2012 06:42, Aida Martinez wrote:
> Hi,
>
> On the ATL site there is an example that makes a transformation from a
> Family model to a Person model.
>
> I am new in OCL. I want to create the opposite transformation, from
> Persons model to Family model, but I am not sure how I can make a rule
> that assign the persons with the same lastName to one family. Right
> now my transformation is transformating each person to a family,
> instead of the four persons to an unique family.
>
> Any help?
> Thanks
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03838 seconds