Browse Source

(Python) some simple methods on expressions

tempestpy_adaptions
Sebastian Junges 8 years ago
parent
commit
c99ca64f86
  1. 6
      stormpy/src/mod_expressions.cpp

6
stormpy/src/mod_expressions.cpp

@ -9,6 +9,12 @@ PYBIND11_PLUGIN(expressions) {
;
py::class_<storm::expressions::Expression>(m, "Expression", "Holds an expression")
.def("__str__", &storm::expressions::Expression::toString)
.def_property_readonly("contains_variables", &storm::expressions::Expression::containsVariables)
.def_property_readonly("has_boolean_type", &storm::expressions::Expression::hasBooleanType)
.def_property_readonly("has_integer_type", &storm::expressions::Expression::hasIntegerType)
.def_property_readonly("has_rational_type", &storm::expressions::Expression::hasRationalType)
;
return m.ptr();

Loading…
Cancel
Save