41 auto static constexpr FileNames = {
"values.bin",
"string-mapping.bin",
"strings.bin"};
49 auto static constexpr FileNames = {
"values.bin",
"distribution-mapping.bin",
"probabilities.bin"};
53 template<
typename Values>
56 auto static constexpr FileNames = {
"states/",
"choices/",
"branches/",
"observations/",
"players/"};
64 auto static constexpr FileNames = {
"values.bin",
"string-mapping.bin",
"strings.bin",
"distribution-mapping.bin",
"probabilities.bin"};
66 using Annotation = std::map<std::string, AppliesToEntity<AnnotationValues>>;
74 auto static constexpr FileNames = {
"valuation-to-class.bin",
"valuations.bin",
"string-mapping.bin",
"strings.bin"};
84 "state-to-choices.bin",
85 "state-to-player.bin",
86 "state-is-initial.bin",
87 "state-is-markovian.bin",
88 "state-to-exit-rate.bin",
89 "choice-to-branches.bin",
90 "branch-to-target.bin",
91 "branch-to-probability.bin",
94 "observations/states/",
95 "observations/branches/",
124 bool validate(std::ostream& errors)
const;
Helper class that optionally holds a reference to an object of type T.
Represents a model in the UMB format.
storm::OptionalRef< Annotation > annotation(std::string const &annotationType, bool createIfMissing=false)
Gets the annotation data with the given annotation type.
std::map< std::filesystem::path, std::vector< char > > nonStandardFiles
TO1< bool > stateIsMarkovian
std::map< std::string, Annotation > annotations
storm::OptionalRef< Annotation const > rewards() const
storm::OptionalRef< Annotation const > aps() const
std::string getShortModelInformation() const
Retrieves a short string that can be used to refer to the model in user output.
void validateOrThrow() const
Validates the UmbModel.
bool validate(std::ostream &errors) const
Validates the given UMB model and writes potential errors to the given output stream.
TO1< AnyValueType > branchToProbability
std::string getModelInformation() const
Retrieves a string that describes the model in more detail.
std::optional< ActionLabels > choiceActions
TO1< bool > stateIsInitial
AppliesToEntity< Valuation > Valuations
void decodeRationals()
Decodes all rational values stored in the model from their UMB bit representation.
TO1< AnyValueType > stateToExitRate
static auto constexpr FileNames
std::map< std::string, AppliesToEntity< AnnotationValues > > Annotation
TO1< uint32_t > stateToPlayer
void encodeRationals()
Encodes all rational values stored in the model into their UMB bit representation.
TO1< uint64_t > branchToTarget
std::optional< Observations > branchObservations
std::optional< Observations > stateObservations
std::optional< ActionLabels > branchActions
std::conditional_t< std::is_same_v< T, AnyValueType >, GenericVector, OptionalVectorType< T > > TO1
OptionalVectorType< uint64_t > CSR
static auto constexpr FileNames
TO1< AnyValueType > probabilities
static auto constexpr FileNames
TO1< AnyValueType > values
std::optional< Valuation > observations
std::optional< Valuation > players
std::optional< Valuation > choices
static auto constexpr FileNames
std::optional< Valuation > states
std::optional< Valuation > branches
TO1< AnyValueType > probabilities
static auto constexpr FileNames
static auto constexpr FileNames
TO1< uint32_t > valuationToClass