public class SimulationThread
extends java.lang.Object
implements java.lang.Runnable
Optimizer.getF(Point[], boolean)
makes instances of this class to parallelize the simulations.
This project was carried out at:
and supported byGenOpt Copyright (c) 1998-2021, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
Modifier and Type | Field and Description |
---|---|
protected java.lang.Exception |
exc
The Exception exception
|
protected static java.util.concurrent.atomic.AtomicInteger |
iExc
The number of exceptions that have been accumulated
|
protected java.lang.IllegalAccessException |
illAccExc
The IllegalAccessException exception
|
protected java.lang.NoSuchMethodException |
noSucMetExc
The NoSuchMethodException exception
|
protected Optimizer |
opt
The reference to the GenOpt Optimizer instance
|
protected OptimizerException |
optExc
The OptimizerException exception
|
protected SimulationInputException |
simInpExc
The SimulationInputException exception
|
protected Point |
x
The point to be evaluated
|
Constructor and Description |
---|
SimulationThread(Optimizer optimizer,
Point poi)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Runs the simulation.
|
void |
throwStoredException()
Throws all exceptions that have been catched when running
run . |
protected Point x
protected Optimizer opt
protected static java.util.concurrent.atomic.AtomicInteger iExc
protected SimulationInputException simInpExc
protected OptimizerException optExc
protected java.lang.NoSuchMethodException noSucMetExc
protected java.lang.IllegalAccessException illAccExc
protected java.lang.Exception exc
public void run()
throwStoredException
run
in interface java.lang.Runnable
public void throwStoredException() throws SimulationInputException, OptimizerException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.Exception
run
.SimulationInputException
OptimizerException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.Exception