edu.uci.isr.yancees.plugin
Class RemoteAbstractProtocolPlugin

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by edu.uci.isr.yancees.plugin.RemoteAbstractProtocolPlugin
All Implemented Interfaces:
ProtocolPluginInterface, RemoteProtocolPluginInterface, java.io.Serializable, java.rmi.Remote

public abstract class RemoteAbstractProtocolPlugin
extends java.rmi.server.UnicastRemoteObject
implements RemoteProtocolPluginInterface

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RemoteAbstractProtocolPlugin(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.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteAbstractProtocolPlugin

public RemoteAbstractProtocolPlugin(SubscriberInterface si)
                             throws java.rmi.RemoteException
Parameters:
subTree - is the DOM tree this plugin is responsible for executing
Throws:
java.rmi.RemoteException
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)