Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [incquery-dev] Runtime API question: what should be use instead of DeltaMonitors?

Hi,

there is no "simple solution" that is appropriate for any use case.

The lowest level is MatchUpdateListener with its pros and cons: https://wiki.eclipse.org/EMFIncQuery/UserDocumentation/API/Advanced#Advanced_query_result_set_change_processing

There is the EVM with it's steep learning curve: https://wiki.eclipse.org/EMFIncQuery/DeveloperDocumentation/EventDrivenVM#Efficiently_reacting_to_pattern_match_set_changes

There is the VIATRA Event-driven API, with the "internal DSL": https://wiki.eclipse.org/VIATRA/Transformation_API#Incremental_Transformation_API

The closest thing to a delta monitor is the new change monitor, with it's missing documentation: http://git.eclipse.org/c/viatra/org.eclipse.viatra.git/tree/plugins/org.eclipse.viatra.emf.runtime/src/org/eclipse/viatra/emf/runtime/changemonitor
However, instead of matches, it currently collects EObjects.

So, no clear answer :)

Cheers,
  Ábel Hegedüs

Fault Tolerant Systems Research Group
Department of Measurement and Information Systems
Budapest University of Technology and Economics

On 2015.05.08. 15:31:04, Ujhelyi Zoltán <ujhelyiz@xxxxxxxxxx> wrote:

Hi all,

what is the current recommended approach for listening to match set changes of a pattern? This question is motivated by the now-broken headless example (http://git.eclipse.org/c/incquery/org.eclipse.incquery.examples.git/tree/headless/org.eclipse.incquery.application/src/org/eclipse/incquery/application/common/IncQueryHeadlessAdvanced.java), that uses still the old DeltaMonitor API that was removed from the code base entirely.

Is there anything available that is simpler than EVM and does not have UI dependencies such as the data binding support?

Cheers,
Zoli
_______________________________________________
incquery-dev mailing list
incquery-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/incquery-dev

Back to the top