Table of Contents

Module: Machineshop simpy-1.3\SimPyTests\Machineshop.py

Machineshop Model

An example showing inrterrupts and priority queuing.

Scenario: A workshop has n identical machines. A stream of jobs (enough to keep the machines busy) arrives. Each machine breaks down periodically. Repairs are carried out by one repairman. The repairman has other, less important tasks to perform, too. Once he starts one of those, he completes it before starting with the machine repair. The workshop works continously.

Imported modules   
from SimPy.Simulation import *
from __future__ import generators
import random
Functions   
timePerPart
timeToFailure
  timePerPart 
timePerPart ()

  timeToFailure 
timeToFailure ()

Classes   

Breakdown

Machine

OtherJobs


Table of Contents

This document was automatically generated on Sun Jun 22 11:12:00 2003 by HappyDoc version 2.1