Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » How to do a transformation from Person to Families
How to do a transformation from Person to Families [message #830212] Tue, 27 March 2012 10:42 Go to next message
Aida Martinez is currently offline Aida MartinezFriend
Messages: 2
Registered: March 2012
Junior Member
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 10:50 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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
>
>
>
>
Previous Topic:org.eclipse.emf.ocl.examples.interpreter
Next Topic:Extending OCL : visitor problems
Goto Forum:
  


Current Time: Fri Apr 26 21:47:52 GMT 2024

Powered by FUDForum. Page generated in 0.03048 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top