Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFCompare] Comparison of unordered lists
[EMFCompare] Comparison of unordered lists [message #691403] Fri, 01 July 2011 11:23 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi all,

a beginner's question regarding EMFcompare and unordered, multi-valued
features. So, would EMFcompare consider two unordered list as equal/identic,
if the indices of the contained objects are arbitrary? If not, what would be
the best option to detect such (non-semantic) differences?

Sorry if this is technically too superficial, but I'm not aware with the
precise architecture of EMFcompare.

Best Regards,
Timothy
Re: [EMFCompare] Comparison of unordered lists [message #691408 is a reply to message #691403] Fri, 01 July 2011 11:49 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4153
Registered: July 2009
Senior Member
Hi Timothy

If you want a meta-model with changed semantics use one.

Perhaps you can dynamically modify the meta-model in memory before
invoking EMF compare.
Perhaps you can arrange for the RersourceSet Resource loader to load the
modified meta-model.
Pwerhaps you can modify your models to reference an alternate modifoed
meta-model.
Perhaps you can modify the persistent master copy of the meta-model.

Regards

Ed Willink



On 01/07/2011 13:23, Timothy Marc wrote:
> Hi all,
>
> a beginner's question regarding EMFcompare and unordered, multi-valued
> features. So, would EMFcompare consider two unordered list as
> equal/identic, if the indices of the contained objects are arbitrary?
> If not, what would be the best option to detect such (non-semantic)
> differences?
>
> Sorry if this is technically too superficial, but I'm not aware with
> the precise architecture of EMFcompare.
>
> Best Regards,
> Timothy
Re: [EMFCompare] Comparison of unordered lists [message #698335 is a reply to message #691408] Tue, 19 July 2011 09:34 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1638
Registered: July 2009
Senior Member
Hi Timothy,

EMF Compare will handle "unordered" lists as such : no "order" differences will be reported. On the opposite, if the list is "ordered", it will detect and report ordering changes.

If you wish to detect order changes on unordered lists, you'll have to customize the DiffEngine of EMF Compare.

Laurent Goubet
Obeo
Re: [EMFCompare] Comparison of unordered lists [message #700121 is a reply to message #698335] Fri, 22 July 2011 21:07 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi Laurent,

wow, that's great. It seems as EMFcompare can really be used for testing
whether the outcome of a M2M is semantically equivalent - I was really
uncertain of the hanlding of unordered lists.

Thanks a lot for your belated but useful answer.

Timothy

"Laurent Goubet" schrieb im Newsbeitrag
news:j03ift$g0b$1@news.eclipse.org...

Hi Timothy,

EMF Compare will handle "unordered" lists as such : no "order" differences
will be reported. On the opposite, if the list is "ordered", it will detect
and report ordering changes.

If you wish to detect order changes on unordered lists, you'll have to
customize the DiffEngine of EMF Compare.

Laurent Goubet
Obeo
Previous Topic:[Texo/Hibernate] TransientObjectException: object references an unsaved transient instance
Next Topic:[Texo]issue with migration to version 0.1.0.v201107070719
Goto Forum:
  


Current Time: Tue Nov 25 21:23:04 GMT 2014

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

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