shield_specification=stormpy.logic.ShieldExpression(stormpy.logic.ShieldingType.PRE_SAFETY,stormpy.logic.ShieldComparison.RELATIVE,0.9)#TODO Parameter for shield expression would be nice to have
@ -119,9 +119,9 @@ void define_build(py::module& m) {
m.def("_build_sparse_parametric_model_from_drn",&storm::api::buildExplicitDRNModel<storm::RationalFunction>,"Build the parametric model from DRN",py::arg("file"),py::arg("options")=storm::parser::DirectEncodingParserOptions());
m.def("build_sparse_model_from_explicit",&storm::api::buildExplicitModel<double>,"Build the model model from explicit input",py::arg("transition_file"),py::arg("labeling_file"),py::arg("state_reward_file")="",py::arg("transition_reward_file")="",py::arg("choice_labeling_file")="");
m.def("make_sparse_model_builder",&storm::api::makeExplicitModelBuilder<double>,"Construct a builder instance",py::arg("model_description"),py::arg("options"),py::arg("action_mask"));
m.def("make_sparse_model_builder_exact",&storm::api::makeExplicitModelBuilder<storm::RationalNumber>,"Construct a builder instance",py::arg("model_description"),py::arg("options"),py::arg("action_mask"));
m.def("make_sparse_model_builder_parametric",&storm::api::makeExplicitModelBuilder<double>,"Construct a builder instance",py::arg("model_description"),py::arg("options"),py::arg("action_mask"));
m.def("make_sparse_model_builder",&storm::api::makeExplicitModelBuilder<double>,"Construct a builder instance",py::arg("model_description"),py::arg("options"),py::arg("action_mask")=nullptr);
m.def("make_sparse_model_builder_exact",&storm::api::makeExplicitModelBuilder<storm::RationalNumber>,"Construct a builder instance",py::arg("model_description"),py::arg("options"),py::arg("action_mask")=nullptr);
m.def("make_sparse_model_builder_parametric",&storm::api::makeExplicitModelBuilder<storm::RationalFunction>,"Construct a builder instance",py::arg("model_description"),py::arg("options"),py::arg("action_mask")=nullptr);
py::class_<storm::builder::ExplicitModelBuilder<double>>(m,"ExplicitModelBuilder","Model builder for sparse models")
.def("build",&storm::builder::ExplicitModelBuilder<double>::build,"Build the model")
@ -150,6 +150,9 @@ void define_build(py::module& m) {
.def("set_build_choice_labels",&storm::builder::BuilderOptions::setBuildChoiceLabels,"Build with choice labels",py::arg("new_value")=true)
.def("set_build_all_labels",&storm::builder::BuilderOptions::setBuildAllLabels,"Build with all state labels",py::arg("new_value")=true)
.def("set_build_all_reward_models",&storm::builder::BuilderOptions::setBuildAllRewardModels,"Build with all reward models",py::arg("new_value")=true);
@ -27,7 +27,7 @@ void define_analysis(py::module& m) {
.def("is_relevant",&storm::utility::RelevantEvents::isRelevant,"Check whether the given name is a relevant event",py::arg("name"))
;
m.def("analyze_dft",&analyzeDFT<double>,"Analyze the DFT",py::arg("dft"),py::arg("properties"),py::arg("symred")=true,py::arg("allow_modularisation")=false,py::arg("relevant_events")=storm::utility::RelevantEvents());
m.def("analyze_dft",&analyzeDFT<double>,"Analyze the DFT",py::arg("dft"),py::arg("properties"),py::arg("symred")=true,py::arg("allow_modularisation")=false,py::arg("relevant_events")=storm::utility::RelevantEvents(),py::arg("allow_dc_for_relevant")=false);
m.def("transform_dft",&storm::api::applyTransformations<double>,"Apply transformations on DFT",py::arg("dft"),py::arg("unique_constant_be"),py::arg("binary_fdeps"));
@ -35,5 +35,5 @@ void define_analysis(py::module& m) {
m.def("is_well_formed",&storm::api::isWellFormed<double>,"Check whether DFT is well-formed.",py::arg("dft"),py::arg("check_valid_for_analysis")=true);
m.def("compute_relevant_events",&storm::api::computeRelevantEvents<double>,"Compute relevant event ids from properties and additional relevant names",py::arg("dft"),py::arg("properties"),py::arg("additional_relevant_names")=std::vector<std::string>(),py::arg("allow_dc_relevant")=false);
m.def("compute_relevant_events",&storm::api::computeRelevantEvents<double>,"Compute relevant event ids from properties and additional relevant names",py::arg("dft"),py::arg("properties"),py::arg("additional_relevant_names")=std::vector<std::string>());