sub metamodel detection [message #1799357] |
Wed, 05 December 2018 14:41 |
Banafsheh Azizi Messages: 328 Registered: July 2016 |
Senior Member |
|
|
Hi there,
I have got two ecore metamodels. I am looking for a tool which gives 'Yes' for the attached metamodels as the metamodel2 conforms to the metamodel1 . I know the terms "conform" is used for an instance of a metamodel, but I have used this term because I need something like that.
Best Rgards,
Banafsheh
Member of MDSE Research Group
http://mdse.ui.ac.ir
[Updated on: Wed, 05 December 2018 14:54] Report message to a moderator
|
|
|
|
Re: sub metamodel detection [message #1799375 is a reply to message #1799363] |
Wed, 05 December 2018 19:39 |
Banafsheh Azizi Messages: 328 Registered: July 2016 |
Senior Member |
|
|
I have made a mistake. The Female class with a null fullname attribute is not valid in metamodel2. I have attached the correct metamodels.
What I mean by conformance is:
If the metamodel2 confroms to the metamodel1,
- All classess of the metamodel2 exists in the metamodel1.
-All its attributes and references exists in the attributes and references of the corresponding class in the metamodel1 or its parents in a hierarchy.
-The default value of its attributes is the same as the corresponding attribute in the metamodel1.
Anyway, you mean to say there are not any tools that help me in this regard? Can not tools such as EMF Compare or solvers help me and I should write the code from scratch? Would you tell me a bit more about the transformation you have said?
Member of MDSE Research Group
http://mdse.ui.ac.ir
[Updated on: Wed, 05 December 2018 19:45] Report message to a moderator
|
|
|
|
|
Re: sub metamodel detection [message #1799867 is a reply to message #1799363] |
Sat, 15 December 2018 16:38 |
Banafsheh Azizi Messages: 328 Registered: July 2016 |
Senior Member |
|
|
Ed Willink wrote on Wed, 05 December 2018 16:04
Femae with a null fullName is valid for metamodel2 but not metamodel1.
I have got a question about lowerBound of the EAttribute. Why can I have an instance of this metamodel with null value for the fullName attribute, when the lowerBound of the attribute in the metamodel is 1?
Member of MDSE Research Group
http://mdse.ui.ac.ir
[Updated on: Sat, 15 December 2018 16:40] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01915 seconds