edu.uci.isr.yancees.plugin
Class AbstractProtocolPlugin

java.lang.Object
  extended by edu.uci.isr.yancees.plugin.AbstractProtocolPlugin
All Implemented Interfaces:
ProtocolPluginInterface, java.rmi.Remote

public abstract class AbstractProtocolPlugin
extends java.lang.Object
implements ProtocolPluginInterface

This abstract class defines the basic functionality of the plug-in as well as its main attributes.


Constructor Summary
AbstractProtocolPlugin(SubscriberInterface si)
           
 
Method Summary
 long getId()
           
 java.lang.String getTag()
           
protected  void notifySubscriber(EventInterface event)
           
protected  void notifySybscriber(EventInterface[] eventList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProtocolPlugin

public AbstractProtocolPlugin(SubscriberInterface si)
Parameters:
subTree - is the DOM tree this plugin is responsible for executing
Method Detail

getId

public long getId()
Specified by:
getId in interface ProtocolPluginInterface
Returns:
the unique Id of this plugin

getTag

public java.lang.String getTag()
Specified by:
getTag in interface ProtocolPluginInterface
Returns:
the tag name that this plugin is representing. It corresponds to the type of this plugin instance. For example, if this is a plug-in that handles a subtree headed by the tag, its type will be "followed-by"

notifySubscriber

protected void notifySubscriber(EventInterface event)

notifySybscriber

protected void notifySybscriber(EventInterface[] eventList)