Class Master

java.lang.Object
  |
  +--Master
Direct Known Subclasses:
ArrayIO, CMapMaster, ComputeMaster, ImagePMaster, NeuralNQ, NullIO, NullReader, NullWriter, Partition2D, Squeegee, StringIO

public abstract class Master
extends java.lang.Object

Base class for master/worker paradigm.

Author:
Michael S. Noble (mnoble@space.mit.edu) Copyright (c) 2000, 2003 This code may only be used under the terms of GNU General Public License.

Field Summary
protected  int arg
           
protected  java.lang.String[] args
           
protected  java.lang.Object metaResult
           
protected  int numIters
           
protected  int numObjs
           
protected  short numTasksProcessed
           
protected  java.lang.Class rClass
           
protected  Reporter reporter
           
protected  java.lang.reflect.Method rMethod
           
protected  net.jini.core.entry.Entry snapshot
           
protected  net.jini.space.JavaSpace space
           
protected  Task task
           
protected  Timer timer
           
 
Constructor Summary
Master()
           
 
Method Summary
protected  void collectTasks()
           
protected  void distributeTasks()
           
protected  double format(double x)
           
protected  Task generateTask()
           
protected  void init()
           
protected  void init(net.jini.core.entry.Entry template)
           
protected  void init(net.jini.core.entry.Entry template, java.lang.String spaceName)
           
protected  java.lang.String name()
           
 void reportResults()
           
protected  void shift()
           
protected  void shift(int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

space

protected net.jini.space.JavaSpace space

task

protected Task task

timer

protected Timer timer

reporter

protected Reporter reporter

snapshot

protected net.jini.core.entry.Entry snapshot

numIters

protected int numIters

numObjs

protected int numObjs

metaResult

protected java.lang.Object metaResult

rClass

protected java.lang.Class rClass

rMethod

protected java.lang.reflect.Method rMethod

numTasksProcessed

protected short numTasksProcessed

args

protected java.lang.String[] args

arg

protected int arg
Constructor Detail

Master

public Master()
Method Detail

init

protected void init()

init

protected void init(net.jini.core.entry.Entry template)

init

protected void init(net.jini.core.entry.Entry template,
                    java.lang.String spaceName)

generateTask

protected Task generateTask()

distributeTasks

protected void distributeTasks()

collectTasks

protected void collectTasks()

reportResults

public void reportResults()

shift

protected void shift(int count)

shift

protected void shift()

name

protected java.lang.String name()

format

protected double format(double x)