14 for (
auto const& [filename, data] :
umb.nonStandardFiles) {
15 STORM_LOG_WARN(
"UMB file " << location <<
" contains unexpected file " << filename <<
" (" << data.size() <<
" bytes).");
17 STORM_LOG_WARN_COND(
umb.nonStandardFiles.empty(),
"Unexpected file(s) found in " << location <<
". These will be ignored in model import/export.");
21template<
typename ValueType>
36template<
typename ValueType>
40 umb.encodeRationals();
45template std::shared_ptr<storm::models::sparse::Model<double>>
buildModelFromUmb(std::filesystem::path
const&, ImportOptions
const&);
46template std::shared_ptr<storm::models::sparse::Model<storm::RationalNumber>>
buildModelFromUmb(std::filesystem::path
const&, ImportOptions
const&);
47template std::shared_ptr<storm::models::sparse::Model<storm::Interval>>
buildModelFromUmb(std::filesystem::path
const&, ImportOptions
const&);
48template std::shared_ptr<storm::models::sparse::Model<storm::RationalInterval>>
buildModelFromUmb(std::filesystem::path
const&, ImportOptions
const&);
Base class for all sparse models.
Represents a model in the UMB format.
#define STORM_LOG_INFO(message)
#define STORM_LOG_WARN(message)
#define STORM_LOG_WARN_COND(cond, message)
void warnNonStandardFiles(UmbModel const &umb, std::filesystem::path const &location)
std::shared_ptr< storm::models::sparse::Model< ValueType > > buildModelFromUmb(std::filesystem::path const &umbLocation, ImportOptions const &options)
storm::umb::UmbModel importUmb(std::filesystem::path const &umbLocation, ImportOptions const &options)
void toArchive(storm::umb::UmbModel const &umbModel, std::filesystem::path const &archivePath, ExportOptions const &options)
std::shared_ptr< storm::models::sparse::Model< ValueType > > sparseModelFromUmb(storm::umb::UmbModel const &umbModel, ImportOptions const &options)
Constructs a sparse model from the given UMB model.
storm::umb::UmbModel sparseModelToUmb(storm::models::sparse::Model< ValueType > const &model, ExportOptions const &options)
void exportModelToUmb(storm::models::sparse::Model< ValueType > const &model, std::filesystem::path const &targetLocation, ExportOptions const &options)