|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbamboo.dht.fssim.Simulator
public class Simulator
| Nested Class Summary | |
|---|---|
static interface |
Simulator.EventCb
|
| Field Summary | |
|---|---|
static Simulator |
instance
|
protected long |
now_ms
|
protected PriorityQueue |
pq
|
| Constructor Summary | |
|---|---|
Simulator()
|
|
| Method Summary | |
|---|---|
void |
main_loop()
|
long |
now_ms()
|
static double |
random_exponential(double mean,
Random rand)
|
void |
register_event(long delay_ms,
Simulator.EventCb cb,
Object user_data)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Simulator instance
protected PriorityQueue pq
protected long now_ms
| Constructor Detail |
|---|
public Simulator()
| Method Detail |
|---|
public static double random_exponential(double mean,
Random rand)
public void register_event(long delay_ms,
Simulator.EventCb cb,
Object user_data)
public long now_ms()
public void main_loop()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||