Browse Source

give edges a color to mark them from user side

tempestpy_adaptions
Sebastian Junges 6 years ago
parent
commit
8fe3b7b1f8
  1. 8
      src/storm/storage/jani/Edge.cpp
  2. 13
      src/storm/storage/jani/Edge.h

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

@ -92,6 +92,14 @@ namespace storm {
return actionIndex == Model::SILENT_ACTION_INDEX; return actionIndex == Model::SILENT_ACTION_INDEX;
} }
uint64_t Edge::getColor() const {
return this->color;
}
void Edge::setColor(uint64_t newColor) {
this->color = newColor;
}
boost::container::flat_set<storm::expressions::Variable> const& Edge::getWrittenGlobalVariables() const { boost::container::flat_set<storm::expressions::Variable> const& Edge::getWrittenGlobalVariables() const {
return templateEdge->getWrittenGlobalVariables(); return templateEdge->getWrittenGlobalVariables();
} }

13
src/storm/storage/jani/Edge.h

@ -111,6 +111,16 @@ namespace storm {
*/ */
bool usesAssignmentLevels(bool onlyTransient = false) const; bool usesAssignmentLevels(bool onlyTransient = false) const;
/*!
* Retrieves the color of the edge
*/
uint64_t getColor() const;
/*!
* Sets the color of the edge
*/
void setColor(uint64_t newColor);
/*! /*!
* *
* @param localVars * @param localVars
@ -151,6 +161,9 @@ namespace storm {
/// The concrete destination objects. /// The concrete destination objects.
std::vector<EdgeDestination> destinations; std::vector<EdgeDestination> destinations;
/// The color of the edge, used to persistently mark and identify specific edges (by the user)
uint64_t color;
}; };
std::ostream& operator<<(std::ostream& stream, Edge const& edge); std::ostream& operator<<(std::ostream& stream, Edge const& edge);

Loading…
Cancel
Save