Browse Source
moved building the choice origin strings into the ChoiceOrigins class
tempestpy_adaptions
moved building the choice origin strings into the ChoiceOrigins class
tempestpy_adaptions
TimQu
8 years ago
10 changed files with 204 additions and 68 deletions
-
44src/storm/generator/PrismNextStateGenerator.cpp
-
11src/storm/models/sparse/ItemLabeling.cpp
-
9src/storm/models/sparse/ItemLabeling.h
-
21src/storm/storage/sparse/ChoiceOrigins.cpp
-
32src/storm/storage/sparse/ChoiceOrigins.h
-
15src/storm/storage/sparse/JaniChoiceOrigins.cpp
-
15src/storm/storage/sparse/JaniChoiceOrigins.h
-
84src/storm/storage/sparse/PrismChoiceOrigins.cpp
-
20src/storm/storage/sparse/PrismChoiceOrigins.h
-
21src/storm/utility/vector.h
@ -1,21 +1,30 @@ |
|||||
#include "storm/storage/sparse/JaniChoiceOrigins.h"
|
#include "storm/storage/sparse/JaniChoiceOrigins.h"
|
||||
|
|
||||
|
#include "storm/utility/macros.h"
|
||||
|
|
||||
namespace storm { |
namespace storm { |
||||
namespace storage { |
namespace storage { |
||||
namespace sparse { |
namespace sparse { |
||||
|
|
||||
JaniChoiceOrigins::JaniChoiceOrigins(std::vector<uint_fast64_t> const& indexToIdentifierMapping, std::vector<std::string> const& identifierToInfoMapping) : ChoiceOrigins(indexToIdentifierMapping, identifierToInfoMapping) { |
|
||||
|
JaniChoiceOrigins::JaniChoiceOrigins(std::vector<uint_fast64_t> const& indexToIdentifierMapping) : ChoiceOrigins(indexToIdentifierMapping) { |
||||
// Intentionally left empty
|
// Intentionally left empty
|
||||
|
STORM_LOG_ASSERT(false, "Jani choice origins not properly implemented"); |
||||
} |
} |
||||
|
|
||||
bool JaniChoiceOrigins::isJaniChoiceOrigins() const { |
bool JaniChoiceOrigins::isJaniChoiceOrigins() const { |
||||
return true; |
return true; |
||||
} |
} |
||||
|
|
||||
|
uint_fast64_t JaniChoiceOrigins::getLargestIdentifier() const { |
||||
|
return 0; |
||||
|
} |
||||
|
|
||||
std::shared_ptr<ChoiceOrigins> JaniChoiceOrigins::cloneWithNewIndexToIdentifierMapping(std::vector<uint_fast64_t>&& indexToIdentifierMapping) const { |
std::shared_ptr<ChoiceOrigins> JaniChoiceOrigins::cloneWithNewIndexToIdentifierMapping(std::vector<uint_fast64_t>&& indexToIdentifierMapping) const { |
||||
std::vector<std::string> identifierToInfoMapping = this->identifierToInfo; |
|
||||
return std::make_shared<JaniChoiceOrigins>(std::move(indexToIdentifierMapping), std::move(identifierToInfoMapping)); |
|
||||
|
return std::make_shared<JaniChoiceOrigins>(std::move(indexToIdentifierMapping)); |
||||
|
} |
||||
|
|
||||
|
void JaniChoiceOrigins::computeIdentifierInfos() const { |
||||
|
|
||||
} |
} |
||||
|
|
||||
} |
} |
||||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue