|
@ -26,6 +26,7 @@ namespace boost { namespace python { namespace converter { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::shared_ptr<storm::models::ModelBase> buildModel(storm::prism::Program const& program, std::shared_ptr<storm::logic::Formula> const& formula) { |
|
|
std::shared_ptr<storm::models::ModelBase> buildModel(storm::prism::Program const& program, std::shared_ptr<storm::logic::Formula> const& formula) { |
|
|
|
|
|
storm::settings::SettingsManager::manager().setFromString(""); |
|
|
return storm::buildSymbolicModel<storm::RationalFunction>(program, std::vector<std::shared_ptr<storm::logic::Formula>>(1,formula)).model; |
|
|
return storm::buildSymbolicModel<storm::RationalFunction>(program, std::vector<std::shared_ptr<storm::logic::Formula>>(1,formula)).model; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -45,6 +46,7 @@ BOOST_PYTHON_MODULE(_core) |
|
|
class_<storm::logic::ProbabilityOperatorFormula, std::shared_ptr<storm::logic::ProbabilityOperatorFormula>, bases<storm::logic::Formula>>("ProbabilityOperatorFormula", no_init) |
|
|
class_<storm::logic::ProbabilityOperatorFormula, std::shared_ptr<storm::logic::ProbabilityOperatorFormula>, bases<storm::logic::Formula>>("ProbabilityOperatorFormula", no_init) |
|
|
.def("toString", &storm::logic::ProbabilityOperatorFormula::toString); |
|
|
.def("toString", &storm::logic::ProbabilityOperatorFormula::toString); |
|
|
|
|
|
|
|
|
|
|
|
register_ptr_to_python<std::shared_ptr<storm::logic::Formula>>(); |
|
|
|
|
|
|
|
|
////////////////////////////////////////////
|
|
|
////////////////////////////////////////////
|
|
|
// Program
|
|
|
// Program
|
|
@ -82,7 +84,9 @@ BOOST_PYTHON_MODULE(_core) |
|
|
class_<storm::models::sparse::Model<double>, std::shared_ptr<storm::models::sparse::Model<double>>, boost::noncopyable, bases<storm::models::ModelBase>>("SparseModel", no_init); |
|
|
class_<storm::models::sparse::Model<double>, std::shared_ptr<storm::models::sparse::Model<double>>, boost::noncopyable, bases<storm::models::ModelBase>>("SparseModel", no_init); |
|
|
class_<storm::models::sparse::Dtmc<storm::RationalFunction>, std::shared_ptr<storm::models::sparse::Dtmc<storm::RationalFunction>>, boost::noncopyable, bases<storm::models::ModelBase>>("SparseParamtricMc", no_init); |
|
|
class_<storm::models::sparse::Dtmc<storm::RationalFunction>, std::shared_ptr<storm::models::sparse::Dtmc<storm::RationalFunction>>, boost::noncopyable, bases<storm::models::ModelBase>>("SparseParamtricMc", no_init); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
register_ptr_to_python<std::shared_ptr<storm::models::ModelBase>>(); |
|
|
|
|
|
register_ptr_to_python<std::shared_ptr<storm::models::sparse::Model<storm::RationalFunction>>>(); |
|
|
|
|
|
register_ptr_to_python<std::shared_ptr<storm::models::sparse::Dtmc<storm::RationalFunction>>>(); |
|
|
|
|
|
|
|
|
def("parseFormulae", storm::parseFormulasForProgram); |
|
|
def("parseFormulae", storm::parseFormulasForProgram); |
|
|
def("parseProgram", storm::parseProgram); |
|
|
def("parseProgram", storm::parseProgram); |
|
@ -102,4 +106,4 @@ BOOST_PYTHON_MODULE(_core) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def("performStateElimination", storm::verifySparseModel<storm::RationalFunction>); |
|
|
def("performStateElimination", storm::verifySparseModel<storm::RationalFunction>); |
|
|
} |
|
|
|
|
|
|
|
|
} |