17class ImcaParserGrammar :
public qi::grammar<Iterator, storm::storage::sparse::ModelComponents<ValueType>(), Skipper> {
24 std::pair<StateType, ValueType> createStateValuePair(StateType
const& state, ValueType
const& value);
25 StateType getStateIndex(std::string
const& stateString);
26 void addInitialState(StateType
const& state);
27 void addGoalState(StateType
const& state);
28 void addChoiceToStateBehavior(StateType
const& state, std::string
const& label, std::vector<std::pair<StateType, ValueType>>
const& transitions,
29 boost::optional<ValueType>
const& reward);
32 qi::rule<Iterator, storm::storage::sparse::ModelComponents<ValueType>(), Skipper> start;
34 qi::rule<
Iterator, qi::unused_type(), Skipper> initials;
35 qi::rule<
Iterator, qi::unused_type(), Skipper> goals;
36 qi::rule<
Iterator, qi::unused_type(), Skipper> transitions;
38 qi::rule<
Iterator, qi::unused_type(), Skipper> choice;
39 qi::rule<Iterator, std::pair<StateType, ValueType>(), Skipper> transition;
40 qi::rule<
Iterator, std::string(), Skipper> choicelabel;
41 qi::rule<
Iterator, ValueType(), Skipper> reward;
42 qi::rule<
Iterator, StateType(), Skipper> state;
43 qi::rule<
Iterator, ValueType(), Skipper> value;
49 StateType numTransitions;
53 std::vector<storm::generator::StateBehavior<ValueType, StateType>> stateBehaviors;
55 std::map<std::string, StateType> stateIndices;