dcf.client
Class WorkerGroup

dcf.client.WorkerGroup

public class WorkerGroup

The worker group activates a number of workers on the same client.

Author:
Tal Salmona

Constructor Summary
WorkerGroup(MainPanel parent)
           
 
Method Summary
 void addMessage(dcf.client.String str)
          Adds a message to the MainPanel.
 int getCount()
           
 dcf.client.Vector getWorkers()
           
 void setCount(int k)
          Sets the number of active workers.
 void setStatus(dcf.client.String str)
          Sets the statusbar of the MainPanel.
 void setTitle(dcf.client.String str)
          Sets the title of the MainPanel.
 void startAll()
          Start all workers in group.
 void stopAll()
          Stop all workers in group.
 

Constructor Detail

WorkerGroup

public WorkerGroup(MainPanel parent)
Method Detail

setCount

public void setCount(int k)
Sets the number of active workers.
Parameters:
k - The number of workers.

getCount

public int getCount()
Returns:
The number of active workers.

startAll

public void startAll()
Start all workers in group.

stopAll

public void stopAll()
Stop all workers in group.

getWorkers

public dcf.client.Vector getWorkers()
Returns:
The Vector of active workers.

setStatus

public void setStatus(dcf.client.String str)
Sets the statusbar of the MainPanel.
Parameters:
str - The text to place in statusbar.

setTitle

public void setTitle(dcf.client.String str)
Sets the title of the MainPanel.
Parameters:
str - The title to set in GUI.

addMessage

public void addMessage(dcf.client.String str)
Adds a message to the MainPanel.
Parameters:
str - The message to add in GUI.




Distributed Computation Framework