public class AccidentGenerator extends java.lang.Object implements EventQueue
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACCIDENT_DELAY_S |
static java.lang.String |
ACCIDENT_NROF_S |
static java.lang.String |
ACCIDENT_PROB_S |
static java.lang.String |
ACCIDENT_SEED_S |
| Constructor and Description |
|---|
AccidentGenerator(Settings s) |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Random |
getRng() |
ExternalEvent |
nextEvent()
Returns the next event in the queue or ExternalEvent with time of
double.MAX_VALUE if there are no events left.
|
double |
nextEventsTime()
Returns next event's time or Double.MAX_VALUE if there are no
events left in the queue.
|
public static final java.lang.String ACCIDENT_PROB_S
public static final java.lang.String ACCIDENT_NROF_S
public static final java.lang.String ACCIDENT_DELAY_S
public static final java.lang.String ACCIDENT_SEED_S
public AccidentGenerator(Settings s)
public ExternalEvent nextEvent()
EventQueuenextEvent in interface EventQueuepublic double nextEventsTime()
EventQueuenextEventsTime in interface EventQueuepublic static java.util.Random getRng()