|
Re: [ATL] Charging models dynamically in an ATL transformation [message #53313 is a reply to message #53104] |
Thu, 19 July 2007 08:50 |
Eclipse User |
|
|
|
Originally posted by: mefloricel.yahoo.com
Thanks a lot for your answer,
The problem is that in my project I do a transformation between UML and an
other model, TrML. Those two I know them at the beginning.
But during the transformation I need to use a metamodel that is specified
in the UML model.
And I need this metamodel to check some properties during the
transformation.
So, I have UML as IN, TrML as OUT, an others metamodels that I discover in
the UML model during the transformation.
May I use those metamodels? It exists functions as load() in ATL?
Best regards,
Flori
|
|
|
Re: [ATL] Charging models dynamically in an ATL transformation [message #53408 is a reply to message #53313] |
Thu, 19 July 2007 10:58 |
Frédéric Jouault Messages: 572 Registered: July 2009 |
Senior Member |
|
|
Hello,
> The problem is that in my project I do a transformation between UML and
> an other model, TrML. Those two I know them at the beginning.
> But during the transformation I need to use a metamodel that is
> specified in the UML model.
> And I need this metamodel to check some properties during the
> transformation.
> So, I have UML as IN, TrML as OUT, an others metamodels that I discover
> in the UML model during the transformation.
> May I use those metamodels? It exists functions as load() in ATL?
ATL offers a relatively well-controlled environment for transformation
execution. Therefore, I would advise against dynamically loading models.
However, ant scripts can be written to achieve what you want:
- First, query the UML model (using am3.query) to get the information
about the additional model you want to load into a property.
- Then, launch the ATL transformation (using am3.atl) with the
additional model specified using the property initialized by the query
in the previous step.
Information about the ant tasks for ATL can be found on the Eclipse wiki:
http://wiki.eclipse.org/AM3_Ant_Tasks
Regards,
Frédéric Jouault
|
|
|
Powered by
FUDForum. Page generated in 0.02639 seconds