Prism.framework
Interface IArchitecture

All Known Implementing Classes:
Architecture

public interface IArchitecture

The IArchitecture interface defines methods that only an architecture implements since it is known to be composite. This is an internal interface which should be used within the framework package only

Version:
0.1
Author:
Nikunj Mehta

Method Summary
 void add(Brick b)
          This method will add a component instance comp to the architecture enabling comp to send/recieve messages from this architecture.
 void remove(Brick b)
          This method removes comp from the architecture and thereby preventing comp from receiving anymore messages from this architecture.
 void weld(Brick b1, Brick b2)
          This method joins the bottom of comp to the top of conn.
 

Method Detail

add

public void add(Brick b)
This method will add a component instance comp to the architecture enabling comp to send/recieve messages from this architecture.
Parameters:
b - A brick object to be added to the architecture.

weld

public void weld(Brick b1,
                 Brick b2)
This method joins the bottom of comp to the top of conn.
Parameters:
b1 - A brick object to be welded at the top.
b2 - A brick object to be welded at the bottom

remove

public void remove(Brick b)
This method removes comp from the architecture and thereby preventing comp from receiving anymore messages from this architecture. If comp is not found to be a part of this architecture then the method does nothing and returns.
Parameters:
b - A brick object to be removed from the architecture.