8template<
typename ValueType,
typename StateType>
13template<
typename ValueType,
typename StateType>
15 choices.push_back(std::move(choice));
18template<
typename ValueType,
typename StateType>
20 stateRewards.push_back(stateReward);
23template<
typename ValueType,
typename StateType>
25 this->stateRewards = std::move(stateRewards);
28template<
typename ValueType,
typename StateType>
30 this->expanded = newValue;
33template<
typename ValueType,
typename StateType>
38template<
typename ValueType,
typename StateType>
40 return choices.empty();
43template<
typename ValueType,
typename StateType>
45 return choices.begin();
48template<
typename ValueType,
typename StateType>
53template<
typename ValueType,
typename StateType>
58template<
typename ValueType,
typename StateType>
63template<
typename ValueType,
typename StateType>
68template<
typename ValueType,
typename StateType>
70 return choices.size();
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.