|
@ -11,23 +11,26 @@ namespace storm { |
|
|
public: |
|
|
public: |
|
|
JaniGSPNBuilder(storm::gspn::GSPN const& gspn) |
|
|
JaniGSPNBuilder(storm::gspn::GSPN const& gspn) |
|
|
: gspn(gspn), expressionManager(gspn.getExpressionManager()) { |
|
|
: gspn(gspn), expressionManager(gspn.getExpressionManager()) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual ~JaniGSPNBuilder() { |
|
|
virtual ~JaniGSPNBuilder() { |
|
|
// Intentionally left empty. |
|
|
// Intentionally left empty. |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
storm::jani::Model* build(std::string const& automatonName = "gspn_automaton", bool buildStandardProperties = false); |
|
|
storm::jani::Model* build(std::string const& automatonName = "gspn_automaton", bool buildStandardProperties = false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
storm::jani::Variable const& getPlaceVariable(uint64_t placeId) const { |
|
|
storm::jani::Variable const& getPlaceVariable(uint64_t placeId) const { |
|
|
return *vars.at(placeId); |
|
|
return *vars.at(placeId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::vector<storm::jani::Property> const& getStandardProperties() const; |
|
|
std::vector<storm::jani::Property> const& getStandardProperties() const; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*! |
|
|
|
|
|
* Add transient variable representing given expression. |
|
|
|
|
|
*/ |
|
|
|
|
|
storm::jani::Variable const& addTransientVariable(storm::jani::Model* model, std::string name, storm::expressions::Expression expression); |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
void addVariables(storm::jani::Model* model); |
|
|
void addVariables(storm::jani::Model* model); |
|
|
|
|
|
|
|
@ -36,15 +39,16 @@ namespace storm { |
|
|
void addEdges(storm::jani::Automaton& automaton, uint64_t locId); |
|
|
void addEdges(storm::jani::Automaton& automaton, uint64_t locId); |
|
|
|
|
|
|
|
|
storm::jani::Variable const& addDeadlockTransientVariable(storm::jani::Model* model, std::string name, bool ignoreCapacities = false, bool ignoreInhibitorArcs = false, bool ignoreEmptyPlaces = false); |
|
|
storm::jani::Variable const& addDeadlockTransientVariable(storm::jani::Model* model, std::string name, bool ignoreCapacities = false, bool ignoreInhibitorArcs = false, bool ignoreEmptyPlaces = false); |
|
|
|
|
|
|
|
|
void buildProperties(storm::jani::Model* model); |
|
|
void buildProperties(storm::jani::Model* model); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const uint64_t janiVersion = 1; |
|
|
const uint64_t janiVersion = 1; |
|
|
storm::gspn::GSPN const& gspn; |
|
|
storm::gspn::GSPN const& gspn; |
|
|
std::map<uint64_t, storm::jani::Variable const*> vars; |
|
|
std::map<uint64_t, storm::jani::Variable const*> vars; |
|
|
std::shared_ptr<storm::expressions::ExpressionManager> expressionManager; |
|
|
std::shared_ptr<storm::expressions::ExpressionManager> expressionManager; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::vector<storm::jani::Property> standardProperties; |
|
|
std::vector<storm::jani::Property> standardProperties; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |