Browse Source

jani -- get expression manager signature now looks more like prism -- get (expression) manager

tempestpy_adaptions
Sebastian Junges 7 years ago
parent
commit
2468de47f9
  1. 8
      src/storm/storage/jani/Model.cpp
  2. 7
      src/storm/storage/jani/Model.h

8
src/storm/storage/jani/Model.cpp

@ -689,14 +689,10 @@ namespace storm {
return false;
}
storm::expressions::ExpressionManager& Model::getExpressionManager() {
storm::expressions::ExpressionManager& Model::getExpressionManager() const {
return *expressionManager;
}
storm::expressions::ExpressionManager const& Model::getExpressionManager() const {
return *expressionManager;
}
uint64_t Model::addAutomaton(Automaton const& automaton) {
auto it = automatonToIndex.find(automaton.getName());
STORM_LOG_THROW(it == automatonToIndex.end(), storm::exceptions::WrongFormatException, "Automaton with name '" << automaton.getName() << "' already exists.");

7
src/storm/storage/jani/Model.h

@ -228,13 +228,8 @@ namespace storm {
/*!
* Retrieves the manager responsible for the expressions in the JANI model.
*/
storm::expressions::ExpressionManager& getExpressionManager();
storm::expressions::ExpressionManager& getExpressionManager() const;
/*!
* Retrieves the manager responsible for the expressions in the JANI model.
*/
storm::expressions::ExpressionManager const& getExpressionManager() const;
/*!
* Adds the given automaton to the automata of this model.
*/

Loading…
Cancel
Save