private class StochasticSimulator.ThetaQueue extends Object
Modifier and Type | Field and Description |
---|---|
private double |
nextThetaEventTime |
private com.google.common.collect.Table<Double,Observer,Collection<Object>> |
thetas |
Constructor and Description |
---|
ThetaQueue()
Construct an empty theta queue.
|
Modifier and Type | Method and Description |
---|---|
Map<Observer,Collection<Object>> |
getNextEventDataAndRemove()
Get the next observer and the collection of events they are subscribed to and remove it from the theta queue.
|
void |
pushTheta(double time,
Observer obs,
Object theta)
Add a new theta event to the registry, including the time, collection of observers and collection of events.
|
private final com.google.common.collect.Table<Double,Observer,Collection<Object>> thetas
private double nextThetaEventTime
public void pushTheta(double time, Observer obs, Object theta)
time
- the time the theta event occurs.obs
- the observers.theta
- the theta event.public Map<Observer,Collection<Object>> getNextEventDataAndRemove()
Copyright © 2015 University of Glasgow. All rights reserved.