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 protectedViatraQueryEventSource(ViatraQueryEventRealm realm, ViatraQueryEventSourceSpecification<Match> sourceDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterHandlerRemoved(EventHandler<Match> handler, boolean handlersEmpty)protected voidbeforeHandlerAdded(EventHandler<Match> handler, boolean handlersEmpty)voiddispose()IAttributeMonitorListener<Match>getAttributeMonitorListener()ViatraQueryMatcher<Match>getMatcher()protected IAttributeMonitorListener<Match>prepareAttributeMonitorListener()Initializes an attribute monitor listenerprotected IMatchUpdateListener<Match>prepareMatchUpdateListener()Initializes the corresponding match update listenerprotected voidprepareSource()-
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:
beforeHandlerAddedin classEventSourceAdapter<Match extends IPatternMatch>
-
afterHandlerRemoved
protected void afterHandlerRemoved(EventHandler<Match> handler, boolean handlersEmpty)
- Overrides:
afterHandlerRemovedin classEventSourceAdapter<Match extends IPatternMatch>
-
prepareSource
protected void prepareSource()
- Specified by:
prepareSourcein 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:
disposein interfaceEventSource<Match extends IPatternMatch>- Overrides:
disposein classEventSourceAdapter<Match extends IPatternMatch>
-
getAttributeMonitorListener
public IAttributeMonitorListener<Match> getAttributeMonitorListener()
-
-