Skip to main content

A system functional flow simulation framework using Queuing Theory

Project description

PySysQ

PySysQ is a python package helping to implement discrete event simulations based on queueing theory. The package provides the following elements to create a simulation

Simulation Elements

1. SQSimulator

SQSimulator composes all the simulation elements and creates relationship between them. SQSimulator runs the simulation event loop.Each loop is counted as a single simulation time tick.

Properties

  • max_sim_time: Maximum number of loops the simulator will run.
  • time_step: the delay in seconds between two simulation loops.

2. SQClock

SQClock is a simulation object that ticks at specific interval on the simulation loops. Other Simulation Objects can make use of the SQClock object to generate self clock timing. The Simulation objects using the same clock object as their clock source will be operating in a synchronous manner.

Properties

  • clk_divider: the delay in seconds between two clock ticks with respect to the simulation loops.

3. SQPacketGenerator

SQPacketGenerator is a simulation object that generates packets at specific interval on the simulation loops.

Properties

  • clk: clock for timing packet generation.
  • output_q: the queue to which the generated packets will be pushed.
  • helper: the helper class is an object of SQPktGenHelper class.
    • SQPktGenHelper
    • The SQPktGenHelper class is a helper class for SQPacketGenerator. The class provides the following methods to help the packet generation process.
      • generate_pkts(): generates packets and keeps own pushing one packet per clock tick to output queue.

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

pysysq-0.0.2.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

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

pysysq-0.0.2-py3-none-any.whl (45.5 kB view details)

Uploaded Python 3

File details

Details for the file pysysq-0.0.2.tar.gz.

File metadata

  • Download URL: pysysq-0.0.2.tar.gz
  • Upload date:
  • Size: 33.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for pysysq-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1635f700f341c89ea55828872fc543a8e95299bcb51b5df9aff495e6999a9b54
MD5 4906edc6cc1c7b381d0c01bd3cdc4d1e
BLAKE2b-256 6e9e66c9690d289755c492cd2e87f2cbdeb1f640b39375e781b611581b30ea6a

See more details on using hashes here.

File details

Details for the file pysysq-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pysysq-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 45.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for pysysq-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2065db619dbfd61070c83ee940d2e06c770fe9dbbdf73dc34b6bf583e954a39e
MD5 7c0a73594b81b06fcc1615432ba01fd4
BLAKE2b-256 4b700e89ac34abd6a3faac29487a4fd687ab1a424ff02661715fabe664799699

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