Skip to main content

Implementation of the Schedule-Abstraction Graph (SAG) in Python.

Project description

Schedule-Abstraction Graph in Python

Schedule-abstraction graph (SAG) is a reachability-based response-time analysis for real-time systems.

This is the unofficial implementation of the SAG in Python. This is still WIP (Work-in-Progress). The implemented SAG follows the following paper:

You can visit the official repository here.

Run example

  1. Clone the repository and run the sagpy.py script on a csv file that contains a set of jobs. A job is a tuple: (name, r_min, r_max, C_min, C_max, p). The SAG for regular JLFP WC schedulers is run by default. Use the --ROS flag to run the SAG for the ROS2 executor with (by default) 2 threads. The algorithm prints to console the best response times and worst response times for the given jobs, and makes a png image with the constructed SAG so you can see exactly the state-transition system.
python3 sag_cli.py examples/input_examples/job_sets/mitra_example.csv --ROS

Output files are by default generated in the ~/USER/.sagpy folder.

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

sagpy-0.0.11.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

sagpy-0.0.11-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file sagpy-0.0.11.tar.gz.

File metadata

  • Download URL: sagpy-0.0.11.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for sagpy-0.0.11.tar.gz
Algorithm Hash digest
SHA256 05582e1652bca770b68fcc0eb087141e47cc36dcfabf13a6a20fdd9720bb5042
MD5 111f12f9c845df8bf86292f37f513031
BLAKE2b-256 7588b4e6bd6490ff69e2a7f47ebb5837b9dd7d89b2fad2aca40535f1543c3da1

See more details on using hashes here.

File details

Details for the file sagpy-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: sagpy-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for sagpy-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 993adb2df0fface0f48bbbadb93ce29a63a7188ae125fafce38b67c7163e6c31
MD5 d4ee2dc708cc64c3e1995dcaa7c536c6
BLAKE2b-256 7c30ce62aeffba839e4b0796b5b84dee7dbcb0533b74e8451eef1c575b41c285

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