Skip to content
GitLab
Next
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
simpy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
6
Merge Requests
6
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
team-simpy
simpy
Commits
29f1d400
Commit
29f1d400
authored
Nov 19, 2012
by
Stefan Scherfke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various smaller doc fixes and improvements.
parent
2d1458f6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
66 deletions
+57
-66
docs/_templates/index.html
docs/_templates/index.html
+36
-30
docs/_templates/layout.html
docs/_templates/layout.html
+7
-12
docs/contents.rst
docs/contents.rst
+4
-20
docs/index.rst
docs/index.rst
+6
-0
docs/topical_guides/index.rst
docs/topical_guides/index.rst
+2
-2
simpy/util.py
simpy/util.py
+2
-2
No files found.
docs/_templates/index.html
View file @
29f1d400
...
...
@@ -4,8 +4,8 @@
{% block body %}
<h1>
Welcome
</h1>
<div
class=
"floatright
"
>
<div
class=
"highlight-python"
><div
class=
"highlight"
><pre><span
class=
"gp"
>
>>>
</span><span
class=
"kn"
>
import
</span>
<span
class=
"nn"
>
simpy
</span>
<div
style=
"width: 20em; margin: 0 0 .5em 1em; float: right;
"
>
<div
class=
"highlight-python"
><div
class=
"highlight"
><pre
style=
"margin: 0;"
><span
class=
"gp"
>
>>>
</span><span
class=
"kn"
>
import
</span>
<span
class=
"nn"
>
simpy
</span>
<span
class=
"gp"
>
>>>
</span>
<span
class=
"gp"
>
>>>
</span><span
class=
"k"
>
def
</span>
<span
class=
"nf"
>
clock
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
env
</span><span
class=
"p"
>
):
</span>
<span
class=
"gp"
>
...
</span>
<span
class=
"k"
>
while
</span>
<span
class=
"bp"
>
True
</span><span
class=
"p"
>
:
</span>
...
...
@@ -22,45 +22,51 @@
</div>
</div>
<p>
SimPy is a process-based discrete-event simulation framework based on standard
Python and released under the GNU LGPL.
</p>
<p>
SimPy is a process-based discrete-event simulation framework based on
standard Python. It provides the modeller with components of a simulation model
including
<em>
processes
</em>
, for active components like customers, messages,
and vehicles, and
<em>
resources
</em>
, for passive components that form limited
capacity congestion points like servers, checkout counters, and tunnels. It
also provides
<em>
monitor variables
</em>
to aid in gathering statistics. Random
variates are provided by the standard Python *random* module.
</p>
<p>
It provides the modeller with components of a simulation model. These include
processes for active components like customers, messages and vehicles as well
as resources for passive components that form limited capacity congestion
points (like servers, checkout counters and tunnels). It also provides monitor
variables to aid in gathering statistics.
</p>
<p>
It was orignially based on ideas from
<em>
Simula 67
</em>
and
<em>
Simscript
</em>
and provides efficient implementation of co-routines using
Python's generators capability. It requires Python 2.6 or later including
Python 3.x. It was first released in 2002 under the GNU LGPL.
</p>
<p>
The distribution contains in-depth documentation, tutorials, and a large number
of simulation models.
</p>
<p>
Simulation model developers are encouraged to share their SimPy modeling
techniques with the SimPy community. Please post a message to the SimPy-Users
mailing list: http://lists.sourceforge.net/lists/listinfo/simpy-users.
</p>
<p>
Software developers are also encouraged to interface SimPy with other Python-
accessible packages, such as GUI, database or mapping and to share these new
capabilities with the community.
</p>
<h2
style=
"clear: both;"
>
Documentation
</h2>
<table
class=
"contentstable"
align=
"center"
style=
"margin-left: 30px"
>
<tr>
<td
width=
"50%"
>
<p
class=
"biglink"
><a
class=
"biglink"
href=
"{{ pathto("
tutorial
")
}}"
>
SimPy in 10 Minutes
</a><br
/>
<span
class=
"linkdescr"
>
overview of basic tasks
</span></p>
<p
class=
"biglink"
><a
class=
"biglink"
href=
"{{ pathto("
topical_guides
")
}}"
>
Topical Guides
</a><br
/>
<span
class=
"linkdescr"
>
...
</span></p>
<p
class=
"biglink"
><a
class=
"biglink"
href=
"{{ pathto("
contents
")
}}"
>
Contents
</a><br
/>
<span
class=
"linkdescr"
>
for a complete overview
</span></p>
<p
class=
"biglink"
><a
class=
"biglink"
href=
"{{ pathto("
simpy_intro
/
index
")
}}"
>
SimPy in 10 Minutes
</a><br
/>
<span
class=
"linkdescr"
>
learn the basics of SimPy in just a couple of minutes
</span></p>
</td>
<td
width=
"50%"
>
<p
class=
"biglink"
><a
class=
"biglink"
href=
"{{ pathto("
search
")
}}"
>
Examples
</a><br
/>
<span
class=
"linkdescr"
>
search the documentation
</span></p>
<p
class=
"biglink"
><a
class=
"biglink"
href=
"{{ pathto("
api_reference
")
}}"
>
API Reference
</a><br
/>
<p
class=
"biglink"
><a
class=
"biglink"
href=
"{{ pathto("
topical_guides
/
index
")
}}"
>
Topical Guides
</a><br
/>
<span
class=
"linkdescr"
>
guides covering various features of SimPy in-depth
</span></p>
</td>
</tr>
<tr>
<td>
<p
class=
"biglink"
><a
class=
"biglink"
href=
"{{ pathto("
examples
/
index
")
}}"
>
Examples
</a><br
/>
<span
class=
"linkdescr"
>
usage examples for SimPy
</span></p>
</td>
<td>
<p
class=
"biglink"
><a
class=
"biglink"
href=
"{{ pathto("
api_reference
/
index
")
}}"
>
API Reference
</a><br
/>
<span
class=
"linkdescr"
>
detailed description of SimPy’s API
</span></p>
<p
class=
"biglink"
><a
class=
"biglink"
href=
"{{ pathto("
genindex
")
}}"
>
General Index
</a><br
/>
<span
class=
"linkdescr"
>
all functions, classes, terms
</span></p>
</td>
</tr>
<tr>
<td>
<p
class=
"biglink"
><a
class=
"biglink"
href=
"{{ pathto("
contents
")
}}"
>
Contents
</a><br
/>
<span
class=
"linkdescr"
>
for a complete overview
</span></p>
</td>
<td>
<p
class=
"biglink"
><a
class=
"biglink"
href=
"{{ pathto("
about
/
index
")
}}"
>
About
</a><br
/>
<span
class=
"linkdescr"
>
non-technical stuff (history, change logs, …)
</span></p>
</td>
</tr>
</table>
...
...
docs/_templates/layout.html
View file @
29f1d400
...
...
@@ -2,18 +2,13 @@
{% block extrahead %}
{{ super() }}
<style
type=
"text/css"
>
.floatright
{
width
:
20em
;
margin
:
0
0
.5em
1em
;
float
:
right
;
}
.floatright
pre
{
margin
:
0
;
border
:
1px
solid
;
border-radius
:
4px
;
}
</style>
{#
<style
type=
"text/css"
>
#}
{
#
.floatright
pre
{
#
}
{
#
margin
:
0
;
#
}
{
#
border
:
1px
solid
;
#
}
{
#
border-radius
:
4px
;
#
}
{
#
}
#}
{
#
</style>
#}
{% endblock %}
{% block rootrellink %}
...
...
docs/contents.rst
View file @
29f1d400
...
...
@@ -2,35 +2,19 @@
Documentation for SimPy
=======================
SimPy is a process-based discrete-event simulation framework based on
standard Python. It provides the modeller with components of a
simulation model including *processes*, for active components like
customers, messages, and vehicles, and *resources*, for passive
components that form limited capacity congestion points like servers,
checkout counters, and tunnels. It also provides *monitor variables*
to aid in gathering statistics. Random variates are provided by the
standard Python *random* module.
It was orignially based on ideas from *Simula 67* and *Simscript* and provides
efficient implementation of co-routines using Python's generators capability.
It requires Python 2.6 or later including Python 3.x. It was first released in
2002 under the GNU LGPL.
Contents:
.. toctree::
:maxdepth: 2
SimPy home <index>
simpy_intro/index
topical_guides/index
examples/index
api_reference/index
about/index
.. simpy_intro
.. topical_guides
.. examples
.. api_reference
.. about
Indices and tables
==================
...
...
docs/index.rst
0 → 100644
View file @
29f1d400
==========
SimPy home
==========
.. _templates/index.html contains the content for this page.
docs/topical_guides/index.rst
View file @
29f1d400
...
...
@@ -3,8 +3,8 @@ Topical Guides
==============
This sections covers various a
psects of SimPy in more
depth. It assumes that
you have a basic understanding of SimPy's capabilites and that you know what
This sections covers various a
spects of SimPy more in-
depth. It assumes that
you have a basic understanding of SimPy's capabilit
i
es and that you know what
you are looking for.
.. .. toctree::
...
...
simpy/util.py
View file @
29f1d400
...
...
@@ -14,7 +14,7 @@ def start_delayed(env, peg, delay):
"""Return a helper process that starts another PEM after a delay of
``delay``.
:meth:`~simpy.core.
Simulation
.start` starts a PEM at the current
:meth:`~simpy.core.
Environment
.start` starts a PEM at the current
simulation time. This helper allows you to start a PEM after a delay
of ``delay`` simulation time units.
...
...
@@ -30,7 +30,7 @@ def start_delayed(env, peg, delay):
>>> simulate(env)
5, 3
Raises a :
class
:`ValueError` if ``delay <= 0``.
Raises a :
exc
:`ValueError` if ``delay <= 0``.
"""
if
delay
<=
0
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment