Prism.core
Interface IConnector

All Superinterfaces:
IBrick
All Known Implementing Classes:
Connector, ExtensibleConnector

public interface IConnector
extends IBrick

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 addPort(IPort b)
          Adds a port.
 java.util.Vector<IPort> getPorts()
          This method returns a list of all available ports.
 void handle(Event e)
          This method distributes the incoming event to connected Bricks.
 void removePort(IPort b)
          Removes a port.
 
Methods inherited from interface Prism.core.IBrick
add, getName, getScaffold, getStyle, setName, setScaffold, start
 

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.

Specified by:
handle in interface IBrick
Parameters:
e - Incoming Event

addPort

void addPort(IPort b)
Adds a port.

Parameters:
port - Port to be added.

removePort

void removePort(IPort b)
Removes a port.

Parameters:
port - Port to be removed.

getPorts

java.util.Vector<IPort> getPorts()
This method returns a list of all available ports.

Returns:
Vector List of available ports