You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
928 B

  1. import os
  2. testfile_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "files")
  3. def _path(folder, file):
  4. """
  5. Internal method for simpler listing of examples.
  6. :param folder: Folder.
  7. :param file: Example file.
  8. :return: Complete path to example file.
  9. """
  10. return os.path.join(testfile_dir, folder, file)
  11. prism_dtmc_die = _path("dtmc", "die.pm")
  12. """Knuth Yao Die Example"""
  13. prism_pdtmc_die = _path("pdtmc", "parametric_die.pm")
  14. """Knuth Yao Die -- 2 unfair coins Example"""
  15. prism_dtmc_brp = _path("dtmc", "brp-16-2.pm")
  16. """Bounded Retransmission Protocol"""
  17. drn_ctmc_dft = _path("ctmc", "dft.drn")
  18. """DRN format for a CTMC from a DFT"""
  19. drn_pdtmc_die = _path("pdtmc", "die.drn")
  20. """DRN format for a pDTMC for the KY-Die"""
  21. jani_dtmc_die = _path("dtmc", "die.jani")
  22. """Jani Version of Knuth Yao Die Example"""
  23. prism_mdp_coin_2_2 = _path("mdp", "coin2-2.nm")
  24. """Prism example for coin MDP"""