Prism.test.peer
Class RightComponent

java.lang.Object
  |
  +--Prism.framework.Brick
        |
        +--Prism.framework.Component
              |
              +--Prism.test.peer.RightComponent
All Implemented Interfaces:
ArchitectureEventConstants, IComponent, ScaffoldConstants

public class RightComponent
extends Component


Field Summary
 int count
           
 
Fields inherited from class Prism.framework.Brick
bottomId, myId, name, scaffold, sideId, topId
 
Fields inherited from interface Prism.framework.ArchitectureEventConstants
NOTIF_BEING_HDLD, NOTIF_HDLD, NOTIF_RECD, NOTIF_SENT, PEER_BEING_HDLD, PEER_HDLD, PEER_RECD, PEER_SENT, REQ_BEING_HDLD, REQ_HDLD, REQ_RECD, REQ_SENT
 
Fields inherited from interface Prism.framework.ScaffoldConstants
DISPATCH, MONITOR, SCHEDULER
 
Constructor Summary
RightComponent(java.lang.String name)
           
 
Method Summary
 void handle(Peer r)
          Handling of Peer messages.
 void start()
          By default a brick does not do anything.
 
Methods inherited from class Prism.framework.Component
getBottom, getSide, getTop, handle, handle, handle, hasBottom, hasSide, hasTop, send, send, send, setBottom, setBottomFree, setSide, setSideFree, setTop, setTopFree, toString
 
Methods inherited from class Prism.framework.Brick
add, fireEvent, getBottomId, getSideId, getTopId, setBottomId, setName, setNameAfterTheFact, setScaffold, setSideId, setTopId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

count

public int count
Constructor Detail

RightComponent

public RightComponent(java.lang.String name)
Method Detail

start

public void start()
Description copied from class: Brick
By default a brick does not do anything. The start method is called to activate this brick
Overrides:
start in class Brick

handle

public void handle(Peer r)
Description copied from class: Component
Handling of Peer messages. This is application specific code and should be implemented by subclasses of this class
Overrides:
handle in class Component
Following copied from class: Prism.framework.Component
Parameters:
p - Peer message to be handled