1#ifndef STORM_GENERATOR_PRISM_STATEBEHAVIOR_H_
2#define STORM_GENERATOR_PRISM_STATEBEHAVIOR_H_
11template<
typename ValueType,
typename StateType = u
int32_t>
52 typename std::vector<Choice<ValueType, StateType>>::const_iterator
begin()
const;
57 typename std::vector<Choice<ValueType, StateType>>::const_iterator
end()
const;
62 std::vector<Choice<ValueType, StateType>>
const&
getChoices()
const;
67 std::vector<Choice<ValueType, StateType>>&
getChoices();
81 std::vector<Choice<ValueType, StateType>> choices;
84 std::vector<ValueType> stateRewards;
void addChoice(Choice< ValueType, StateType > &&choice)
Adds the given choice to the behavior of the state.
std::vector< Choice< ValueType, StateType > > const & getChoices() const
Retrieves the vector of choices.
void addStateReward(ValueType const &stateReward)
Adds the given state reward to the behavior of the state.
bool empty() const
Retrieves whether the behavior is empty in the sense that there are no available choices.
std::vector< Choice< ValueType, StateType > >::const_iterator end() const
Retrieves an iterator past the choices available in the behavior.
StateBehavior()
Creates an empty behavior, i.e.
std::vector< Choice< ValueType, StateType > >::const_iterator begin() const
Retrieves an iterator to the choices available in the behavior.
bool wasExpanded() const
Retrieves whether the state was expanded.
void addStateRewards(std::vector< ValueType > &&stateRewards)
Adds the given state rewards to the behavior of the state.
std::vector< ValueType > const & getStateRewards() const
Retrieves the list of state rewards under selected reward models.
std::size_t getNumberOfChoices() const
Retrieves the number of choices in the behavior.
void setExpanded(bool newValue=true)
Sets whether the state was expanded.