|
|
|
|
|
|
|
|
|
Re: Execute operation in java code [message #1781982 is a reply to message #1781564] |
Thu, 15 February 2018 12:48 |
|
Hi Taghreed,
That is a very interesting project! I am sure we could collaborate more directly if you want (I am currently working on incremental execution of Epsilon languages myself), perhaps as an external assessor to your PhD (lets take this offline - can you drop me an email[1]?)
I think the problem with our approach is that to execute the guard you need to assign the rule parameters model object elements:
...
// This method would be responsible for finding the element that changed, if it was used for this rule (note that this could be a list of elements)
Object sVal = etlModelComapre.getSourceElementThatChangedFor(tr);
guardSatisfied = ex.execute(module.getContext(),
Variable.createReadOnlyVariable(s.getName(), sVal), // We put the changed Object in the context
Variable.createReadOnlyVariable("self", sVal));
You also need to consider that the guard expression might use other object references, those should also be added to the context. If the guard uses an "all" call, then the model that is being queried should also be in the context.
Cheers,
[1] https://www.cs.york.ac.uk/people/hhoyos
Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
|
|
|
Powered by
FUDForum. Page generated in 0.03020 seconds