public class ViatraQueryEventSource<Match extends IPatternMatch> extends EventSourceAdapter<Match>
Modifier | Constructor and Description |
---|---|
protected |
ViatraQueryEventSource(ViatraQueryEventRealm realm,
ViatraQueryEventSourceSpecification<Match> sourceDefinition) |
Modifier and Type | Method and 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 listener
|
protected IMatchUpdateListener<Match> |
prepareMatchUpdateListener()
Initializes the corresponding match update listener
|
protected void |
prepareSource() |
addHandler, afterHandlerAdded, beforeHandlerRemoved, getRealm, getSourceSpecification, notifyHandlers, removeHandler
protected ViatraQueryEventSource(ViatraQueryEventRealm realm, ViatraQueryEventSourceSpecification<Match> sourceDefinition) throws ViatraQueryException
ViatraQueryException
public ViatraQueryMatcher<Match> getMatcher()
protected void beforeHandlerAdded(EventHandler<Match> handler, boolean handlersEmpty)
beforeHandlerAdded
in class EventSourceAdapter<Match extends IPatternMatch>
protected void afterHandlerRemoved(EventHandler<Match> handler, boolean handlersEmpty)
afterHandlerRemoved
in class EventSourceAdapter<Match extends IPatternMatch>
protected void prepareSource()
prepareSource
in class EventSourceAdapter<Match extends IPatternMatch>
protected IAttributeMonitorListener<Match> prepareAttributeMonitorListener()
protected IMatchUpdateListener<Match> prepareMatchUpdateListener()
public void dispose()
dispose
in interface EventSource<Match extends IPatternMatch>
dispose
in class EventSourceAdapter<Match extends IPatternMatch>
public IAttributeMonitorListener<Match> getAttributeMonitorListener()