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.

27 lines
828 B

  1. import stormpy
  2. import stormpy.core
  3. import stormpy.examples
  4. import stormpy.examples.files
  5. def example_building_models_01():
  6. path = stormpy.examples.files.drn_ctmc_dft
  7. model = stormpy.build_model_from_drn(path)
  8. print(model.model_type)
  9. print("Number of states: {}".format(model.nr_states))
  10. # And the parametric
  11. path = stormpy.examples.files.drn_pdtmc_die
  12. model = stormpy.build_parametric_model_from_drn(path)
  13. print(model.model_type)
  14. print("Number of states: {}".format(model.nr_states))
  15. path = stormpy.examples.files.jani_dtmc_die
  16. jani_program, properties = stormpy.parse_jani_model(path)
  17. model = stormpy.build_model(jani_program)
  18. print(model.model_type)
  19. print("Number of states: {}".format(model.nr_states))
  20. if __name__ == '__main__':
  21. example_building_models_01()