From 13ab5a3635a0e68a7991ec10a4362b7d2960ef77 Mon Sep 17 00:00:00 2001 From: Sebastian Junges Date: Thu, 16 Jul 2020 23:41:08 -0700 Subject: [PATCH] partial instantiators --- src/pars/model_instantiator.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/pars/model_instantiator.cpp b/src/pars/model_instantiator.cpp index 2886fdb..9d14fa8 100644 --- a/src/pars/model_instantiator.cpp +++ b/src/pars/model_instantiator.cpp @@ -49,6 +49,26 @@ void define_model_instantiator(py::module& m) { .def(py::init>(), "parametric model"_a) .def("instantiate", &storm::utility::ModelInstantiator, MarkovAutomaton>::instantiate, "Instantiate model with given parameter values") ; + + py::class_, Dtmc>>(m, "PartialPDtmcInstantiator", "Instantiate PDTMCs to DTMCs") + .def(py::init>(), "parametric model"_a) + .def("instantiate", &storm::utility::ModelInstantiator, Dtmc>::instantiate, "Instantiate model with given parameter values") + ; + + py::class_,Mdp>>(m, "PartialPMdpInstantiator", "Instantiate PMDPs to MDPs") + .def(py::init>(), "parametric model"_a) + .def("instantiate", &storm::utility::ModelInstantiator, Mdp>::instantiate, "Instantiate model with given parameter values") + ; + + py::class_,Ctmc>>(m, "PartialPCtmcInstantiator", "Instantiate PCTMCs to CTMCs") + .def(py::init>(), "parametric model"_a) + .def("instantiate", &storm::utility::ModelInstantiator, Ctmc>::instantiate, "Instantiate model with given parameter values") + ; + + py::class_,MarkovAutomaton>>(m, "PartialPMaInstantiator", "Instantiate PMAs to MAs") + .def(py::init>(), "parametric model"_a) + .def("instantiate", &storm::utility::ModelInstantiator, MarkovAutomaton>::instantiate, "Instantiate model with given parameter values") + ; } void define_model_instantiation_checker(py::module& m) {