Class Chat

java.lang.Object
  |
  +--Process
        |
        +--Chat
All Implemented Interfaces:
MsgHandler

public class Chat
extends Process


Constructor Summary
Chat(Linker initComm)
           
 
Method Summary
 IntLinkedList getDest(java.io.BufferedReader din)
           
 java.lang.String getUserInput(java.io.BufferedReader din)
           
 void handleMsg(Msg m, int src, java.lang.String tag)
           
static void main(java.lang.String[] args)
           
 
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
 

Constructor Detail

Chat

public Chat(Linker initComm)
Method Detail

handleMsg

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

getUserInput

public java.lang.String getUserInput(java.io.BufferedReader din)
                              throws java.lang.Exception

getDest

public IntLinkedList getDest(java.io.BufferedReader din)
                      throws java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception