Class GlobalFunc

java.lang.Object
  |
  +--Process
        |
        +--GlobalFunc
All Implemented Interfaces:
GlobalService, MsgHandler

public class GlobalFunc
extends Process
implements GlobalService


Constructor Summary
GlobalFunc(Linker initComm, boolean isRoot)
           
 
Method Summary
 int computeGlobal()
           
 void handleMsg(Msg m, int src, java.lang.String tag)
           
 void initialize(int myValue, FuncUser prog)
           
 
Methods inherited from class Process
broadcastMsg, isNeighbor, myWait, receiveMsg, sendMsg, sendMsg, sendMsg, sendMsg, sendToNeighbors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface MsgHandler
receiveMsg
 

Constructor Detail

GlobalFunc

public GlobalFunc(Linker initComm,
                  boolean isRoot)
Method Detail

initialize

public void initialize(int myValue,
                       FuncUser prog)
Specified by:
initialize in interface GlobalService

computeGlobal

public int computeGlobal()
Specified by:
computeGlobal in interface GlobalService

handleMsg

public void handleMsg(Msg m,
                      int src,
                      java.lang.String tag)
Specified by:
handleMsg in interface MsgHandler
Overrides:
handleMsg in class Process