Browse Source

some minor extension

Former-commit-id: 21a5fa7be3
tempestpy_adaptions
sjunges 9 years ago
parent
commit
435bf79c2d
  1. 2
      src/parser/JaniParser.cpp
  2. 28
      src/storage/jani/Model.cpp

2
src/parser/JaniParser.cpp

@ -56,7 +56,7 @@ namespace storm {
} }
std::shared_ptr<storm::jani::Composition> JaniParser::parseComposition(json const &compositionStructure) { std::shared_ptr<storm::jani::Composition> JaniParser::parseComposition(json const &compositionStructure) {
} }
} }
} }

28
src/storage/jani/Model.cpp

@ -6,9 +6,31 @@ namespace storm {
Model::Model(ModelType const& modelType, uint64_t version) : modelType(modelType), version(version) { Model::Model(ModelType const& modelType, uint64_t version) : modelType(modelType), version(version) {
// Intentionally left empty. // Intentionally left empty.
} }
bool Model::isValid(bool logDebug) const {
// TODO.
void Model::checkSupported() {
//TODO
}
bool Model::checkValidity(bool logdbg) {
// TODO switch to exception based return value.
if (version == 0) {
if(logdbg) STORM_LOG_DEBUG("Jani version is unspecified");
return false;
}
if(modelType == ModelType::UNDEFINED) {
if(logdbg) STORM_LOG_DEBUG("Model type is unspecified");
return false;
}
if(automata.empty()) {
if(logdbg) STORM_LOG_DEBUG("No automata specified");
return false;
}
// All checks passed.
return true;
} }
} }
Loading…
Cancel
Save