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 Simulator and Process 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.0.1.tar.gz (13.0 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.0.1-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: greensim-2.0.1.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for greensim-2.0.1.tar.gz
Algorithm Hash digest
SHA256 1d8c6b71f0e83f77a29d187b8caa0a09000d340c91a9caeede79cd1630c25f98
MD5 8c137b0123abc79d6db28c2cce4f0305
BLAKE2b-256 4a7d19a79029ae515bc531efca6d3553dd9ee4f470f8896a7433208dbbfe2cdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for greensim-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7380ef1fe66ecb67a8b40165ae0d0dc1f63f88d5c60e5e7bcb48104d5fc766b2
MD5 0942e559670f97e75afc375dd638219f
BLAKE2b-256 43cf65c2849665cb11052097087c17b6fab8c1e0789eed40ea7403785782f615

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