|
Storm 1.11.1.1
A Modern Probabilistic Model Checker
|
Classes | |
| struct | DirectEncodingOptions |
Enumerations | |
| enum class | ModelExportFormat { Dot , Drdd , Drn , Json } |
Functions | |
| template<storm::dd::DdType Type, typename ValueType > | |
| void | explicitExportSymbolicModel (std::string const &filename, std::shared_ptr< storm::models::symbolic::Model< Type, ValueType > > symbolicModel) |
| Exports a sparse model into the explicit drdd format. | |
| template void | explicitExportSymbolicModel< storm::dd::DdType::CUDD, double > (std::string const &, std::shared_ptr< storm::models::symbolic::Model< storm::dd::DdType::CUDD, double > > sparseModel) |
| template void | explicitExportSymbolicModel< storm::dd::DdType::Sylvan, double > (std::string const &, std::shared_ptr< storm::models::symbolic::Model< storm::dd::DdType::Sylvan, double > > sparseModel) |
| template void | explicitExportSymbolicModel< storm::dd::DdType::Sylvan, storm::RationalNumber > (std::string const &, std::shared_ptr< storm::models::symbolic::Model< storm::dd::DdType::Sylvan, storm::RationalNumber > > sparseModel) |
| template void | explicitExportSymbolicModel< storm::dd::DdType::Sylvan, storm::RationalFunction > (std::string const &, std::shared_ptr< storm::models::symbolic::Model< storm::dd::DdType::Sylvan, storm::RationalFunction > > sparseModel) |
| template<typename ValueType > | |
| void | explicitExportSparseModel (std::ostream &os, std::shared_ptr< storm::models::sparse::Model< ValueType > > sparseModel, std::vector< std::string > const ¶meters, DirectEncodingOptions const &options=DirectEncodingOptions()) |
| Exports a sparse model into the explicit DRN format. | |
| template<typename ValueType > | |
| std::vector< std::string > | getParameters (std::shared_ptr< storm::models::sparse::Model< ValueType > > sparseModel) |
| Accumulate parameters in the model. | |
| template<> | |
| std::vector< std::string > | getParameters (std::shared_ptr< storm::models::sparse::Model< storm::RationalFunction > > sparseModel) |
| template<typename ValueType > | |
| std::unordered_map< ValueType, std::string > | generatePlaceholders (std::shared_ptr< storm::models::sparse::Model< ValueType > > sparseModel, std::vector< ValueType > exitRates) |
| Generate placeholders for rational functions in the model. | |
| void | createPlaceholder (std::unordered_map< storm::RationalFunction, std::string > &placeholders, storm::RationalFunction const &value, size_t &i) |
| Helper function to create a possible placeholder. | |
| template<> | |
| std::unordered_map< storm::RationalFunction, std::string > | generatePlaceholders (std::shared_ptr< storm::models::sparse::Model< storm::RationalFunction > > sparseModel, std::vector< storm::RationalFunction > exitRates) |
| template<typename ValueType > | |
| void | writeValue (std::ostream &os, ValueType value, std::unordered_map< ValueType, std::string > const &placeholders) |
| Write value to stream while using the placeholders. | |
| template void | explicitExportSparseModel< double > (std::ostream &os, std::shared_ptr< storm::models::sparse::Model< double > > sparseModel, std::vector< std::string > const ¶meters, DirectEncodingOptions const &options) |
| template void | explicitExportSparseModel< storm::RationalNumber > (std::ostream &os, std::shared_ptr< storm::models::sparse::Model< storm::RationalNumber > > sparseModel, std::vector< std::string > const ¶meters, DirectEncodingOptions const &options) |
| template void | explicitExportSparseModel< storm::RationalFunction > (std::ostream &os, std::shared_ptr< storm::models::sparse::Model< storm::RationalFunction > > sparseModel, std::vector< std::string > const ¶meters, DirectEncodingOptions const &options) |
| template void | explicitExportSparseModel< storm::Interval > (std::ostream &os, std::shared_ptr< storm::models::sparse::Model< storm::Interval > > sparseModel, std::vector< std::string > const ¶meters, DirectEncodingOptions const &options) |
| template<typename DataType , typename Header1Type = DataType, typename Header2Type = DataType> | |
| void | exportDataToCSVFile (std::string filepath, std::vector< std::vector< DataType > > const &data, boost::optional< std::vector< Header1Type > > const &header1=boost::none, boost::optional< std::vector< Header2Type > > const &header2=boost::none) |
| template<typename Container > | |
| void | outputFixedWidth (std::ostream &stream, Container const &output, size_t maxWidth=30) |
| Output list of strings with linebreaks according to fixed width. | |
| void | openFile (std::string const &filepath, std::ofstream &filestream, bool append=false, bool silent=false) |
| Open the given file for writing. | |
| void | openFile (std::string const &filepath, std::ifstream &filestream) |
| Open the given file for reading. | |
| void | closeFile (std::ofstream &stream) |
| Close the given file after writing. | |
| void | closeFile (std::ifstream &stream) |
| Close the given file after reading. | |
| bool | fileExistsAndIsReadable (std::string const &filename) |
| Tests whether the given file exists and is readable. | |
| template<class CharT , class Traits , class Allocator > | |
| std::basic_istream< CharT, Traits > & | getline (std::basic_istream< CharT, Traits > &input, std::basic_string< CharT, Traits, Allocator > &str) |
| Overloaded getline function which handles different types of newline ( and \r). | |
| ModelExportFormat | getModelExportFormatFromString (std::string const &input) |
| std::string | toString (ModelExportFormat const &input) |
| ModelExportFormat | getModelExportFormatFromFileExtension (std::string const &filename) |
|
strong |
| Enumerator | |
|---|---|
| Dot | |
| Drdd | |
| Drn | |
| Json | |
Definition at line 8 of file ModelExportFormat.h.
|
inline |
|
inline |
| void storm::io::createPlaceholder | ( | std::unordered_map< storm::RationalFunction, std::string > & | placeholders, |
| storm::RationalFunction const & | value, | ||
| size_t & | i | ||
| ) |
Helper function to create a possible placeholder.
A new placeholder is inserted if the rational function is not constant and the function does not exist yet.
| placeholders | Existing placeholders. |
| value | Value. |
| i | Counter to enumerate placeholders. |
Definition at line 212 of file DirectEncodingExporter.cpp.
| void storm::io::explicitExportSparseModel | ( | std::ostream & | os, |
| std::shared_ptr< storm::models::sparse::Model< ValueType > > | sparseModel, | ||
| std::vector< std::string > const & | parameters, | ||
| DirectEncodingOptions const & | options = DirectEncodingOptions() |
||
| ) |
Exports a sparse model into the explicit DRN format.
| os | Stream to export to |
| sparseModel | Model to export |
| parameters | List of parameters |
Definition at line 19 of file DirectEncodingExporter.cpp.
| template void storm::io::explicitExportSparseModel< double > | ( | std::ostream & | os, |
| std::shared_ptr< storm::models::sparse::Model< double > > | sparseModel, | ||
| std::vector< std::string > const & | parameters, | ||
| DirectEncodingOptions const & | options | ||
| ) |
| template void storm::io::explicitExportSparseModel< storm::Interval > | ( | std::ostream & | os, |
| std::shared_ptr< storm::models::sparse::Model< storm::Interval > > | sparseModel, | ||
| std::vector< std::string > const & | parameters, | ||
| DirectEncodingOptions const & | options | ||
| ) |
| template void storm::io::explicitExportSparseModel< storm::RationalFunction > | ( | std::ostream & | os, |
| std::shared_ptr< storm::models::sparse::Model< storm::RationalFunction > > | sparseModel, | ||
| std::vector< std::string > const & | parameters, | ||
| DirectEncodingOptions const & | options | ||
| ) |
| template void storm::io::explicitExportSparseModel< storm::RationalNumber > | ( | std::ostream & | os, |
| std::shared_ptr< storm::models::sparse::Model< storm::RationalNumber > > | sparseModel, | ||
| std::vector< std::string > const & | parameters, | ||
| DirectEncodingOptions const & | options | ||
| ) |
| void storm::io::explicitExportSymbolicModel | ( | std::string const & | filename, |
| std::shared_ptr< storm::models::symbolic::Model< Type, ValueType > > | symbolicModel | ||
| ) |
Exports a sparse model into the explicit drdd format.
| filename | File path |
| symbolicModel | Model to export |
Definition at line 10 of file DDEncodingExporter.cpp.
| template void storm::io::explicitExportSymbolicModel< storm::dd::DdType::CUDD, double > | ( | std::string const & | , |
| std::shared_ptr< storm::models::symbolic::Model< storm::dd::DdType::CUDD, double > > | sparseModel | ||
| ) |
| template void storm::io::explicitExportSymbolicModel< storm::dd::DdType::Sylvan, double > | ( | std::string const & | , |
| std::shared_ptr< storm::models::symbolic::Model< storm::dd::DdType::Sylvan, double > > | sparseModel | ||
| ) |
| template void storm::io::explicitExportSymbolicModel< storm::dd::DdType::Sylvan, storm::RationalFunction > | ( | std::string const & | , |
| std::shared_ptr< storm::models::symbolic::Model< storm::dd::DdType::Sylvan, storm::RationalFunction > > | sparseModel | ||
| ) |
| template void storm::io::explicitExportSymbolicModel< storm::dd::DdType::Sylvan, storm::RationalNumber > | ( | std::string const & | , |
| std::shared_ptr< storm::models::symbolic::Model< storm::dd::DdType::Sylvan, storm::RationalNumber > > | sparseModel | ||
| ) |
|
inline |
|
inline |
| std::unordered_map< storm::RationalFunction, std::string > storm::io::generatePlaceholders | ( | std::shared_ptr< storm::models::sparse::Model< storm::RationalFunction > > | sparseModel, |
| std::vector< storm::RationalFunction > | exitRates | ||
| ) |
Definition at line 223 of file DirectEncodingExporter.cpp.
| std::unordered_map< ValueType, std::string > storm::io::generatePlaceholders | ( | std::shared_ptr< storm::models::sparse::Model< ValueType > > | sparseModel, |
| std::vector< ValueType > | exitRates | ||
| ) |
Generate placeholders for rational functions in the model.
| sparseModel | Model. |
| exitRates | Exit rates. |
Definition at line 200 of file DirectEncodingExporter.cpp.
|
inline |
| ModelExportFormat storm::io::getModelExportFormatFromFileExtension | ( | std::string const & | filename | ) |
| InvalidArgumentException | if there is no file extension or if it doesn't match any known format. |
Definition at line 36 of file ModelExportFormat.cpp.
| ModelExportFormat storm::io::getModelExportFormatFromString | ( | std::string const & | input | ) |
| InvalidArgumentException | if the input doesn't match any known format |
Definition at line 9 of file ModelExportFormat.cpp.
| std::vector< std::string > storm::io::getParameters | ( | std::shared_ptr< storm::models::sparse::Model< storm::RationalFunction > > | sparseModel | ) |
Definition at line 186 of file DirectEncodingExporter.cpp.
| std::vector< std::string > storm::io::getParameters | ( | std::shared_ptr< storm::models::sparse::Model< ValueType > > | sparseModel | ) |
Accumulate parameters in the model.
| sparseModel | Model. |
Definition at line 181 of file DirectEncodingExporter.cpp.
|
inline |
|
inline |
|
inline |
Output list of strings with linebreaks according to fixed width.
Strings are printed with comma separator. If the length of the current line is greater than maxWidth, a linebreak is inserted.
| stream | Output stream. |
| output | List of strings to output. |
| maxWidth | Maximal width after which a linebreak is inserted. Value 0 represents no linebreaks. |
| std::string storm::io::toString | ( | ModelExportFormat const & | input | ) |
Definition at line 22 of file ModelExportFormat.cpp.
| void storm::io::writeValue | ( | std::ostream & | os, |
| ValueType | value, | ||
| std::unordered_map< ValueType, std::string > const & | placeholders | ||
| ) |
Write value to stream while using the placeholders.
| os | Output stream. |
| value | Value. |
| placeholders | Placeholders. |
Definition at line 256 of file DirectEncodingExporter.cpp.