diff --git a/src/python/storm-core.cpp b/src/python/storm-core.cpp index be512bf22..bcdd4c994 100644 --- a/src/python/storm-core.cpp +++ b/src/python/storm-core.cpp @@ -1,16 +1,37 @@ - #include +#include #include "../utility/storm.h" +#include "../logic/Formulas.h" + +namespace boost { + template T* get_pointer(std::shared_ptr p) { return p.get(); } +} BOOST_PYTHON_MODULE(_core) { using namespace boost::python; def("setUp", storm::utility::setUp); + 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_("Program") .def("getNumberOfModules", &storm::prism::Program::getNumberOfModules) ; - + + + + def("parseFormulae", storm::parseFormulasForProgram); def("parseProgram", storm::parseProgram); + + def("buildAndCheck", storm::buildAndCheckSymbolicModel); + + } \ No newline at end of file