HOW CAI I DO [message #1021523] |
Wed, 20 March 2013 05:15  |
Eclipse User |
|
|
|
rule Activity
{ from s:Activities!Activity
to t1:PetriNets!PetriNet
(name <- s.name)
}
rule Action
{from s:Activities!Action
to t1:PetriNets!Place
( name <- s.name,id <- s.id)
}
my input xmi:
<Activity name="sleep">
<Action name="eat" id="33"/>
</Activity>
The error is:
FeatureNotFoundException: Feature 'Action' not found.
Thank you very much !
|
|
|
|
|
|
Re: HOW CAI I DO [message #1024869 is a reply to message #1021757] |
Tue, 26 March 2013 05:31   |
Eclipse User |
|
|
|
Hello,
Am new on atl Transformations and i had the same problem as Mr yesheng chai,so i would thank you for your help and i appreciate the great work that are doing the forum's team!
However i would ask Mr Hugo Bruneliere for his reply,
>>First, independently from the transformation, how have you built your input >>model?Are you able to open/load it correctly using the Sample Reflective Model >>Editor for instance?
Its interesting for me to know exactly how to define and use XMI Models, my XMI model can't be open with "Sample Reflective Model 'Ecore' Model Editor "[note that i have "Ecore Model Editor" not "Model Editor],and when trying opening it i got this message "Problems encountered. Click the 'Details' button for further information".
And am wondering if ,each time i wont to declare a subclass into the containing Class in the XMI Model, i have to put the EReference Of the SubClass not the SubClass it Self.
The last question: is there other option to use models with another langage other than XMI.
Thanks in advance for the help!
|
|
|
Re: HOW CAI I DO [message #1027126 is a reply to message #1024869] |
Tue, 26 March 2013 11:31   |
Eclipse User |
|
|
|
Hello,
When opening your model with an editor, you first have to be sure that the corresponding metamodel (in Ecore) is correctly loaded onto the EMF registry.
For integrated metamodels, this is normally already done when starting your Eclipse.
For development ones in your workspace, you can load them manually thanks to the "Load Metamodel" action (on an Ecore file) as provided by ATL from the ATL perspective.
Concerning the storage/serialization of models, yes there is potentially an infinite number of options (as long as you provide the right corresponding model loader/saver). For instance, they can be stored in databases (cf. Eclipse CDO), in XML files (cf. base Eclipse EMF), in textual files (cf. Eclipse Xtext), etc.
Best regards,
Hugo
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04639 seconds