Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
DirectEncodingExporter.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <memory>
5
7
8namespace storm {
9namespace io {
10
21template<typename ValueType>
22void explicitExportSparseModel(std::ostream& os, std::shared_ptr<storm::models::sparse::Model<ValueType>> sparseModel,
23 std::vector<std::string> const& parameters, DirectEncodingOptions const& options = DirectEncodingOptions());
24
31template<typename ValueType>
32std::vector<std::string> getParameters(std::shared_ptr<storm::models::sparse::Model<ValueType>> sparseModel);
33
41template<typename ValueType>
42std::unordered_map<ValueType, std::string> generatePlaceholders(std::shared_ptr<storm::models::sparse::Model<ValueType>> sparseModel,
43 std::vector<ValueType> exitRates);
44
51template<typename ValueType>
52void writeValue(std::ostream& os, ValueType value, std::unordered_map<ValueType, std::string> const& placeholders);
53} // namespace io
54} // namespace storm
Base class for all sparse models.
Definition Model.h:33
void explicitExportSparseModel(std::ostream &os, std::shared_ptr< storm::models::sparse::Model< ValueType > > sparseModel, std::vector< std::string > const &parameters, DirectEncodingOptions 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.
LabParser.cpp.
Definition cli.cpp:18