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.3.tar.gz (32.8 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.3-py3-none-any.whl (45.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysysq-0.0.3.tar.gz
  • Upload date:
  • Size: 32.8 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.3.tar.gz
Algorithm Hash digest
SHA256 e919934a22b658046ac6cc61fedb22e725dc73b0316c45f8022b9ef818930b37
MD5 e2b70d833da8092f78df555ec95b3368
BLAKE2b-256 bc28622a8384746447e6bcde9f06fb0734276500c3e053fe65415db50c066f84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysysq-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 45.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 314cfe8be3efc8244112e0caedfc8fe0d6fc3d9fea022bf658c0620a01c45ac7
MD5 0d544619702f3aa004471e524ee9bac0
BLAKE2b-256 581ec01f03c7ddc442450f5d7969e9131c55355e8977f232175b39dd471a748e

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