Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
SparseItemLabelingParser.h
Go to the documentation of this file.
1#pragma once
2
3#include <boost/optional.hpp>
4#include <cstdint>
5#include <string>
6
10
11namespace storm {
12namespace parser {
13
18 public:
26 static storm::models::sparse::StateLabeling parseAtomicPropositionLabeling(uint_fast64_t stateCount, std::string const& filename);
27
38 uint_fast64_t choiceCount, std::string const& filename, boost::optional<std::vector<uint_fast64_t>> const& nondeterministicChoiceIndices = boost::none);
39
40 private:
45 static void checkSyntax(std::string const& filename, storm::parser::MappedFile const& file);
46
53 static void parseLabelNames(std::string const& filename, storm::models::sparse::ItemLabeling& labeling, char const*& buf);
54
62 static void parseDeterministicLabelAssignments(std::string const& filename, storm::models::sparse::ItemLabeling& labeling, char const*& buf);
63
73 static void parseNonDeterministicLabelAssignments(std::string const& filename, storm::models::sparse::ChoiceLabeling& labeling,
74 std::vector<uint_fast64_t> const& nondeterministicChoiceIndices, char const*& buf);
75};
76
77} // namespace parser
78} // namespace storm
This class manages the labeling of the choice space with a number of (atomic) labels.
A base class managing the labeling of items with a number of (atomic) labels.
This class manages the labeling of the state space with a number of (atomic) labels.
Opens a file and maps it to memory providing a char* containing the file content.
Definition MappedFile.h:33
This class can be used to parse a labeling file.
static storm::models::sparse::ChoiceLabeling parseChoiceLabeling(uint_fast64_t choiceCount, std::string const &filename, boost::optional< std::vector< uint_fast64_t > > const &nondeterministicChoiceIndices=boost::none)
Parses the given file and returns the resulting choice labeling.
static storm::models::sparse::StateLabeling parseAtomicPropositionLabeling(uint_fast64_t stateCount, std::string const &filename)
Parses the given file and returns the resulting state labeling.
LabParser.cpp.
Definition cli.cpp:18