Prism.extensions.connector
Class ExtensibleConnector

java.lang.Object
  extended by Prism.core.Brick
      extended by Prism.core.Connector
          extended by Prism.extensions.connector.ExtensibleConnector
All Implemented Interfaces:
java.io.Serializable, IConnector

public class ExtensibleConnector
extends Connector

See Also:
Serialized Form

Field Summary
 
Fields inherited from class Prism.core.Brick
name, scaffold
 
Fields inherited from interface Prism.core.IConnector
INITIAL_SIZE_OF_BRICK_QUEUE
 
Constructor Summary
ExtensibleConnector(java.lang.String name)
           
ExtensibleConnector(java.lang.String name, AbstractHandler handler, int style)
           
 
Method Summary
 AbstractHandler getEvtHandler()
          Gets the IHandler of this connector.
 void handle(Event e)
          This method distributes the incoming event to connected Bricks.
 void setEvtHandler(AbstractHandler pHndl)
          Sets the IHandler of this connector.
 
Methods inherited from class Prism.core.Connector
addConnPort, getConnPorts, removeConnPort
 
Methods inherited from class Prism.core.Brick
add, getStyle, start
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensibleConnector

public ExtensibleConnector(java.lang.String name)

ExtensibleConnector

public ExtensibleConnector(java.lang.String name,
                           AbstractHandler handler,
                           int style)
Method Detail

setEvtHandler

public void setEvtHandler(AbstractHandler pHndl)
Sets the IHandler of this connector.

Parameters:
pHndl - IHandler object that determines the distribution policy

getEvtHandler

public AbstractHandler getEvtHandler()
Gets the IHandler of this connector.

Returns:
IHandler IHandler object that determines the distribution policy

handle

public void handle(Event e)
This method distributes the incoming event to connected Bricks. Distribution policy depends on the type of IHandler that is installed.

Specified by:
handle in interface IConnector
Overrides:
handle in class Connector
Parameters:
e - Incoming Event