diff --git a/src/python/storm-core.cpp b/src/python/storm-core.cpp index bcdd4c994..bca8bf57c 100644 --- a/src/python/storm-core.cpp +++ b/src/python/storm-core.cpp @@ -11,26 +11,46 @@ BOOST_PYTHON_MODULE(_core) { using namespace boost::python; def("setUp", storm::utility::setUp); - + + //////////////////////////////////////////// + // Formula + //////////////////////////////////////////// class_, boost::noncopyable>("Formula", no_init) .def("toString", &storm::logic::Formula::toString); class_>>("FormulaVec") .def(vector_indexing_suite>, true>()) ; + class_, bases>("ProbabilityOperatorFormula", no_init) + .def("toString", &storm::logic::ProbabilityOperatorFormula::toString); - class_, bases>("ProbabilityOperatorFormula", no_init) - .def("toString", &storm::logic::ProbabilityOperatorFormula::toString); + //////////////////////////////////////////// + // Program + //////////////////////////////////////////// + class_("Program") - .def("getNumberOfModules", &storm::prism::Program::getNumberOfModules) + .add_property("nrModules", &storm::prism::Program::getNumberOfModules) ; + //////////////////////////////////////////// + // Checkresult + //////////////////////////////////////////// + class_, boost::noncopyable>("CheckResult", no_init); + + + //////////////////////////////////////////// + // Models + //////////////////////////////////////////// + class_, boost::noncopyable>("ModelBase", no_init) + .add_property("nrStates", &storm::models::ModelBase::getNumberOfStates) + .add_property("nrTransitions", &storm::models::ModelBase::getNumberOfTransitions); + class_, std::shared_ptr>, boost::noncopyable, bases>("SparseModel", no_init); def("parseFormulae", storm::parseFormulasForProgram); def("parseProgram", storm::parseProgram); - def("buildAndCheck", storm::buildAndCheckSymbolicModel); + def("buildModelFromPrismProgram", storm::buildSymbolicModel);