diff --git a/src/logic/formulae.cpp b/src/logic/formulae.cpp index ac469ca..1257126 100644 --- a/src/logic/formulae.cpp +++ b/src/logic/formulae.cpp @@ -23,6 +23,7 @@ void define_formulae(py::module& m) { // Path Formulae py::class_> pathFormula(m, "PathFormula", "Formula about the probability of a set of paths in an automaton", formula); py::class_> unaryPathFormula(m, "UnaryPathFormula", "Path formula with one operand", pathFormula); + unaryPathFormula.def_property_readonly("subformula", &storm::logic::UnaryPathFormula::getSubformula, "the subformula"); py::class_>(m, "EventuallyFormula", "Formula for eventually", unaryPathFormula); py::class_>(m, "GloballyFormula", "Formula for globally", unaryPathFormula); py::class_> binaryPathFormula(m, "BinaryPathFormula", "Path formula with two operands", pathFormula); @@ -44,6 +45,7 @@ void define_formulae(py::module& m) { py::class_>(m, "AtomicLabelFormula", "Formula with an atomic label", stateFormula); py::class_>(m, "BooleanLiteralFormula", "Formula with a boolean literal", stateFormula); py::class_> unaryStateFormula(m, "UnaryStateFormula", "State formula with one operand", stateFormula); + unaryStateFormula.def_property_readonly("subformula", &storm::logic::UnaryStateFormula::getSubformula, "the subformula"); py::class_>(m, "UnaryBooleanStateFormula", "Unary boolean state formula", unaryStateFormula); py::class_> operatorFormula(m, "OperatorFormula", "Operator formula",unaryStateFormula); operatorFormula.def_property_readonly("has_bound", &storm::logic::OperatorFormula::hasBound, "Flag if formula is bounded")