Skip to main content



      Home
Home » Modeling » Compare » Extracting only differences from model comparison(Extracting only differences from model comparison)
Extracting only differences from model comparison [message #1010958] Mon, 18 February 2013 09:59 Go to next message
Eclipse UserFriend
I am developing a qualification tool for a data analysis application that compares the output from the new version of the application with qualified results from a previous version. We analyze hundreds of large data sets for each build so the comparisons needs to happen automatically, and only record the differences between the files.

I have been experimenting with EMF Compare and have not found an easy way to get just the differences, and persist them without linking to the original files. Any suggestions would be greatly appreciated, including if EMF Compare is an appropriate tool for this task.

Thank you in advance,

Greg Babcock
Re: Extracting only differences from model comparison [message #1011304 is a reply to message #1010958] Tue, 19 February 2013 04:19 Go to previous message
Eclipse UserFriend
Greg,

Retrieving the differences from a comparison model is as easy as using Comparison.getDifferences(), which will return a list of all Diff detected between the compared models.

Persisting them without linking to the original files, however, will require you to define your own serialization format. The comparison model is an EMF model, a "Diff" is an EMF element. They are persisted following the EMF semantics, which implies that differences reference their source and target elements directly. This "direct reference" involves the original model files.

Though we're slowly updating it, the wiki already has a description of what a Diff is, and how it references other elements. You might want to use this information to serialize it differently, in a human readable fashion?

An other way would be to look into R4E, which target seems closely related to your own.

Laurent Goubet
Obeo
Previous Topic:EMF Compare Load model file
Next Topic:EMF Compare Documentation
Goto Forum:
  


Current Time: Thu Jul 03 12:27:59 EDT 2025

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

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

Back to the top