Prism.extensions.component
Class ExtensibleComponent

java.lang.Object
  extended by Prism.core.Brick
      extended by Prism.core.Component
          extended by Prism.extensions.component.ExtensibleComponent
All Implemented Interfaces:
java.io.Serializable, IBrick, IComponent

public class ExtensibleComponent
extends Component

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface Prism.core.IComponent
CONNS_PER_COMPONENT
 
Constructor Summary
ExtensibleComponent()
          This constructor creates an component with default parameters.
ExtensibleComponent(AbstractScaffold scaffold)
          This constructor sets the scaffold of this component to scaffold.
ExtensibleComponent(int style)
          This constructor sets the style of this component to style.
ExtensibleComponent(java.lang.String name)
          This constructor sets the name of this component to name.
ExtensibleComponent(java.lang.String name, int style, AbstractScaffold scaffold)
          Initializes the name, style, and scaffold of this component.
 
Method Summary
 void addCompSynchronism(AbstractCompSynchronism compSynchronism)
           
 void handle(Event e)
          Handling of Event.
 void send(Event e)
          This method sends the event up/down the Prism architecture that this component is a part of.
 
Methods inherited from class Prism.core.Component
addPort, getImplementation, getPorts, removePort, setImplementation, start
 
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

ExtensibleComponent

public ExtensibleComponent()
This constructor creates an component with default parameters.


ExtensibleComponent

public ExtensibleComponent(java.lang.String name)
This constructor sets the name of this component to name.

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

ExtensibleComponent

public ExtensibleComponent(int style)
This constructor sets the style of this component to style.

Parameters:
style - The style of this component.

ExtensibleComponent

public ExtensibleComponent(AbstractScaffold scaffold)
This constructor sets the scaffold of this component to scaffold.

Parameters:
scaffold - The scaffold of this component.

ExtensibleComponent

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

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

addCompSynchronism

public void addCompSynchronism(AbstractCompSynchronism compSynchronism)

send

public void send(Event e)
Description copied from class: Component
This method sends the event up/down the Prism architecture that this component is a part of.

Specified by:
send in interface IComponent
Overrides:
send in class Component
Parameters:
e - a Event to be sent to the Brick above/below.

handle

public void handle(Event e)
Description copied from class: Component
Handling of Event. This is application specific code and should be implemented by subclasses of this class.

Specified by:
handle in interface IBrick
Specified by:
handle in interface IComponent
Overrides:
handle in class Component
Parameters:
e - Event to be handled