|
void | simulOneDay () |
|
void | simulateDays (int numDays) |
|
|
static void | main (String[] args) |
|
|
static final double | minute = 1.0 / 60.0 |
|
◆ e10h
Initial value:= new Event() {
public void actions() {
double u = streamTeller.nextDouble();
if (u >= 0.2) nbTellers = 3;
else if (u < 0.05) nbTellers = 1;
else nbTellers = 2;
while (nbWait > 0 && nbBusy < nbTellers) {
nbBusy++; nbWait--;
new Departure().schedule (genServ.nextDouble());
}
wait.update (nbWait);
}
}
◆ e11h
Initial value:= new Event() {
public void actions() {
nextArriv.reschedule ((nextArriv.time() - Sim.time())/2.0);
meanDelay = minute;
}
}
◆ e14h
Initial value:= new Event() {
public void actions() {
nextArriv.reschedule ((nextArriv.time() - Sim.time())*2.0);
meanDelay = 2.0*minute;
}
}
◆ e15h
Initial value:= new Event() {
public void actions() { nextArriv.cancel(); }
}
◆ e9h45
Initial value:= new Event() {
public void actions() {
meanDelay = 2.0*minute;
nextArriv.schedule
(ExponentialGen.nextDouble (streamArr, 1.0/meanDelay));
}
}
The documentation for this class was generated from the following file: