Skip to main content

Discrete event simulation toolkit based on greenlets

Project description

greensim: discrete event simulation toolkit

CircleCI

This is a set of simple tools for modeling and running simulations of discrete event systems. It is based on the implementation of each independant part of the system that generates events into a function: these are the simulation's processes. They are then add()ed to a Simulator object, which coordinates the timeline over which processes execute. Such functions indicate what happens at various moments within this process, and using functions advance() and pause() (valid only in context of process routines) to forward the simulation to the next moment.

With processes duly added to the Simulator object, the simulation is launched by calling its method run(). The simulation stops, thereby returning from run(), when the simulator runs out of events, or if one of the processes invokes function stop(). The simulation can be resumed by calling method run() over again, and so on.

Take a look at the files in examples subdirectory to get a concrete understanding.

Reference documentation for classes and tools is available as docstrings.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

greensim-2.2.2.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

greensim-2.2.2-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file greensim-2.2.2.tar.gz.

File metadata

  • Download URL: greensim-2.2.2.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for greensim-2.2.2.tar.gz
Algorithm Hash digest
SHA256 da7d4f8b11552dda76002e0e9e7c04a1fe6ca273da52e4acefa30e5d996e1889
MD5 17593b0a1a3e9cbde4aa01c2db3308ab
BLAKE2b-256 3c7f6c73c4c9bdb6d818ae9fb13e4a755d944c8539ad72ead790e3c0836bb728

See more details on using hashes here.

File details

Details for the file greensim-2.2.2-py3-none-any.whl.

File metadata

  • Download URL: greensim-2.2.2-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for greensim-2.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8aaf237273bd846531bcb4e87a6d740f07a316ec7a1b761d982c12749958a360
MD5 f92260f0ece457333fee6edc80ff48a7
BLAKE2b-256 ca17597971da4e7898b9f5cbc61d2de6af8f96606c447d011f607ef916f0ba8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page