Prism.framework
Interface IConnector

All Known Implementing Classes:
Architecture, Connector

public interface IConnector

This interface allows components and connectors to be tied to the sides of a connector. The interface has to be implemented by a brick in order to be considered as a connector.

Version:
0.1
Author:
Nikunj Mehta

Method Summary
 void addToBottom(Brick b)
          Connect the component to the lBottom of this connector
 void addToTop(Brick t)
          Connect the component to the lTop of this connector
 void removeFromBottom(Brick b)
          Remove the component from the lBottom of this connector
 void removeFromTop(Brick t)
          Remove the component from the lTop of this connector
 

Method Detail

addToTop

public void addToTop(Brick t)
Connect the component to the lTop of this connector
Parameters:
t - Brick to be added to the lTop

addToBottom

public void addToBottom(Brick b)
Connect the component to the lBottom of this connector
Parameters:
b - Brick to be added to the lBottom

removeFromTop

public void removeFromTop(Brick t)
Remove the component from the lTop of this connector
Parameters:
t - Brick to be added to the lTop

removeFromBottom

public void removeFromBottom(Brick b)
Remove the component from the lBottom of this connector
Parameters:
b - Brick to be added to the lBottom