Skip to main content



      Home
Home » Modeling » Epsilon » serialize ecl matchtrace
serialize ecl matchtrace [message #1162396] Wed, 30 October 2013 06:49 Go to next message
Eclipse UserFriend
Hi,
I'm working on a project in which an ecl and an egl module are involved. I get it working together by using ant as is explained in the Epsilon Book. It seems to work. However for developing purposes i need to serialize my ecl matchTrace. In the way I'm working right now I must execute the ecl module each time I have to check the developing of the egl one. This situation cause to me a lot of wasted time. if i had a serialized model of the match trace I could work faster.

Can anyone help me?
Re: serialize ecl matchtrace [message #1162610 is a reply to message #1162396] Wed, 30 October 2013 09:53 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I suspect that a workaround would be to define a custom MatchTrace metamodel and then use EOL to serialise the in-memory ECL match trace to a model that conforms to the MatchTrace metamodel. You could then use such serialised models in your EGL transformation without needing to re-run ECL.

Cheers,
Dimitris
Re: serialize ecl matchtrace [message #1162989 is a reply to message #1162610] Wed, 30 October 2013 15:17 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
Thank you for the reply! I hoped for something more straightforward even if your solution should work for me. I will try soon!
Re: serialize ecl matchtrace [message #1864826 is a reply to message #1162610] Thu, 11 April 2024 09:45 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I'am trying to compare elements of two heterogeneous models. It seems to work, But I need to save the result of the comparison into a model (serialize ECL matchtrace to a model) or export the result (the trace). My purpose is the validation module that will use the identified matches to evaluate inter-model constraints.

Could you please explain more these points:

When you are talking about defining a custom MatchTrace metamodel, you mean that I need to create a specific metamodel to represent the information captured in the match trace produced by Epsilon Comparison Language (ECL) or the metamodel of matchTrace already exists.
How to use EOL to serialize the ECL match trace to a model?

Any insights or advice or example on how to achieve this would be greatly appreciated.
Re: serialize ecl matchtrace [message #1864828 is a reply to message #1864826] Thu, 11 April 2024 14:11 Go to previous messageGo to next message
Eclipse UserFriend
The metamodel does not exist. You can look at the Java classes and their relations as a guide so the instantiation of the metamodel instance is easy. Or you can use something as Tracea if you want a lot more information.

In the post block of your ECL you can use EOL to save the trace. This would involve creating instances of your trace metamodel classes and copying the ECL trace information.
Re: serialize ecl matchtrace [message #1864829 is a reply to message #1864828] Thu, 11 April 2024 15:14 Go to previous messageGo to next message
Eclipse UserFriend
Alternatively, you could consume ECL's match trace from EVL directly as shown in https://github.com/eclipse/epsilon/tree/main/examples/org.eclipse.epsilon.examples.ecl.evl

Thanks,
Dimitris
Re: serialize ecl matchtrace [message #1864839 is a reply to message #1864828] Fri, 12 April 2024 09:46 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
Thank you for the reply!
Re: serialize ecl matchtrace [message #1865406 is a reply to message #1162396] Thu, 02 May 2024 19:10 Go to previous messageGo to next message
Eclipse UserFriend

Hello Dimitri,

I have two questions :

1- Is it possible to invoke a constraint from another constraint? I have two constraints, and one depends on the other? It does not work for me.
2- Do Epsilon languages support incremental approaches?
Re: serialize ecl matchtrace [message #1865421 is a reply to message #1865406] Fri, 03 May 2024 04:39 Go to previous messageGo to next message
Eclipse UserFriend
Hi Chahrazed,

If you're talking about EVL, you can use the .satisfies operation in the guard to make an EVL constraint only run if another constraint is satisfied. See here:

https://eclipse.dev/epsilon/doc/evl/#capturing-dependencies-between-constraints

In regard to incremental execution, this is not supported by Epsilon at the moment, but we have a few projects in Epsilon Labs that touch on this. We have an incremental version of EVL for EMF models, and an incremental version of Picto for the web:

https://github.com/epsilonlabs/incremental-evl-emf

https://github.com/epsilonlabs/picto-web

These are research prototypes, however, and not quite ready for production yet.

Best,
Antonio

[Updated on: Fri, 03 May 2024 04:40] by Moderator

Re: serialize ecl matchtrace [message #1865427 is a reply to message #1865421] Fri, 03 May 2024 04:57 Go to previous message
Eclipse UserFriend
Hi,
Thank you for the reply!
Previous Topic:load xtext dsl during ant build
Next Topic:How to create model object diagrams
Goto Forum:
  


Current Time: Wed Jul 23 08:50:33 EDT 2025

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

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

Back to the top