Prism.core
Interface IConnector

All Known Implementing Classes:
Connector, ExtensibleConnector

public interface IConnector

This interface needs to be implemented by any Prism connector.

Version:
2.0
Author:
USC Soft. Arch. Group. Contact: Sam Malek malek@usc.edu

Field Summary
static int INITIAL_SIZE_OF_BRICK_QUEUE
           
 
Method Summary
 void addConnPort(IPort b)
          Adds a port.
 java.util.Vector getConnPorts()
          This method returns a list of all available ports.
 void handle(Event e)
          This method distributes the incoming event to connected Bricks.
 void removeConnPort(IPort b)
          Removes a port.
 

Field Detail

INITIAL_SIZE_OF_BRICK_QUEUE

static final int INITIAL_SIZE_OF_BRICK_QUEUE
See Also:
Constant Field Values
Method Detail

handle

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

Parameters:
e - Incoming Event

addConnPort

void addConnPort(IPort b)
Adds a port.

Parameters:
port - Port to be added.

removeConnPort

void removeConnPort(IPort b)
Removes a port.

Parameters:
port - Port to be removed.

getConnPorts

java.util.Vector getConnPorts()
This method returns a list of all available ports.

Returns:
DynamicArray List of available ports