Storm 1.11.1.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
DirectEncodingExporter.h
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <iostream>
5#include <memory>
6
9
10namespace storm {
11namespace io {
12
21template<typename ValueType>
22void explicitExportSparseModel(std::filesystem::path const& filename, std::shared_ptr<storm::models::sparse::Model<ValueType>> sparseModel,
23 std::vector<std::string> const& parameters, DirectEncodingExporterOptions const& options = DirectEncodingExporterOptions());
24
33template<typename ValueType>
34void explicitExportSparseModel(std::ostream& os, std::shared_ptr<storm::models::sparse::Model<ValueType>> sparseModel,
35 std::vector<std::string> const& parameters, DirectEncodingExporterOptions const& options = DirectEncodingExporterOptions());
36
43template<typename ValueType>
44std::vector<std::string> getParameters(std::shared_ptr<storm::models::sparse::Model<ValueType>> sparseModel);
45
53template<typename ValueType>
54std::unordered_map<ValueType, std::string> generatePlaceholders(std::shared_ptr<storm::models::sparse::Model<ValueType>> sparseModel,
55 std::vector<ValueType> exitRates);
56
63template<typename ValueType>
64void writeValue(std::ostream& os, ValueType value, std::unordered_map<ValueType, std::string> const& placeholders);
65} // namespace io
66} // namespace storm
Base class for all sparse models.
Definition Model.h:32
void explicitExportSparseModel(std::filesystem::path const &filename, std::shared_ptr< storm::models::sparse::Model< ValueType > > sparseModel, std::vector< std::string > const &parameters, DirectEncodingExporterOptions const &options)
Exports a sparse model into the explicit DRN format.
void writeValue(std::ostream &os, ValueType value, std::unordered_map< ValueType, std::string > const &placeholders)
Write value to stream while using the placeholders.
std::vector< std::string > getParameters(std::shared_ptr< storm::models::sparse::Model< ValueType > >)
Accumulate parameters in the model.
std::unordered_map< ValueType, std::string > generatePlaceholders(std::shared_ptr< storm::models::sparse::Model< ValueType > >, std::vector< ValueType >)
Generate placeholders for rational functions in the model.