candy.client
Class Receiver

java.lang.Object
  |
  +--candy.client.Receiver
All Implemented Interfaces:
java.lang.Runnable

public class Receiver
extends java.lang.Object
implements java.lang.Runnable

Class for receiving ChannelPackets (packets from Chats, Meetings, Whiteboards) from the JavaSpace

Author:
Jeremy Mullendore (jeremy@cs.jhu.edu), Jason Corso (jcorso@cs.jhu.edu)

Field Summary
 java.lang.String memberID
          the MemberID of the user running this Receiver
(package private)  net.jini.core.transaction.server.TransactionManager mgr
          a TransactionManager that will insure atomic actions in the JavaSpace
 ClientApp myOwner
          the ClientApp that is running this Receiver
(package private)  net.jini.space.JavaSpace space
          the JavaSpace to receive from
 
Constructor Summary
Receiver(ClientApp client, net.jini.space.JavaSpace space, net.jini.core.transaction.server.TransactionManager m)
          set up the Receiver
 
Method Summary
 void run()
          run the Receiver and grab any new messages from this user's Channel
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

memberID

public java.lang.String memberID
the MemberID of the user running this Receiver

myOwner

public ClientApp myOwner
the ClientApp that is running this Receiver

space

net.jini.space.JavaSpace space
the JavaSpace to receive from

mgr

net.jini.core.transaction.server.TransactionManager mgr
a TransactionManager that will insure atomic actions in the JavaSpace
Constructor Detail

Receiver

public Receiver(ClientApp client,
                net.jini.space.JavaSpace space,
                net.jini.core.transaction.server.TransactionManager m)
set up the Receiver
Method Detail

run

public void run()
run the Receiver and grab any new messages from this user's Channel
Specified by:
run in interface java.lang.Runnable