(double lowestRate, Phase.Arrival arrival)
| 381 | } |
| 382 | |
| 383 | private long getInterval(double lowestRate, Phase.Arrival arrival) { |
| 384 | // TODO Auto-generated method stub |
| 385 | if (arrival == Phase.Arrival.POISSON) { |
| 386 | return (long) ((-Math.log(1 - Math.random()) / lowestRate) * 1000000000.); |
| 387 | } else { |
| 388 | return (long) (1000000000. / lowestRate + 0.5); |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | @Override |
| 393 | public void uncaughtException(Thread t, Throwable e) { |
no test coverage detected