Table of Contents

Module: jacksonnetwork simpy-1.3\SimPyTests\jacksonnetwork.py
Imported modules   
from SimPy.Monitor import Monitor
from SimPy.Simulation import *
from __future__ import generators
from random import Random, expovariate, uniform
import unittest
Functions   
choose1d
choose2d
choose2dA
sum
  choose1d 
choose1d ( P,  g )

return a random choice from a set j = 0..n-1 with probs held in list P[j] g = random variable call: next = choose1d(P,g)

  choose2d 
choose2d (
        i,
        P,
        g,
        )

return a random choice from a set j = 0..n-1 with probs held in list of lists P[j] (n by n) using row i g = random variable call: next = choose2d(i,P,g)

  choose2dA 
choose2dA (
        i,
        P,
        g,
        )

return a random choice from a set j = 0..n-1 with probs held in list of lists P[j] (n by n) using row i g = random variable call: next = choose2d(i,P,g)

  sum 
sum ( P )

Sum of the real vector P

Classes   

Generator

generates a sequence of msgs

Msg

a message


Table of Contents

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