File: SimPy_Tutorials.rst

package info (click to toggle)
python-simpy 2.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 11,868 kB
  • ctags: 2,403
  • sloc: python: 11,172; makefile: 145
file content (28 lines) | stat: -rw-r--r-- 998 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
===============
SimPy Tutorials
===============

There are two styles of modelling using SimPy. The first, which we
call the Classical style, uses user-defined Process objects each
representing an active entity of the simulation.  The simulation is
started by creating one or more entities, activating their Process
Execution Methods and then, in a main block of the program, calling
the ``simulate()`` function to start the simulation. This simpler
style seems to be more acceptable to many users.

In the second style, referred to as the OO Style, a user-defined
object of a Simulation class is created and executed. This object
executes the whole simulation. This is particularly suitable for
running replications of the simulation and the execution of a
simulation object is independent of others.

.. toctree::
   :maxdepth: 1

   Tutorials/TheBank
   Tutorials/TheBank2
   Tutorials/OO_Approach
   Tutorials/TheBankOO
   Tutorials/TheBank2OO
   OnLineSimPyCourse