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.
-
WriteClient(Participants)
- Creates a instance of the writer.
-
Add(GraphUnit)
- Add provides an interface to accept the data to transmitted.
-
destroy()
- Destroyer of this thread.
-
join()
- Interface support to join with other threads.
-
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.
-
start()
- Start the current thread.
-
stop()
- Start the current thread.
WriteClient
public WriteClient(Participants arg)
- Creates a instance of the writer. Infact, there is only one per session
- Parameters:
- arg - the participants.
destroy
public void destroy()
- Destroyer of this thread. Should include clean up stuff
for now does nothing
start
public void start()
- Start the current thread.
stop
public void stop()
- Start the current thread.
join
public final void join() throws InterruptedException
- Interface support to join with other threads.
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
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