You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
966 B
37 lines
966 B
#ifndef MRMC_PARSER_NONDETTRAPARSER_H_
|
|
#define MRMC_PARSER_NONDETTRAPARSER_H_
|
|
|
|
#include "src/storage/SquareSparseMatrix.h"
|
|
|
|
#include "src/parser/Parser.h"
|
|
#include "src/utility/OsDetection.h"
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
namespace mrmc {
|
|
namespace parser {
|
|
|
|
/*!
|
|
* @brief Load a nondeterministic transition system from file and create a
|
|
* sparse adjacency matrix whose entries represent the weights of the edges
|
|
*/
|
|
class NonDeterministicSparseTransitionParser : Parser {
|
|
public:
|
|
NonDeterministicSparseTransitionParser(std::string const &filename);
|
|
|
|
std::shared_ptr<mrmc::storage::SquareSparseMatrix<double>> getMatrix() {
|
|
return this->matrix;
|
|
}
|
|
|
|
private:
|
|
std::shared_ptr<mrmc::storage::SquareSparseMatrix<double>> matrix;
|
|
|
|
std::unique_ptr<std::vector<uint_fast64_t>> firstPass(char* buf, uint_fast64_t &maxnode, uint_fast64_t &maxchoice);
|
|
|
|
};
|
|
|
|
} // namespace parser
|
|
} // namespace mrmc
|
|
|
|
#endif /* MRMC_PARSER_NONDETTRAPARSER_H_ */
|