Browse Source

SymbolicModel: getLabels

tempestpy_adaptions
Sebastian Junges 8 years ago
parent
commit
0ead111dea
  1. 9
      src/storm/models/symbolic/Model.cpp
  2. 2
      src/storm/models/symbolic/Model.h

9
src/storm/models/symbolic/Model.cpp

@ -204,6 +204,15 @@ namespace storm {
this->printModelInformationFooterToStream(out);
}
template<storm::dd::DdType Type, typename ValueType>
std::vector<std::string> Model<Type, ValueType>::getLabels() const {
std::vector<std::string> labels;
for(auto const& entry : labelToExpressionMap) {
labels.push_back(entry.first);
}
return labels;
}
template<storm::dd::DdType Type, typename ValueType>
void Model<Type, ValueType>::printModelInformationHeaderToStream(std::ostream& out) const {
out << "-------------------------------------------------------------- " << std::endl;

2
src/storm/models/symbolic/Model.h

@ -260,6 +260,8 @@ namespace storm {
virtual bool isSymbolicModel() const override;
std::vector<std::string> getLabels() const;
protected:
/*!

Loading…
Cancel
Save