20 std::optional<std::vector<std::string>>
authors;
22 static auto constexpr JsonKeys = {
"name",
"version",
"authors",
"description",
"comment",
"doi",
"url"};
30 std::optional<storm::json<storm::RationalNumber>>
parameters;
31 auto static constexpr JsonKeys = {
"tool",
"tool-version",
"creation-date",
"parameters"};
43 auto static constexpr Keys = {
"discrete",
"stochastic",
"urgent-stochastic"};
47 auto static constexpr InvalidNumber = std::numeric_limits<uint64_t>::max();
54 auto static constexpr Keys = {
"states",
"branches"};
71 "observations-apply-to",
72 "branch-probability-type",
74 "observation-probability-type",
84 auto static constexpr Keys = {
"states",
"choices",
"branches",
"observations",
"players"};
86 std::vector<storm::SerializedEnum<AppliesToDeclaration>>
appliesTo;
92 auto static constexpr JsonKeys = {
"alias",
"description",
"applies-to",
"type",
"lower",
"upper",
"#strings",
"probability-type",
"#probabilities"};
113 auto static constexpr JsonKeys = {
"states",
"choices",
"branches",
"observations",
"players"};
118 auto static constexpr JsonKeys = {
"format-version",
"format-revision",
"model-data",
"file-data",
"transition-system",
"annotations",
"valuations"};
134 std::optional<std::string>
findAPName(std::string
const&
id)
const;
135 std::optional<std::string>
findRewardName(std::string
const&
id)
const;
136 std::optional<std::string>
findAnnotationName(std::string
const& annotationsType, std::string
const&
id)
const;
Helper class that optionally holds a reference to an object of type T.
Helper struct to enable json serialization.
static auto constexpr Keys
static auto constexpr JsonKeys
storm::JsonSerialization JsonSerialization
std::optional< uint64_t > numProbabilities
std::optional< int64_t > lower
bool appliesToObservations() const
std::optional< int64_t > upper
std::optional< SizedType > probabilityType
std::vector< storm::SerializedEnum< AppliesToDeclaration > > appliesTo
static std::string getValidIdentifierFromAlias(std::string const &alias)
Takes an alias (which can be an arbitrary string) and converts it to a valid identifier in [0-9a-z_-]...
bool appliesToPlayers() const
std::optional< std::string > description
bool appliesToChoices() const
bool appliesToStates() const
bool appliesToBranches() const
std::optional< std::string > alias
std::optional< uint64_t > numStrings
std::optional< std::string > toolVersion
void setCreationDateToNow()
std::string creationDateAsString() const
std::optional< uint64_t > creationDate
std::optional< storm::json< storm::RationalNumber > > parameters
static auto constexpr JsonKeys
std::optional< std::string > tool
storm::JsonSerialization JsonSerialization
std::optional< std::string > url
storm::JsonSerialization JsonSerialization
std::optional< std::string > doi
std::optional< std::string > description
std::optional< std::string > version
std::optional< std::string > comment
std::optional< std::vector< std::string > > authors
static auto constexpr JsonKeys
std::optional< std::string > name
static auto constexpr Keys
ObservationsApplyTo Values
static auto constexpr Keys
static auto constexpr InvalidNumber
uint64_t numChoiceActions
uint64_t numBranchActions
static auto constexpr JsonKeys
storm::SerializedEnum< TimeDeclaration > time
std::optional< SizedType > exitRateType
std::optional< SizedType > branchProbabilityType
std::optional< storm::SerializedEnum< ObservationsApplyToDeclaration > > observationsApplyTo
std::optional< std::vector< std::string > > playerNames
uint64_t numInitialStates
storm::JsonSerialization JsonSerialization
std::optional< SizedType > observationProbabilityType
std::optional< ValuationDescription > states
static auto constexpr JsonKeys
storm::JsonSerialization JsonSerialization
std::optional< ValuationDescription > players
std::optional< ValuationDescription > choices
std::optional< ValuationDescription > branches
std::optional< ValuationDescription > observations
std::optional< ModelData > modelData
struct storm::umb::ModelIndex::TransitionSystem transitionSystem
storm::JsonSerialization JsonSerialization
std::optional< std::map< std::string, AnnotationMap > > annotations
static auto constexpr JsonKeys
storm::OptionalRef< AnnotationMap const > rewards() const
std::optional< std::string > findAPName(std::string const &id) const
Finds a name of the annotation (i.e.
std::map< std::string, Annotation > AnnotationMap
storm::OptionalRef< AnnotationMap > annotation(std::string const &annotationsType, bool createIfMissing=false)
std::optional< Valuations > valuations
std::optional< std::string > findAnnotationName(std::string const &annotationsType, std::string const &id) const
std::optional< FileData > fileData
storm::OptionalRef< AnnotationMap const > aps() const
std::optional< std::string > findRewardName(std::string const &id) const