edu.uci.isr.yancees.server.plugin.subscription.correlation
Class AbstractCorrelationPlugin
java.lang.Object
edu.uci.isr.yancees.plugin.AbstractPlugin
edu.uci.isr.yancees.server.plugin.subscription.correlation.AbstractCorrelationPlugin
- All Implemented Interfaces:
- PluginInterface, PluginListenerInterface
- Direct Known Subclasses:
- AndPlugin, OrPlugin, ThenPlugin
- public abstract class AbstractCorrelationPlugin
- extends AbstractPlugin
- Author:
- Roberto Silveira Silva Filho [rsilvafi@ics.uci.edu]
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
Methods inherited from class edu.uci.isr.yancees.plugin.AbstractPlugin |
addListener, addRequiredPlugin, dispose, finalize, getExpectedPluginIDs, getFullContext, getFullPath, getId, getRequiredPluginsList, getSubtree, getTag, hasChildren, publishOutput, publishOutput, removeListener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WITHIN_ATTRIBUTE_TAG
public static final java.lang.String WITHIN_ATTRIBUTE_TAG
- See Also:
- Constant Field Values
AFTER_ATTRIBUTE_TAG
public static final java.lang.String AFTER_ATTRIBUTE_TAG
- See Also:
- Constant Field Values
AbstractCorrelationPlugin
public AbstractCorrelationPlugin(org.w3c.dom.Node subTree)
- Parameters:
subTree
- is the DOM tree this plugin is responsible for executing
evalutation of this plugin is published.
getPluginIdIndex
protected int getPluginIdIndex(long id)
- Finds the position of the id in the pattern being observed.
This operation is performed in O(1)
- Returns:
- the position of the id in the array or -1 if not found
processObject
protected abstract void processObject(java.lang.Object object,
long id)
- A new event came from a given source (represented from its id).
- Parameters:
id
- is the id of the plug-in that sent the event
receivePluginNotification
public void receivePluginNotification(EventInterface evt,
PluginInterface source)
- Receives a notification from another plug-in this plug-in is dependent on
- Specified by:
receivePluginNotification
in interface PluginListenerInterface
- Specified by:
receivePluginNotification
in class AbstractPlugin
- Parameters:
evt
- is the event receivedsource
- is the plug-in sending the notification.
receivePluginNotification
public void receivePluginNotification(EventInterface[] evtList,
PluginInterface source)
- Receives a list of events as notifications from another plug-in
- Specified by:
receivePluginNotification
in interface PluginListenerInterface
- Specified by:
receivePluginNotification
in class AbstractPlugin
- Parameters:
evtList
- is the list of events receivedsource
- is the plug-in sending the notification.