|
Re: Suggestion for model comparison [message #1810498 is a reply to message #1810494] |
Mon, 12 August 2019 18:02 |
|
Hi Saheed,
We haven't done model comparison directly with Hawk, but it may be possible if you use a remote access descriptor [1]. You could use one descriptor to retrieve the version at a certain timepoint, and another descriptor for another timepoint. In theory, since this would expose each version as its own EMF resource, you should be able to use plain EMF Compare between the two.
Give it a try and let me know how it works for you.
[1]: https://github.com/mondo-project/mondo-hawk/wiki/Eclipse-based-clients#editor-for-remote-model-access-descriptors
Kind regards,
Antonio
|
|
|
|
|
Re: Suggestion for model comparison [message #1810698 is a reply to message #1810641] |
Fri, 16 August 2019 13:18 |
|
Hi Saheed,
Oh, I forgot to add a mention of how to access it to the wiki page. Just did that. To create a .hawkmodel file, use "File > New > Other... > Hawk > Remote Hawk Model Descriptor File" from the Eclipse IDE.
.hawkmodel files are views on an existing graph. What you do is create one, and then use the appropriate query in the "Contents > Query" field (see the screenshot on Github).
Kind regards,
Antonio
|
|
|
|
Re: Suggestion for model comparison [message #1811130 is a reply to message #1811048] |
Tue, 27 August 2019 09:29 |
|
The issue is that the .localhawkmodel file will be loaded in the initial time instant (0), which by definition has nothing: I just tried it, with no errors ike the ones.
The URL would be the URL to the .localhawkmodel file, which simply contains the name of the Hawk index to be exposed as a resource. Unfortunately, this simple design does not allow for any options to be provided, so it is rather limited in that regard. You need to use a remote Hawk model descriptor file as indicated in my post above: that way you can specify a query that will give you the contents of the resource at the appropriate point in time. This means that you will need a Hawk server running in your machine: the Github wiki has instructions on how to set it up.
I'll give it a think and see if we can incorporate time-awareness into .localhawkmodel files in some simple way.
|
|
|
|
Re: Suggestion for model comparison [message #1811219 is a reply to message #1811152] |
Thu, 29 August 2019 00:44 |
|
Issue 85 is now fixed. Once Hawk rebuilds in Travis, you should be able to upgrade to it and use .hawkmodel files (not .localhawkmodel files) with queries, and they should be compatible with EMF Compare. Say that you have two .hawkmodel files. Assuming your root model type is "Log":
* The first .hawkmodel file would use "return Log.latest.all.first;" -> oldest version of the root model element
* The second .hawkmodel file would use "return Log.latest.all.first.next;" -> next oldest version of the root model element
You could then select both in Eclipse and use the typical "Compare with -> Each Other" option to see their differences.
Issue 86 is still pending for now.
[Updated on: Thu, 29 August 2019 10:20] Report message to a moderator
|
|
|
|
Re: Suggestion for model comparison [message #1811344 is a reply to message #1811268] |
Sat, 31 August 2019 16:27 |
|
That can only happen if the Eclipse Hawk GUI cannot talk to the server. The default URL does match the server, which by default listens both on port 2080 (raw TCP) and port 8080 (HTTP).
Are you using Windows? It may be a firewall issue: we've had Windows users that have run into this.
|
|
|
Re: Suggestion for model comparison [message #1813512 is a reply to message #1811344] |
Sat, 31 August 2019 22:05 |
|
Issue 86 has now been resolved as well: .localhawkmodel files can be created now with a custom timepoint, and they will show the contents of the graph at that timepoint. They are also associated with the EMF Compare content type, so you may select two and use Compare With -> Each Other.
Give it a try and let me know how it works for you!
|
|
|
Powered by
FUDForum. Page generated in 0.04493 seconds