|
Storm 1.13.0.1
A Modern Probabilistic Model Checker
|
Namespaces | |
| namespace | detail |
| namespace | internal |
| namespace | validation |
Classes | |
| struct | ExportOptions |
| struct | ImportOptions |
| struct | AnyValueType |
| class | GenericVector |
| struct | ModelIndex |
| class | StringsBuilder |
| struct | TypeDeclaration |
| struct | SizedType |
| class | UmbModel |
| Represents a model in the UMB format. More... | |
| struct | ValuationClassDescription |
| struct | ValuationDescription |
| class | Valuations |
| class | ValueEncoding |
Typedefs | |
| template<typename T> | |
| using | VectorType = std::conditional_t<std::is_same_v<T, bool>, storm::storage::BitVector, std::vector<T>> |
| template<typename T> | |
| using | OptionalVectorType = std::optional<VectorType<T>> |
| template<typename T> | |
| using | TO1 = std::conditional_t<std::is_same_v<T, AnyValueType>, GenericVector, OptionalVectorType<T>> |
| template<typename T> | |
| using | SEQ = TO1<T> |
| using | CSR = OptionalVectorType<uint64_t> |
Enumerations | |
| enum class | Type { Bool , Int , IntInterval , Uint , UintInterval , Double , DoubleInterval , Rational , RationalInterval , String } |
Functions | |
| template<typename ValueType> | |
| storm::umb::UmbModel | sparseModelToUmb (storm::models::sparse::Model< ValueType > const &model, ExportOptions const &options) |
| template storm::umb::UmbModel | sparseModelToUmb< double > (storm::models::sparse::Model< double > const &model, ExportOptions const &options) |
| template storm::umb::UmbModel | sparseModelToUmb< storm::RationalNumber > (storm::models::sparse::Model< storm::RationalNumber > const &model, ExportOptions const &options) |
| template storm::umb::UmbModel | sparseModelToUmb< storm::Interval > (storm::models::sparse::Model< storm::Interval > const &model, ExportOptions const &options) |
| template storm::umb::UmbModel | sparseModelToUmb< storm::RationalInterval > (storm::models::sparse::Model< storm::RationalInterval > const &model, ExportOptions const &options) |
| void | toArchive (storm::umb::UmbModel const &umbModel, std::filesystem::path const &archivePath, ExportOptions const &options) |
| storm::models::ModelType | deriveModelType (storm::umb::ModelIndex const &index) |
| Derives the model type from the given UMB model index. | |
| template<typename ValueType> | |
| bool | deriveValueType (storm::umb::ModelIndex const &index, ImportOptions const &options={}) |
| Returns true iff the given umb model with the given options should have ValueType as its ValueType. | |
| template<typename ValueType> | |
| 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. | |
| std::shared_ptr< storm::models::ModelBase > | sparseModelFromUmb (storm::umb::UmbModel const &umbModel, ImportOptions const &options={}) |
| Constructs a sparse model from the given UMB model. | |
| template std::shared_ptr< storm::models::sparse::Model< double > > | sparseModelFromUmb< double > (storm::umb::UmbModel const &umbModel, ImportOptions const &options) |
| template std::shared_ptr< storm::models::sparse::Model< storm::RationalNumber > > | sparseModelFromUmb< storm::RationalNumber > (storm::umb::UmbModel const &umbModel, ImportOptions const &options) |
| template std::shared_ptr< storm::models::sparse::Model< storm::Interval > > | sparseModelFromUmb< storm::Interval > (storm::umb::UmbModel const &umbModel, ImportOptions const &options) |
| template std::shared_ptr< storm::models::sparse::Model< storm::RationalInterval > > | sparseModelFromUmb< storm::RationalInterval > (storm::umb::UmbModel const &umbModel, ImportOptions const &options) |
| storm::umb::UmbModel | importUmb (std::filesystem::path const &umbLocation, ImportOptions const &options) |
| auto | stringVectorView (SEQ< char > const &strings, CSR const &stringMapping) |
| bool | isBooleanType (Type const type) |
| bool | isDiscreteNumericType (Type const type) |
| bool | isContinuousNumericType (Type const type) |
| bool | isNumericType (Type const type) |
| bool | isIntervalType (Type const type) |
| bool | isStringType (Type const type) |
| uint64_t | defaultBitSize (Type const type) |
| Returns the default size (in bits) of a type, if available. | |
| std::string | toString (Type const type) |
| Returns a string representation of the type. | |
| bool | validate (storm::umb::UmbModel const &umbModel, std::ostream &errors) |
| Validates the given UMB model and writes potential errors to the given output stream. | |
| void | validateOrThrow (storm::umb::UmbModel const &umbModel) |
| Validates the given UMB model. | |
| template<typename ValueType> | |
| std::shared_ptr< storm::models::sparse::Model< ValueType > > | buildModelFromUmb (std::filesystem::path const &umbLocation, ImportOptions const &options) |
| std::shared_ptr< storm::models::ModelBase > | buildModelFromUmb (std::filesystem::path const &umbLocation, ImportOptions const &options) |
| template<typename ValueType> | |
| void | exportModelToUmb (storm::models::sparse::Model< ValueType > const &model, std::filesystem::path const &targetLocation, ExportOptions const &options) |
| template void | exportModelToUmb (storm::models::sparse::Model< double > const &, std::filesystem::path const &, ExportOptions const &) |
| template void | exportModelToUmb (storm::models::sparse::Model< storm::RationalNumber > const &, std::filesystem::path const &, ExportOptions const &) |
| template void | exportModelToUmb (storm::models::sparse::Model< storm::Interval > const &, std::filesystem::path const &, ExportOptions const &) |
| template void | exportModelToUmb (storm::models::sparse::Model< storm::RationalInterval > const &, std::filesystem::path const &, ExportOptions const &) |
Variables | |
| const std::string | DefaultAnnotationAlias = "default" |
| using storm::umb::CSR = OptionalVectorType<uint64_t> |
Definition at line 31 of file FileTypes.h.
| using storm::umb::OptionalVectorType = std::optional<VectorType<T>> |
Definition at line 21 of file FileTypes.h.
| using storm::umb::SEQ = TO1<T> |
Definition at line 29 of file FileTypes.h.
| using storm::umb::TO1 = std::conditional_t<std::is_same_v<T, AnyValueType>, GenericVector, OptionalVectorType<T>> |
Definition at line 26 of file FileTypes.h.
| using storm::umb::VectorType = std::conditional_t<std::is_same_v<T, bool>, storm::storage::BitVector, std::vector<T>> |
Definition at line 18 of file FileTypes.h.
|
strong |
| std::shared_ptr< storm::models::ModelBase > storm::umb::buildModelFromUmb | ( | std::filesystem::path const & | umbLocation, |
| ImportOptions const & | options ) |
| std::shared_ptr< storm::models::ModelBase > storm::umb::buildModelFromUmb | ( | std::filesystem::path const & | umbLocation, |
| ImportOptions const & | options ) |
| uint64_t storm::umb::defaultBitSize | ( | Type const | type | ) |
| storm::models::ModelType storm::umb::deriveModelType | ( | storm::umb::ModelIndex const & | index | ) |
Derives the model type from the given UMB model index.
Definition at line 316 of file SparseModelFromUmb.cpp.
| bool storm::umb::deriveValueType | ( | storm::umb::ModelIndex const & | index, |
| ImportOptions const & | options = {} ) |
Returns true iff the given umb model with the given options should have ValueType as its ValueType.
Currently, this can be either double, storm::RationalNumber, storm::Interval, or storm::RationalInterval.
Definition at line 347 of file SparseModelFromUmb.cpp.
| template void storm::umb::exportModelToUmb | ( | storm::models::sparse::Model< double > const & | , |
| std::filesystem::path const & | , | ||
| ExportOptions const & | ) |
| template void storm::umb::exportModelToUmb | ( | storm::models::sparse::Model< storm::Interval > const & | , |
| std::filesystem::path const & | , | ||
| ExportOptions const & | ) |
| template void storm::umb::exportModelToUmb | ( | storm::models::sparse::Model< storm::RationalInterval > const & | , |
| std::filesystem::path const & | , | ||
| ExportOptions const & | ) |
| template void storm::umb::exportModelToUmb | ( | storm::models::sparse::Model< storm::RationalNumber > const & | , |
| std::filesystem::path const & | , | ||
| ExportOptions const & | ) |
| void storm::umb::exportModelToUmb | ( | storm::models::sparse::Model< ValueType > const & | model, |
| std::filesystem::path const & | targetLocation, | ||
| ExportOptions const & | options ) |
| storm::umb::UmbModel storm::umb::importUmb | ( | std::filesystem::path const & | umbLocation, |
| ImportOptions const & | options ) |
Definition at line 258 of file UmbImport.cpp.
| bool storm::umb::isBooleanType | ( | Type const | type | ) |
| bool storm::umb::isContinuousNumericType | ( | Type const | type | ) |
| bool storm::umb::isDiscreteNumericType | ( | Type const | type | ) |
| bool storm::umb::isIntervalType | ( | Type const | type | ) |
| bool storm::umb::isNumericType | ( | Type const | type | ) |
| bool storm::umb::isStringType | ( | Type const | type | ) |
| std::shared_ptr< storm::models::ModelBase > storm::umb::sparseModelFromUmb | ( | storm::umb::UmbModel const & | umbModel, |
| ImportOptions const & | options = {} ) |
Constructs a sparse model from the given UMB model.
Definition at line 385 of file SparseModelFromUmb.cpp.
| std::shared_ptr< storm::models::ModelBase > storm::umb::sparseModelFromUmb | ( | storm::umb::UmbModel const & | umbModel, |
| ImportOptions const & | options = {} ) |
Constructs a sparse model from the given UMB model.
The derived value type is enforced, which might trigger conversions e.g. from/to rationals. Throws an exception if such a conversion is not possible (e.g. interval to ValueType=double).
Definition at line 381 of file SparseModelFromUmb.cpp.
| template std::shared_ptr< storm::models::sparse::Model< double > > storm::umb::sparseModelFromUmb< double > | ( | storm::umb::UmbModel const & | umbModel, |
| ImportOptions const & | options ) |
| template std::shared_ptr< storm::models::sparse::Model< storm::Interval > > storm::umb::sparseModelFromUmb< storm::Interval > | ( | storm::umb::UmbModel const & | umbModel, |
| ImportOptions const & | options ) |
| template std::shared_ptr< storm::models::sparse::Model< storm::RationalInterval > > storm::umb::sparseModelFromUmb< storm::RationalInterval > | ( | storm::umb::UmbModel const & | umbModel, |
| ImportOptions const & | options ) |
| template std::shared_ptr< storm::models::sparse::Model< storm::RationalNumber > > storm::umb::sparseModelFromUmb< storm::RationalNumber > | ( | storm::umb::UmbModel const & | umbModel, |
| ImportOptions const & | options ) |
| storm::umb::UmbModel storm::umb::sparseModelToUmb | ( | storm::models::sparse::Model< ValueType > const & | model, |
| ExportOptions const & | options ) |
Definition at line 471 of file SparseModelToUmb.cpp.
| template storm::umb::UmbModel storm::umb::sparseModelToUmb< double > | ( | storm::models::sparse::Model< double > const & | model, |
| ExportOptions const & | options ) |
| template storm::umb::UmbModel storm::umb::sparseModelToUmb< storm::Interval > | ( | storm::models::sparse::Model< storm::Interval > const & | model, |
| ExportOptions const & | options ) |
| template storm::umb::UmbModel storm::umb::sparseModelToUmb< storm::RationalInterval > | ( | storm::models::sparse::Model< storm::RationalInterval > const & | model, |
| ExportOptions const & | options ) |
| template storm::umb::UmbModel storm::umb::sparseModelToUmb< storm::RationalNumber > | ( | storm::models::sparse::Model< storm::RationalNumber > const & | model, |
| ExportOptions const & | options ) |
Definition at line 10 of file StringEncoding.h.
| void storm::umb::toArchive | ( | storm::umb::UmbModel const & | umbModel, |
| std::filesystem::path const & | archivePath, | ||
| ExportOptions const & | options ) |
Definition at line 137 of file UmbExport.cpp.
| std::string storm::umb::toString | ( | Type const | type | ) |
| bool storm::umb::validate | ( | storm::umb::UmbModel const & | umbModel, |
| std::ostream & | errors ) |
Validates the given UMB model and writes potential errors to the given output stream.
Definition at line 110 of file Validation.cpp.
| void storm::umb::validateOrThrow | ( | storm::umb::UmbModel const & | umbModel | ) |
Validates the given UMB model.
If it is invalid, an exception is thrown.
Definition at line 572 of file Validation.cpp.
| const std::string storm::umb::DefaultAnnotationAlias = "default" |
Definition at line 28 of file ModelIndex.cpp.