Prism.framework
Class Forwarder

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

public class Forwarder
extends Component

The forwarder component. Just forwards the requests and notifications

Version:
1.0 , 10 June 2002
Author:
TDS++ team, USC-CSE

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
Forwarder()
          Default constructor
Forwarder(java.lang.String name)
          Constructor
 
Method Summary
 void handle(Notification n)
          Handling the Notifications
 void handle(Request r)
          Handling the Requests
 
Methods inherited from class Prism.framework.Component
getBottom, getSide, getTop, 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, start
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Forwarder

public Forwarder()
Default constructor

Forwarder

public Forwarder(java.lang.String name)
Constructor
Parameters:
name - Name
Method Detail

handle

public void handle(Request r)
Handling the Requests
Overrides:
handle in class Component
Parameters:
r - Request
Returns:
void

handle

public void handle(Notification n)
Handling the Notifications
Overrides:
handle in class Component
Parameters:
r - Notification
Returns:
void