Class Heat

java.lang.Object
  |
  +--Task
        |
        +--Heat
All Implemented Interfaces:
net.jini.core.entry.Entry, java.io.Serializable

public class Heat
extends Task

1 W Point Source Heating in Infinite Isotropic Scattering Medium Because of random number patterns the results of P distinct Workers executing N/P photons will in general be different from 1 Worker executing N photons (in fact, to ensure that each Worker does not return precisely the same result as all the others we seed the generator with the current system time). This isn't important for our experiments, though, because the quantity of work is the same in both cases, and we're much more concerned with the overall speedup than with precise results. Code that is less experimental in nature would clearly need to consider both.

Author:
Michael S. Noble (mnoble@cfa.harvard.edu) Copyright (c) 2000 (Based upon Tiny Monte Carlo by Scott Prahl, http://omlc.ogi.edu) This code may only be used under the terms of GNU General Public License.
See Also:
Serialized Form

Field Summary
 java.lang.String[] args
           
 Heat.Surrogate surrogate
           
 
Fields inherited from class Task
data, done, id, result
 
Constructor Summary
Heat()
           
Heat(int id, java.lang.String[] args)
           
 
Method Summary
 java.lang.Object compute()
           
 java.lang.Object mergeResult(java.lang.Object r)
           
 java.lang.String name()
           
 void reportResult(java.lang.Object result)
           
 
Methods inherited from class Task
execute, finalize, keepData
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

surrogate

public Heat.Surrogate surrogate

args

public java.lang.String[] args
Constructor Detail

Heat

public Heat()

Heat

public Heat(int id,
            java.lang.String[] args)
Method Detail

compute

public java.lang.Object compute()
Overrides:
compute in class Task

name

public java.lang.String name()
Overrides:
name in class Task

mergeResult

public java.lang.Object mergeResult(java.lang.Object r)
Overrides:
mergeResult in class Task

reportResult

public void reportResult(java.lang.Object result)
Overrides:
reportResult in class Task