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.

65 lines
2.4 KiB

2 months ago
  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. prism_ma_simple = _path("ma", "simple.ma")
  18. """Prism file for a simple Markov automaton"""
  19. drn_ctmc_dft = _path("ctmc", "dft.drn")
  20. """DRN format for a CTMC from a DFT"""
  21. drn_pdtmc_die = _path("pdtmc", "die.drn")
  22. """DRN format for a pDTMC for the KY-Die"""
  23. jani_dtmc_die = _path("dtmc", "die.jani")
  24. """Jani Version of Knuth Yao Die Example"""
  25. prism_pdtmc_brp = _path("pdtmc", "brp16_2.pm")
  26. """Bounded retransmission protocol with parameters"""
  27. prism_mdp_coin_2_2 = _path("mdp", "coin2-2.nm")
  28. """Prism example for coin MDP"""
  29. prism_pmdp_coin_two_dice = _path("pmdp", "two_dice.nm")
  30. """Prism example for parametric two dice"""
  31. prism_mdp_maze = _path("mdp", "maze_2.nm")
  32. """Prism example for the maze MDP"""
  33. drn_pomdp_maze = _path("pomdp", "maze.drn")
  34. """DRN example for the maze POMDP"""
  35. prism_pomdp_maze = _path("pomdp", "maze_2.prism")
  36. """Prism example for the maze POMDP"""
  37. prism_par_pomdp_maze = _path("pomdp", "maze_2_par.prism")
  38. """Prism example for the parametric POMDP"""
  39. dft_galileo_hecs = _path("dft", "hecs.dft")
  40. """DFT example for HECS (Galileo format)"""
  41. dft_json_and = _path("dft", "and.json")
  42. """DFT example for AND gate (JSON format)"""
  43. gspn_pnpro_simple = _path("gspn", "gspn_simple.pnpro")
  44. """GSPN example (PNPRO format)"""
  45. gspn_pnml_simple = _path("gspn", "gspn_simple.pnml")
  46. """GSPN example (PNML format)"""
  47. """Shield Example 1"""
  48. prism_mdp_lava_simple = _path("mdp", "simple.prism")
  49. prism_mdp_cliff_walking = _path("mdp", "CliffZigZag.prism")
  50. """Optimal Shield Example 1"""
  51. prism_smg_lights = _path("smg", "lights.prism")
  52. """Optimal Shield Example 2"""
  53. prism_smg_robot = _path("smg", "robotics_planning.prism")
  54. """Optimal Controller Example"""
  55. prism_smg_controller = _path("smg", "robot_controller.prism")
  56. """Safety Shield Synthesis"""
  57. prism_smg_shield_synth = _path("smg", "safety_shield_robot.prism")