
| Modifier and Type | Field and Description |
|---|---|
private int |
numSimulations |
private ArrayBlockingQueue<MonteCarloResults> |
queue |
private MonteCarloScenario |
simulation |
| Constructor and Description |
|---|
Producer(ArrayBlockingQueue<MonteCarloResults> queue,
MonteCarloScenario simulation,
int numSimulations)
Create the producer object.
|
private final ArrayBlockingQueue<MonteCarloResults> queue
private MonteCarloScenario simulation
private final int numSimulations
public Producer(ArrayBlockingQueue<MonteCarloResults> queue, MonteCarloScenario simulation, int numSimulations)
queue - the queue on which the producers results are added.simulation - the model that will be run to produce results.numSimulations - the number of simulations that are to be run and placed in the quque.Copyright © 2015 University of Glasgow. All rights reserved.