Class wb.WriteClient
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class wb.WriteClient

java.lang.Object
   |
   +----wb.WriteClient

public class WriteClient
extends Object
implements Runnable, GTypes
WriteClient writes GraphUnits to all the valid participants iteratively It uses class Sync to take care of the producer/consumer problem of object generation by the WBCanvas (user Interaction) and transmitting these.

Constructor Index

 o WriteClient(Participants)
Creates a instance of the writer.

Method Index

 o Add(GraphUnit)
Add provides an interface to accept the data to transmitted.
 o destroy()
Destroyer of this thread.
 o join()
Interface support to join with other threads.
 o run()
Does the work of picking items from the Sync "sendthese", one at a time go thru' the list of valid participants, pick the appropriate stream, send the item type and then call the packetize of the GraphUnit.
 o start()
Start the current thread.
 o stop()
Start the current thread.

Constructors

 o WriteClient
  public WriteClient(Participants arg)
Creates a instance of the writer. Infact, there is only one per session
Parameters:
arg - the participants.

Methods

 o destroy
  public void destroy()
Destroyer of this thread. Should include clean up stuff for now does nothing
 o start
  public void start()
Start the current thread.
 o stop
  public void stop()
Start the current thread.
 o join
  public final void join() throws InterruptedException
Interface support to join with other threads.
 o run
  public void run()
Does the work of picking items from the Sync "sendthese", one at a time go thru' the list of valid participants, pick the appropriate stream, send the item type and then call the packetize of the GraphUnit. NOTE: should take of incomplete transmissions/retransmission.
See Also:
packetize
 o Add
  public void Add(GraphUnit arg)
Add provides an interface to accept the data to transmitted. It ``puts'' the GraphUnit in the instance "sendthese" of Class Sync called by the WBCanvas.
Parameters:
arg - the GraphUnit to be transported

All Packages  Class Hierarchy  This Package  Previous  Next  Index