Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] ATLCopy
[ATL] ATLCopy [message #101771] Fri, 13 March 2009 09:56 Go to next message
sabatier is currently offline sabatierFriend
Messages: 14
Registered: July 2009
Junior Member
Hi all,

I would like to copy a model excluding metaclasses and add new metaclasses.

I know i cannot use refining mode in my case. I think i must use ATL
file UML2Copy.atl and redefine rules.

My question is : UML2Copy.atl is it generated file, or you write all
rules (made by hands) ?

My reason is : I want to make SYSMLCopy.atl file and i think is possible
to generated this file from ecore metamodel.
Re: [ATL] ATLCopy [message #101868 is a reply to message #101771] Mon, 16 March 2009 10:44 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
Hi UML2Copy is generated with EModelCopygeneretor :
http://ssel.vub.ac.be/viewvc/UML2CaseStudies/uml2cs-transfor mations/EModelCopyGenerator.atl?revision=7689&view=marku p

i think you can generate sysmlcopy with this generator.

Laurent SABATIER a écrit :
> Hi all,
>
> I would like to copy a model excluding metaclasses and add new
> metaclasses.
>
> I know i cannot use refining mode in my case. I think i must use ATL
> file UML2Copy.atl and redefine rules.
>
> My question is : UML2Copy.atl is it generated file, or you write all
> rules (made by hands) ?
>
> My reason is : I want to make SYSMLCopy.atl file and i think is
> possible to generated this file from ecore metamodel.




Re: [ATL] ATLCopy [message #102203 is a reply to message #101868] Mon, 23 March 2009 14:42 Go to previous messageGo to next message
sabatier is currently offline sabatierFriend
Messages: 14
Registered: July 2009
Junior Member
HI,

thank you for your reply

I will try it.

Tristan FAURE a écrit :
> Hi UML2Copy is generated with EModelCopygeneretor :
> http://ssel.vub.ac.be/viewvc/UML2CaseStudies/uml2cs-transfor mations/EModelCopyGenerator.atl?revision=7689&view=marku p
>
>
> i think you can generate sysmlcopy with this generator.
>
> Laurent SABATIER a écrit :
>> Hi all,
>> I would like to copy a model excluding metaclasses and add new
>> metaclasses.
>>
>> I know i cannot use refining mode in my case. I think i must use ATL
>> file UML2Copy.atl and redefine rules.
>>
>> My question is : UML2Copy.atl is it generated file, or you write all
>> rules (made by hands) ?
>>
>> My reason is : I want to make SYSMLCopy.atl file and i think is
>> possible to generated this file from ecore metamodel.
Re: [ATL] ATLCopy [message #102467 is a reply to message #102203] Thu, 26 March 2009 15:52 Go to previous messageGo to next message
Skander TURKI is currently offline Skander TURKIFriend
Messages: 130
Registered: July 2009
Senior Member
hi,
how to launch this module? it is not a transformation apparently.
it uses a Config library that i couldn't find.

do we have to da that programmatically?
thanks
Re: [ATL] ATLCopy [message #102502 is a reply to message #102467] Thu, 26 March 2009 17:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: a-yie.uniandes.edu.co

You can find config library here

http://ssel.vub.ac.be/viewvc/UML2CaseStudies/uml2cs-transfor mations/lib/Config.atl?view=markup

The

EModelCopygeneretor is a query rule that generates a copy rule for
every element in the metamodel. You need to create a launch for it with
ECORE as metamodel (EMF Registry), and in the config.atl file you can
put the path where the generated copy rule must be saved.



On 2009-03-26 16:52:45 +0100, skander.turki@gmail.com (Skander ) said:

> hi, how to launch this module? it is not a transformation apparently.
> it uses a Config library that i couldn't find.
>
> do we have to da that programmatically?
> thanks
Re: [ATL] ATLCopy [message #102586 is a reply to message #102502] Fri, 27 March 2009 15:07 Go to previous message
Skander TURKI is currently offline Skander TURKIFriend
Messages: 130
Registered: July 2009
Senior Member
that worked just fine for me,
it only generated a strange __xmiID__ <- s.__xmiID__ rule
but i suppressed that and i got a working copy transformation
thanks a lot
Previous Topic:[ATL] Operation not found: OUT!Class_0:UML2!Class.applyProfile
Next Topic:How to navigate target model
Goto Forum:
  


Current Time: Fri Apr 26 16:58:05 GMT 2024

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

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

Back to the top