Module: cellphone

Table of Contents

Module: cellphone | simpy1_4_2\SimPyModels\cellphone.py
--- | ---
Simulate the operation of a BCC cellphone system using SimPy The objective is to determine the statistics of busy periods in the operation of a BCC cellphone system. No external arguments are used; all data is set up in the script itself. The data to be set up and appropriate values are listed: NChannels The number of channels used (4) gSeed - RV seed for the call arrival generator (11111111) JrvSeed RV seed for the call length ( 3333333) lam - call arrival rate (calls per time-unit) (1.0) time unit assumed to be, say, a minute mu - service rate = 1/(mean servvice time) per time unit. This must be less than lam (0.6667) Nhours length of the simulation in periods ( 10) interv - period: interval to gather statistics (60.0 time units) gap - gap left after a period when no statistics are gathered. This is to reduce autocorrelation between periods (15.0) Output, to the system is 1. a list of the basic inputs: lambda mu s Nhours interv gap 2. a sequnce of Nhours pairs: the mean busy time in the period the total number of busy times 3. a summary giving the overall: Busy time mean variance Busy number mean variance.
Imported modules |
--- | ---
from SimPy.Simulation import * from __future__ import generators from random import Random, expovariate
Classes |
Generator | generates a sequence of calls
Job | instances of the Job class represent calls arriving at
Statistician | observes the system at intervals

Table of Contents

This document was automatically generated on Sat May 22 12:08:33 2004 by HappyDoc version 2.1