Prism.extensions.architecture
Class ExtensibleArchitecture

java.lang.Object
  extended by Prism.core.Brick
      extended by Prism.core.Architecture
          extended by Prism.extensions.architecture.ExtensibleArchitecture
All Implemented Interfaces:
java.io.Serializable, IArchitecture, IBrick

public class ExtensibleArchitecture
extends Architecture

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface Prism.core.IArchitecture
INITIAL_SIZE_OF_BRICK_ARRAY
 
Constructor Summary
ExtensibleArchitecture()
          This constructor creates an architecture with default parameters.
ExtensibleArchitecture(AbstractScaffold scaffold)
          This constructor sets the scaffold of this architecture to scaffold.
ExtensibleArchitecture(int style)
          This constructor sets the style of this architecture to style.
ExtensibleArchitecture(java.lang.String name)
          This constructor sets the name of this architecture to name.
ExtensibleArchitecture(java.lang.String name, int style, AbstractScaffold scaffold)
          Initializes the name, style, and scaffold of this architecture.
 
Method Summary
 void addTopology(AbstractTopology topology)
           
 void weld(IPort p1, IPort p2)
          This is a generic method for connecting two Ports.
 
Methods inherited from class Prism.core.Architecture
add, getBrickByInstanceName, getBricks, handle, remove, start, unweld
 
Methods inherited from class Prism.core.Brick
add, getName, getScaffold, getStyle, setName, setScaffold
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Prism.core.IBrick
add, getName, getScaffold, getStyle, setName, setScaffold
 

Constructor Detail

ExtensibleArchitecture

public ExtensibleArchitecture()
This constructor creates an architecture with default parameters.


ExtensibleArchitecture

public ExtensibleArchitecture(java.lang.String name)
This constructor sets the name of this architecture to name.

Parameters:
name - The name of this architecture. It cannot be a null value.

ExtensibleArchitecture

public ExtensibleArchitecture(int style)
This constructor sets the style of this architecture to style.

Parameters:
style - The style of this architecture.

ExtensibleArchitecture

public ExtensibleArchitecture(AbstractScaffold scaffold)
This constructor sets the scaffold of this architecture to scaffold.

Parameters:
scaffold - The scaffold of this architecture.

ExtensibleArchitecture

public ExtensibleArchitecture(java.lang.String name,
                              int style,
                              AbstractScaffold scaffold)
Initializes the name, style, and scaffold of this architecture.

Parameters:
name - The name of this architecture.
style - The style of this architecture.
scaffold - The scaffold of this architecture.
Method Detail

addTopology

public void addTopology(AbstractTopology topology)

weld

public void weld(IPort p1,
                 IPort p2)
Description copied from class: Architecture
This is a generic method for connecting two Ports. It is assumed that the two ports have already been assigned to another parent Brick (component/connector) object.

Specified by:
weld in interface IArchitecture
Overrides:
weld in class Architecture
Parameters:
p1 - First Port
p2 - second Port