Prism.framework
Interface IComponent

All Known Implementing Classes:
Component, Architecture

public interface IComponent

This interface defines the additional services to be provided by a component. These methods are defined in an interface so that a composite architecture can be used interchangeably as a component or as a connector.

Version:
0.1
Author:
Nikunj Mehta

Method Summary
 void send(Notification n)
          This method sends the Notification n down the C2 architecture that this component is a part of.
 void send(Peer p)
          This method sends the peer message p on the side of the C2 architecture that this component is a part of.
 void send(Request r)
          This method sends the request r up the C2 architecture that this component is a part of.
 void setBottom(IConnector conn)
          Set the connector at the bottom
 void setSide(IPeerConnector conn)
          Set the connector at the side
 void setTop(IConnector conn)
          Set the connector at the top
 

Method Detail

send

public void send(Request r)
This method sends the request r up the C2 architecture that this component is a part of.
Parameters:
r - a Request to be sent to the connector above.

send

public void send(Peer p)
This method sends the peer message p on the side of the C2 architecture that this component is a part of.
Parameters:
p - a Peer message to be sent to the connector on the side.

send

public void send(Notification n)
This method sends the Notification n down the C2 architecture that this component is a part of.
Parameters:
n - a Notification object to be sent to the connector below.

setTop

public void setTop(IConnector conn)
Set the connector at the top
Parameters:
conn - IConnector the top connector

setBottom

public void setBottom(IConnector conn)
Set the connector at the bottom
Parameters:
conn - IConnector the bottom connector

setSide

public void setSide(IPeerConnector conn)
Set the connector at the side
Parameters:
conn - IPeerConnector the peer connector