Class ViatraQueryEventSource<Match extends IPatternMatch>
- java.lang.Object
-
- org.eclipse.viatra.transformation.evm.api.event.adapter.EventSourceAdapter<Match>
-
- org.eclipse.viatra.transformation.evm.specific.event.ViatraQueryEventSource<Match>
-
- All Implemented Interfaces:
EventSource<Match>
public class ViatraQueryEventSource<Match extends IPatternMatch> extends EventSourceAdapter<Match>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ViatraQueryEventSource(ViatraQueryEventRealm realm, ViatraQueryEventSourceSpecification<Match> sourceDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterHandlerRemoved(EventHandler<Match> handler, boolean handlersEmpty)
protected void
beforeHandlerAdded(EventHandler<Match> handler, boolean handlersEmpty)
void
dispose()
IAttributeMonitorListener<Match>
getAttributeMonitorListener()
ViatraQueryMatcher<Match>
getMatcher()
protected IAttributeMonitorListener<Match>
prepareAttributeMonitorListener()
Initializes an attribute monitor listenerprotected IMatchUpdateListener<Match>
prepareMatchUpdateListener()
Initializes the corresponding match update listenerprotected void
prepareSource()
-
Methods inherited from class org.eclipse.viatra.transformation.evm.api.event.adapter.EventSourceAdapter
addHandler, afterHandlerAdded, beforeHandlerRemoved, getRealm, getSourceSpecification, notifyHandlers, removeHandler
-
-
-
-
Constructor Detail
-
ViatraQueryEventSource
protected ViatraQueryEventSource(ViatraQueryEventRealm realm, ViatraQueryEventSourceSpecification<Match> sourceDefinition)
-
-
Method Detail
-
getMatcher
public ViatraQueryMatcher<Match> getMatcher()
-
beforeHandlerAdded
protected void beforeHandlerAdded(EventHandler<Match> handler, boolean handlersEmpty)
- Overrides:
beforeHandlerAdded
in classEventSourceAdapter<Match extends IPatternMatch>
-
afterHandlerRemoved
protected void afterHandlerRemoved(EventHandler<Match> handler, boolean handlersEmpty)
- Overrides:
afterHandlerRemoved
in classEventSourceAdapter<Match extends IPatternMatch>
-
prepareSource
protected void prepareSource()
- Specified by:
prepareSource
in classEventSourceAdapter<Match extends IPatternMatch>
-
prepareAttributeMonitorListener
protected IAttributeMonitorListener<Match> prepareAttributeMonitorListener()
Initializes an attribute monitor listener- Returns:
- the prepared attribute monitor listener; must not be null
-
prepareMatchUpdateListener
protected IMatchUpdateListener<Match> prepareMatchUpdateListener()
Initializes the corresponding match update listener- Returns:
- the prepared update listener; must not be null
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceEventSource<Match extends IPatternMatch>
- Overrides:
dispose
in classEventSourceAdapter<Match extends IPatternMatch>
-
getAttributeMonitorListener
public IAttributeMonitorListener<Match> getAttributeMonitorListener()
-
-