edu.uci.isr.yancees.server.plugin.protocol.mobility
Class MobilityProtocolPlugin

java.lang.Object
  extended byedu.uci.isr.yancees.plugin.AbstractPlugin
      extended byedu.uci.isr.yancees.plugin.AbstractProtocolPlugin
          extended byedu.uci.isr.yancees.server.plugin.protocol.mobility.MobilityProtocolPlugin
All Implemented Interfaces:
PluginInterface, PluginListenerInterface, ProtocolPluginInterface

public class MobilityProtocolPlugin
extends AbstractProtocolPlugin


Field Summary
 
Fields inherited from class edu.uci.isr.yancees.plugin.AbstractPlugin
myListeners, myRequiredPlugins
 
Constructor Summary
MobilityProtocolPlugin(org.w3c.dom.Node subTree)
           
 
Method Summary
 void receivePluginNotification(EventInterface[] evtList, PluginInterface source)
          Receives a list of events as notifications from another plug-in
 void receivePluginNotification(EventInterface evt, PluginInterface source)
          Receives a notification from another plug-in
 void receiveProtocolMessage(MessageInterface msg, SubscriberInterface si)
          Receive messages from this protocol
 void terminateSession()
          Gracefully terminates the current plugin as a result of the end of the communicatoin session.
 
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
 
Methods inherited from interface edu.uci.isr.yancees.plugin.PluginInterface
addListener, addRequiredPlugin, dispose, getFullContext, getFullPath, getId, getRequiredPluginsList, getSubtree, getTag, hasChildren, removeListener
 

Constructor Detail

MobilityProtocolPlugin

public MobilityProtocolPlugin(org.w3c.dom.Node subTree)
Parameters:
subTree - is the DOM tree this plugin is responsible for executing evalutation of this plugin is published.
Method Detail

receivePluginNotification

public void receivePluginNotification(EventInterface evt,
                                      PluginInterface source)
Receives a notification from another plug-in

Specified by:
receivePluginNotification in interface PluginListenerInterface
Specified by:
receivePluginNotification in class AbstractProtocolPlugin
Parameters:
evt - is the event received
source - 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 AbstractProtocolPlugin
Parameters:
evtList - is the list of events received
source - is the plug-in sending the notification.

terminateSession

public void terminateSession()
Gracefully terminates the current plugin as a result of the end of the communicatoin session.

Specified by:
terminateSession in interface ProtocolPluginInterface
Specified by:
terminateSession in class AbstractProtocolPlugin

receiveProtocolMessage

public void receiveProtocolMessage(MessageInterface msg,
                                   SubscriberInterface si)
Receive messages from this protocol

Specified by:
receiveProtocolMessage in interface ProtocolPluginInterface
Specified by:
receiveProtocolMessage in class AbstractProtocolPlugin
Parameters:
msg - is a message according to the protocol that the plug-in implements.
si - is the subscriber that originated the message, it is used here to contextualize the protocol plug-in