Browse Source

edge to string method (simplifies some other code fragments), and write color to the string

tempestpy_adaptions
Sebastian Junges 6 years ago
parent
commit
82f5b05e90
  1. 9
      src/storm/storage/jani/Edge.cpp
  2. 3
      src/storm/storage/jani/Edge.h

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

@ -151,6 +151,12 @@ namespace storm {
destinations = newdestinations; destinations = newdestinations;
} }
std::string Edge::toString() const {
std::stringstream ss;
ss << *this;
return ss.str();
}
std::shared_ptr<TemplateEdge> const& Edge::getTemplateEdge() { std::shared_ptr<TemplateEdge> const& Edge::getTemplateEdge() {
return templateEdge; return templateEdge;
} }
@ -181,6 +187,9 @@ namespace storm {
} }
stream << "]"; stream << "]";
} }
if (edge.getColor() != 0) {
stream << " color: " << edge.getColor();
}
return stream; return stream;
} }
} }

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

@ -141,7 +141,8 @@ namespace storm {
* If no assignment exists, this value is always zero * If no assignment exists, this value is always zero
*/ */
int64_t const& getHighestAssignmentLevel() const; int64_t const& getHighestAssignmentLevel() const;
std::string toString() const;
void assertValid() const; void assertValid() const;

Loading…
Cancel
Save