@ -49,11 +49,18 @@ void define_formulae(py::module& m) {
py::class_<storm::logic::UnaryBooleanStateFormula,std::shared_ptr<storm::logic::UnaryBooleanStateFormula>>(m,"UnaryBooleanStateFormula","Unary boolean state formula",unaryStateFormula);
py::class_<storm::logic::UnaryBooleanStateFormula,std::shared_ptr<storm::logic::UnaryBooleanStateFormula>>(m,"UnaryBooleanStateFormula","Unary boolean state formula",unaryStateFormula);
.def_property_readonly("_threshold_as_rational",&storm::logic::OperatorFormula::getThresholdAs<storm::RationalNumber>,"Rational threshold of bound, if applicable")
.def_property_readonly("_threshold_expression_has_rational_type",[](storm::logic::OperatorFormulaconst&f){returnf.getThreshold().hasRationalType();},"Check expression type [without needing a Python expression object]")
// property "threshold" defined in __init__ and is intended to be safe to use; the above two are for internal use
.def_property("comparison_type",&storm::logic::OperatorFormula::getComparisonType,&storm::logic::OperatorFormula::setComparisonType,"Comparison type of bound")
.def_property("comparison_type",&storm::logic::OperatorFormula::getComparisonType,&storm::logic::OperatorFormula::setComparisonType,"Comparison type of bound")
//.def_property_readonly("_threshold_as_rational", &storm::logic::OperatorFormula::getThresholdAs<storm::RationalNumber>, "Rational threshold of bound, if applicable")
//.def_property_readonly("_threshold_expression_has_rational_type", [](storm::logic::OperatorFormula const& f) { return f.getThreshold().hasRationalType(); } , "Check expression type [without needing a Python expression object]")
;
;
py::class_<storm::logic::TimeOperatorFormula,std::shared_ptr<storm::logic::TimeOperatorFormula>>(m,"TimeOperator","The time operator",operatorFormula);
py::class_<storm::logic::TimeOperatorFormula,std::shared_ptr<storm::logic::TimeOperatorFormula>>(m,"TimeOperator","The time operator",operatorFormula);
py::class_<storm::logic::LongRunAverageOperatorFormula,std::shared_ptr<storm::logic::LongRunAverageOperatorFormula>>(m,"LongRunAvarageOperator","Long run average operator",operatorFormula);
py::class_<storm::logic::LongRunAverageOperatorFormula,std::shared_ptr<storm::logic::LongRunAverageOperatorFormula>>(m,"LongRunAvarageOperator","Long run average operator",operatorFormula);