Modifier and Type | Field and Description |
---|---|
private MonteCarloResults |
joinedResults |
private int |
numSimulationsFound |
private ArrayBlockingQueue<MonteCarloResults> |
queue |
Constructor and Description |
---|
Consumer(ArrayBlockingQueue<MonteCarloResults> queue,
MonteCarloResults joinedResults)
Create the consumer object.
|
private final ArrayBlockingQueue<MonteCarloResults> queue
private MonteCarloResults joinedResults
private int numSimulationsFound
public Consumer(ArrayBlockingQueue<MonteCarloResults> queue, MonteCarloResults joinedResults)
queue
- the queue that the consumer should check for values to consume.joinedResults
- the MonteCarloResults object to which the consumed results will be added.Copyright © 2015 University of Glasgow. All rights reserved.