|
Storm 1.11.1.1
A Modern Probabilistic Model Checker
|
Namespaces | |
| namespace | detail |
Classes | |
| class | ArchiveReader |
| class | ArchiveWriter |
| struct | DirectEncodingExporterOptions |
Typedefs | |
| template<typename T > | |
| using | Vec = typename ArchiveReader::ArchiveReadEntry::VectorType< T > |
Enumerations | |
| enum class | CompressionMode { Default , None , Gzip , Xz } |
| enum class | ModelExportFormat { Dot , Drdd , Drn , Json } |
Functions | |
| ArchiveReader | openArchive (std::filesystem::path const &file) |
| Reads an archive file. | |
| template Vec< char > | ArchiveReader::ArchiveReadEntry::toVector< char, std::endian::little > () |
| template Vec< bool > | ArchiveReader::ArchiveReadEntry::toVector< bool, std::endian::little > () |
| template Vec< uint32_t > | ArchiveReader::ArchiveReadEntry::toVector< uint32_t, std::endian::little > () |
| template Vec< uint64_t > | ArchiveReader::ArchiveReadEntry::toVector< uint64_t, std::endian::little > () |
| template Vec< int64_t > | ArchiveReader::ArchiveReadEntry::toVector< int64_t, std::endian::little > () |
| template Vec< double > | ArchiveReader::ArchiveReadEntry::toVector< double, std::endian::little > () |
| CompressionMode | getCompressionModeFromString (std::string const &input) |
| std::string | toString (CompressionMode const &input) |
| CompressionMode | getCompressionModeFromFileExtension (std::filesystem::path const &filename) |
| 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::filesystem::path const &filename, std::shared_ptr< storm::models::sparse::Model< ValueType > > sparseModel, std::vector< std::string > const ¶meters, DirectEncodingExporterOptions const &options=DirectEncodingExporterOptions()) |
| Exports a sparse model into the explicit DRN format. | |
| template<typename ValueType > | |
| void | explicitExportSparseModel (std::ostream &os, std::shared_ptr< storm::models::sparse::Model< ValueType > > sparseModel, std::vector< std::string > const ¶meters, DirectEncodingExporterOptions const &options=DirectEncodingExporterOptions()) |
| 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::filesystem::path const &os, std::shared_ptr< storm::models::sparse::Model< double > > sparseModel, std::vector< std::string > const ¶meters, DirectEncodingExporterOptions const &options) |
| template void | explicitExportSparseModel< storm::RationalNumber > (std::filesystem::path const &os, std::shared_ptr< storm::models::sparse::Model< storm::RationalNumber > > sparseModel, std::vector< std::string > const ¶meters, DirectEncodingExporterOptions const &options) |
| template void | explicitExportSparseModel< storm::RationalFunction > (std::filesystem::path const &os, std::shared_ptr< storm::models::sparse::Model< storm::RationalFunction > > sparseModel, std::vector< std::string > const ¶meters, DirectEncodingExporterOptions const &options) |
| template void | explicitExportSparseModel< storm::Interval > (std::filesystem::path const &os, std::shared_ptr< storm::models::sparse::Model< storm::Interval > > sparseModel, std::vector< std::string > const ¶meters, DirectEncodingExporterOptions const &options) |
| template void | explicitExportSparseModel< double > (std::ostream &os, std::shared_ptr< storm::models::sparse::Model< double > > sparseModel, std::vector< std::string > const ¶meters, DirectEncodingExporterOptions 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, DirectEncodingExporterOptions 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, DirectEncodingExporterOptions 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, DirectEncodingExporterOptions 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) |
| using storm::io::Vec = typedef typename ArchiveReader::ArchiveReadEntry::VectorType<T> |
Definition at line 64 of file ArchiveReader.cpp.
|
strong |
| Enumerator | |
|---|---|
| Default | |
| None | |
| Gzip | |
| Xz | |
Definition at line 8 of file CompressionMode.h.
|
strong |
| Enumerator | |
|---|---|
| Dot | |
| Drdd | |
| Drn | |
| Json | |
Definition at line 8 of file ModelExportFormat.h.
| template Vec< bool > storm::io::ArchiveReader::ArchiveReadEntry::toVector< bool, std::endian::little > | ( | ) |
| template Vec< char > storm::io::ArchiveReader::ArchiveReadEntry::toVector< char, std::endian::little > | ( | ) |
| template Vec< double > storm::io::ArchiveReader::ArchiveReadEntry::toVector< double, std::endian::little > | ( | ) |
| template Vec< int64_t > storm::io::ArchiveReader::ArchiveReadEntry::toVector< int64_t, std::endian::little > | ( | ) |
| template Vec< uint32_t > storm::io::ArchiveReader::ArchiveReadEntry::toVector< uint32_t, std::endian::little > | ( | ) |
| template Vec< uint64_t > storm::io::ArchiveReader::ArchiveReadEntry::toVector< uint64_t, std::endian::little > | ( | ) |
|
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 258 of file DirectEncodingExporter.cpp.
| void storm::io::explicitExportSparseModel | ( | std::filesystem::path const & | filename, |
| std::shared_ptr< storm::models::sparse::Model< ValueType > > | sparseModel, | ||
| std::vector< std::string > const & | parameters, | ||
| DirectEncodingExporterOptions const & | options = DirectEncodingExporterOptions() |
||
| ) |
Exports a sparse model into the explicit DRN format.
| filename | file to export to |
| sparseModel | Model to export |
| parameters | List of parameters |
| options | Options for direct encoding export |
Definition at line 23 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, | ||
| DirectEncodingExporterOptions const & | options = DirectEncodingExporterOptions() |
||
| ) |
Exports a sparse model into the explicit DRN format.
| os | Stream to export to |
| sparseModel | Model to export |
| parameters | List of parameters |
| options | Options for direct encoding export |
Definition at line 47 of file DirectEncodingExporter.cpp.
| template void storm::io::explicitExportSparseModel< double > | ( | std::filesystem::path const & | os, |
| std::shared_ptr< storm::models::sparse::Model< double > > | sparseModel, | ||
| std::vector< std::string > const & | parameters, | ||
| DirectEncodingExporterOptions const & | options | ||
| ) |
| template void storm::io::explicitExportSparseModel< double > | ( | std::ostream & | os, |
| std::shared_ptr< storm::models::sparse::Model< double > > | sparseModel, | ||
| std::vector< std::string > const & | parameters, | ||
| DirectEncodingExporterOptions const & | options | ||
| ) |
| template void storm::io::explicitExportSparseModel< storm::Interval > | ( | std::filesystem::path const & | os, |
| std::shared_ptr< storm::models::sparse::Model< storm::Interval > > | sparseModel, | ||
| std::vector< std::string > const & | parameters, | ||
| DirectEncodingExporterOptions 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, | ||
| DirectEncodingExporterOptions const & | options | ||
| ) |
| template void storm::io::explicitExportSparseModel< storm::RationalFunction > | ( | std::filesystem::path const & | os, |
| std::shared_ptr< storm::models::sparse::Model< storm::RationalFunction > > | sparseModel, | ||
| std::vector< std::string > const & | parameters, | ||
| DirectEncodingExporterOptions 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, | ||
| DirectEncodingExporterOptions const & | options | ||
| ) |
| template void storm::io::explicitExportSparseModel< storm::RationalNumber > | ( | std::filesystem::path const & | os, |
| std::shared_ptr< storm::models::sparse::Model< storm::RationalNumber > > | sparseModel, | ||
| std::vector< std::string > const & | parameters, | ||
| DirectEncodingExporterOptions 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, | ||
| DirectEncodingExporterOptions 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 269 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 246 of file DirectEncodingExporter.cpp.
| CompressionMode storm::io::getCompressionModeFromFileExtension | ( | std::filesystem::path const & | filename | ) |
Definition at line 39 of file CompressionMode.cpp.
| CompressionMode storm::io::getCompressionModeFromString | ( | std::string const & | input | ) |
| InvalidArgumentException | if the input doesn't match any known compression mode |
Definition at line 8 of file CompressionMode.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 39 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 12 of file ModelExportFormat.cpp.
| std::vector< std::string > storm::io::getParameters | ( | std::shared_ptr< storm::models::sparse::Model< storm::RationalFunction > > | sparseModel | ) |
Definition at line 232 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 227 of file DirectEncodingExporter.cpp.
| ArchiveReader storm::io::openArchive | ( | std::filesystem::path const & | file | ) |
Reads an archive file.
| file | path to an archive file |
Definition at line 307 of file ArchiveReader.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 | ( | CompressionMode const & | input | ) |
Definition at line 23 of file CompressionMode.cpp.
| std::string storm::io::toString | ( | ModelExportFormat const & | input | ) |
Definition at line 25 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 302 of file DirectEncodingExporter.cpp.