Browse Source

access to is prop operator, is reward operator in formulae

refactoring
Sebastian Junges 6 years ago
parent
commit
f08df44acf
  1. 3
      src/logic/formulae.cpp

3
src/logic/formulae.cpp

@ -18,6 +18,9 @@ void define_formulae(py::module& m) {
formula.def("__str__", &storm::logic::Formula::toString)
.def("clone", [](storm::logic::Formula const& f) { storm::logic::CloneVisitor cv; return cv.clone(f);})
.def("substitute_labels_by_labels", [](storm::logic::Formula const& f, std::map<std::string, std::string> const& labelSubs) {storm::logic::LabelSubstitutionVisitor lsv(labelSubs); return lsv.substitute(f);}, "substitute label occurences", py::arg("replacements"))
.def_property_readonly("is_probability_operator", &storm::logic::Formula::isProbabilityOperatorFormula, "is it a probability operator")
.def_property_readonly("is_reward_operator", &storm::logic::Formula::isRewardOperatorFormula, "is it a reward operator")
;
// Path Formulae

Loading…
Cancel
Save