Browse Source

Jani Model Bindings

refactoring
Sebastian Junges 8 years ago
parent
commit
49101d906b
  1. 7
      src/core/input.cpp

7
src/core/input.cpp

@ -27,6 +27,13 @@ void define_input(py::module& m) {
.value("UNDEFINED", storm::prism::Program::ModelType::UNDEFINED) .value("UNDEFINED", storm::prism::Program::ModelType::UNDEFINED)
; ;
// Jani Model
py::class_<storm::jani::Model>(m, "JaniModel", "Jani Model")
.def_property_readonly("name", &storm::jani::Model::getName, "Name of the jani model")
.def_property_readonly("model_type", &storm::jani::Model::getModelType, "Model type");
// PrismProgram // PrismProgram
py::class_<storm::prism::Program>(m, "PrismProgram", "Prism program") py::class_<storm::prism::Program>(m, "PrismProgram", "Prism program")
.def_property_readonly("nr_modules", &storm::prism::Program::getNumberOfModules, "Number of modules") .def_property_readonly("nr_modules", &storm::prism::Program::getNumberOfModules, "Number of modules")

Loading…
Cancel
Save