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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pysysq-0.0.4-py3-none-any.whl (46.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysysq-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 46.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 95e6998c5f1ef2c5fcd649aacf178c4cd829a724331f8f90aa89f07400b7149c
MD5 2fd93174f8cb79a852e7cf145a92b210
BLAKE2b-256 e6c5778e211f567f5e650457bf10f8ecfeb62b26a6d74af31b225296dc61e583

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