Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
AutoParser.h
Go to the documentation of this file.
1#pragma once
2
5
6#include <string>
7
8namespace storm {
9
17namespace parser {
18
23template<typename ValueType = double, typename RewardValueType = double>
25 public:
47 static std::shared_ptr<storm::models::sparse::Model<ValueType, storm::models::sparse::StandardRewardModel<RewardValueType>>> parseModel(
48 std::string const& transitionsFilename, std::string const& labelingFilename, std::string const& stateRewardFilename = "",
49 std::string const& transitionRewardFilename = "", std::string const& choiceLabelingFilename = "",
51
52 private:
53 // Define the maximal length of a hint in the file.
54 static constexpr std::size_t hintLength = 10;
55
62 static storm::models::ModelType analyzeHint(std::string const& filename);
63};
64
65} // namespace parser
66} // namespace storm
This class automatically chooses the correct parser for the given files and returns the corresponding...
Definition AutoParser.h:24
static std::shared_ptr< storm::models::sparse::Model< ValueType, storm::models::sparse::StandardRewardModel< RewardValueType > > > parseModel(std::string const &transitionsFilename, std::string const &labelingFilename, std::string const &stateRewardFilename="", std::string const &transitionRewardFilename="", std::string const &choiceLabelingFilename="", ExplicitModelParserOptions const &options=ExplicitModelParserOptions())
Checks the given files and parses the model within these files.
Contains all file parsers and helper classes.