You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.5 KiB
51 lines
1.5 KiB
#include "storm/models/ModelBase.h"
|
|
|
|
namespace storm {
|
|
namespace models {
|
|
ModelType ModelBase::getType() const {
|
|
return modelType;
|
|
}
|
|
|
|
bool ModelBase::isSparseModel() const {
|
|
return false;
|
|
}
|
|
|
|
bool ModelBase::isSymbolicModel() const {
|
|
return false;
|
|
}
|
|
|
|
bool ModelBase::isOfType(storm::models::ModelType const& modelType) const {
|
|
return this->getType() == modelType;
|
|
}
|
|
|
|
bool ModelBase::isNondeterministicModel() const {
|
|
for (auto const& type : {storm::models::ModelType::Mdp, storm::models::ModelType::Pomdp, storm::models::ModelType::S2pg, storm::models::ModelType::MarkovAutomaton}) {
|
|
if (this->isOfType(type)) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
bool ModelBase::isDiscreteTimeModel() const {
|
|
for (auto const& type : {storm::models::ModelType::Dtmc, storm::models::ModelType::Mdp, storm::models::ModelType::Pomdp, storm::models::ModelType::S2pg}) {
|
|
if (this->isOfType(type)) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
bool ModelBase::supportsParameters() const {
|
|
return false;
|
|
}
|
|
|
|
bool ModelBase::hasParameters() const {
|
|
return false;
|
|
}
|
|
|
|
bool ModelBase::isExact() const {
|
|
return false;
|
|
}
|
|
}
|
|
}
|