Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
storm::parser::SparseItemLabelingParser Class Reference

This class can be used to parse a labeling file. More...

#include <SparseItemLabelingParser.h>

Static Public Member Functions

static storm::models::sparse::StateLabeling parseAtomicPropositionLabeling (uint_fast64_t stateCount, std::string const &filename)
 Parses the given file and returns the resulting state labeling.
 
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.
 

Detailed Description

This class can be used to parse a labeling file.

Definition at line 17 of file SparseItemLabelingParser.h.

Member Function Documentation

◆ parseAtomicPropositionLabeling()

storm::models::sparse::StateLabeling storm::parser::SparseItemLabelingParser::parseAtomicPropositionLabeling ( uint_fast64_t  stateCount,
std::string const &  filename 
)
static

Parses the given file and returns the resulting state labeling.

Parameters
stateCountThe number of states of the model to be labeled.
filenameThe path and name of the labeling (.lab) file.
Returns
The parsed labeling as a StateLabeling object.

Definition at line 19 of file SparseItemLabelingParser.cpp.

◆ parseChoiceLabeling()

storm::models::sparse::ChoiceLabeling storm::parser::SparseItemLabelingParser::parseChoiceLabeling ( uint_fast64_t  choiceCount,
std::string const &  filename,
boost::optional< std::vector< uint_fast64_t > > const &  nondeterministicChoiceIndices = boost::none 
)
static

Parses the given file and returns the resulting choice labeling.

Parameters
choiceCountthe number of choices of the model.
filenameThe name of the file to parse.
nondeterministicChoiceIndicesif given, the choices are assumed to be nondeterministic, i.e., a choice is specified by a tuple of state index and (local) choice index.
Returns
The resulting choice labeling.

Definition at line 38 of file SparseItemLabelingParser.cpp.


The documentation for this class was generated from the following files: