From 3e9f095cd4b3d1ccf86657d66c824ac5b16ad195 Mon Sep 17 00:00:00 2001 From: sjunges Date: Mon, 7 Sep 2015 18:08:13 +0200 Subject: [PATCH] new version of storm-core python api Former-commit-id: c37fff4f27c87050ae201d1fd1100fcd8ebb3fbe --- src/python/storm-core.cpp | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) 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