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).
Compute PI by evaluating the integral(4/(1+x*x)dx) from 0 to 1, which
can be approximated by the discrete sum(4 / ((1+(k-1/2)**2))(1/N)) from
k=1 to N.
This class can be used as replacement for the SpaceAccessor class used
in the book:
JavaSpaces(tm) Principles, Patterns and Practice"
by Freeman, Hupfer, Arnold
I took the liberty to refactor Luba Powell's SpaceWrapper class and this
is the result.
This Exceptions will be thrown if the SpaceAccessor can't find a JavaSpace within IMHO reasonable amount of time.
The default timeout value is 10 seconds.