References to other models [message #744099] |
Fri, 21 October 2011 23:31 |
|
Hello!
My name is José Miguel, and I would like to send a question to the forum. First to all, thanks you for your help.
I have two metamodels, one of they is a "normal metamodel" and in the other, some Eclases have EReferences to Eclass defined in the first metamodel.
* Metamodel 1 => normal
* Metamodel 2 => with Ereferences to Eclases in Metamodel 1
I'm trying do a test for to instance each metamodel and obtain two model, one for each metamodel, using EOL. In my test, I instance metamodel 1 obviously without problem, but when I try instance this Ereferences, I obtain the follow message:
Called feature source on undefined object (..../prueba.eol@67:13)
The question is: Is possible do it using Epsilon?. What is the way of do it?
Thanks you very much for you help!
Best regards.
José Miguel
|
|
|
|
Re: References to other models [message #748556 is a reply to message #748255] |
Mon, 24 October 2011 19:05 |
|
Hello Louis.
First to all, thanks you very much, your example has been very usefull for me.
I have checked my test again and I have compared it with your example, and I have found my mistake.
Only one note for futures people reading this thread. In your example, the file banks.ecore is not synchronized with banks.emf, because in your banks.emf don't exits the ref ref people.Person[*] customers; in the metaclass Bank. I have generate the emf from the ecore, and this is the results:
@namespace(uri="banks", prefix="banks")
package banks;
import "platform:/resource/CrossModelReference/metamodels/people.ecore";
class World {
val Bank[*] banks;
}
class Bank {
attr String[1] name;
ref people.Person[*] customers;
}
Thanks you very much for your help and congratulations for Epsilon. It's really great.
José Miguel.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03196 seconds