Prism.core
Interface IComponent

All Known Implementing Classes:
Component, ExtensibleComponent

public interface IComponent

This interface needs to be implemented by any Prism component.

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

Field Summary
static int CONNS_PER_COMPONENT
           
 
Method Summary
 void addCompPort(IPort b)
          Adds a port.
 java.util.Vector getCompPorts()
          This method returns a list of all available ports.
 void handle(Event e)
          Handling of Event.
 void removeCompPort(IPort b)
          Removes a port.
 void send(Event e)
          This method sends the event up/down the Prism architecture that this component is a part of.
 

Field Detail

CONNS_PER_COMPONENT

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

send

void send(Event e)
This method sends the event up/down the Prism architecture that this component is a part of.

Parameters:
e - a Event to be sent to the Brick above/below.

handle

void handle(Event e)
Handling of Event. This is application specific code and should be implemented by subclasses of this class.

Parameters:
e - Event to be handled

addCompPort

void addCompPort(IPort b)
Adds a port.

Parameters:
port - Port to be added.

removeCompPort

void removeCompPort(IPort b)
Removes a port.

Parameters:
port - Port to be removed.

getCompPorts

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

Returns:
DynamicArray List of available ports