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.1.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.1-py3-none-any.whl (45.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysysq-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d8c932f37fc0a1db626528850befbb7524ff5db5a0641c60793d62b4f3f5e587
MD5 0e477dc74abf8187f42ff01ee2b4bc87
BLAKE2b-256 7a5f83534ba87b3beca41fc088e53882654bfb5de084307bf91da82d58f87574

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysysq-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2c2cd9a6b7d8a949fe19e7f7ec8672261093b313397634e59226a0a022ec49d
MD5 237e351e5109a2d85977aa9b6e9b137d
BLAKE2b-256 e71e58af4616a3b9fc0af1c4c205e9a7895087ea8cc3a356009379bd51be074f

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