Browse Source

Renaming to PLAChecker

refactoring
Matthias Volk 8 years ago
parent
commit
70ddde905f
  1. 2
      src/core/pla.cpp
  2. 2
      tests/core/test_pla.py

2
src/core/pla.cpp

@ -16,7 +16,7 @@ storm::modelchecker::parametric::RegionCheckResult checkRegion(std::shared_ptr<P
void define_pla(py::module& m) { void define_pla(py::module& m) {
// PLAChecker // PLAChecker
py::class_<PLAChecker, std::shared_ptr<PLAChecker>>(m, "SparseDtmcRegionModelChecker", "Region model checker for sparse DTMCs")
py::class_<PLAChecker, std::shared_ptr<PLAChecker>>(m, "PLAChecker", "Region model checker for sparse DTMCs")
.def("__init__", [](PLAChecker& instance, std::shared_ptr<storm::models::sparse::Dtmc<storm::RationalFunction>> model) -> void { .def("__init__", [](PLAChecker& instance, std::shared_ptr<storm::models::sparse::Dtmc<storm::RationalFunction>> model) -> void {
new (&instance) PLAChecker(*model); new (&instance) PLAChecker(*model);
}) })

2
tests/core/test_pla.py

@ -13,7 +13,7 @@ class TestModelChecking:
assert model.nr_transitions == 803 assert model.nr_transitions == 803
assert model.model_type == stormpy.ModelType.DTMC assert model.model_type == stormpy.ModelType.DTMC
assert model.has_parameters assert model.has_parameters
checker = stormpy.SparseDtmcRegionModelChecker(model)
checker = stormpy.PLAChecker(model)
checker.specify_formula(formulas[0].raw_formula) checker.specify_formula(formulas[0].raw_formula)
parameters = model.collect_probability_parameters() parameters = model.collect_probability_parameters()
assert len(parameters) == 2 assert len(parameters) == 2

Loading…
Cancel
Save