bank11: Simulate customers arriving
at random, using a Source, requesting service
from two counters each with their own queue
random servicetime.
Uses a Monitor object to record waiting times
Imported modules
|
|
from SimPy.Simulation import *
from __future__ import generators
from random import Random
|
Functions
|
|
NoInSystem
model
|
|
NoInSystem
|
NoInSystem ( R )
The number of customers in the resource R
in waitQ and active Q
|
|
model
|
model ( counterseed=393939 )
|
Classes
|
|
Customer |
Customer arrives, is served and leaves
|
Source |
Source generates customers randomly
|
|
|