Storm
A Modern Probabilistic Model Checker
|
#include <StateBehavior.h>
Public Member Functions | |
StateBehavior () | |
Creates an empty behavior, i.e. | |
void | addChoice (Choice< ValueType, StateType > &&choice) |
Adds the given choice to the behavior of the state. | |
void | addStateReward (ValueType const &stateReward) |
Adds the given state reward to the behavior of the state. | |
void | addStateRewards (std::vector< ValueType > &&stateRewards) |
Adds the given state rewards to the behavior of the state. | |
void | setExpanded (bool newValue=true) |
Sets whether the state was expanded. | |
bool | wasExpanded () const |
Retrieves whether the state was expanded. | |
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 | begin () const |
Retrieves an iterator to the choices available in the behavior. | |
std::vector< Choice< ValueType, StateType > >::const_iterator | end () const |
Retrieves an iterator past the choices available in the behavior. | |
std::vector< Choice< ValueType, StateType > > const & | getChoices () const |
Retrieves the vector of choices. | |
std::vector< Choice< ValueType, StateType > > & | getChoices () |
Retrieves the vector of choices. | |
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. | |
Definition at line 12 of file StateBehavior.h.
storm::generator::StateBehavior< ValueType, StateType >::StateBehavior | ( | ) |
Creates an empty behavior, i.e.
the state was not yet expanded.
Definition at line 9 of file StateBehavior.cpp.
void storm::generator::StateBehavior< ValueType, StateType >::addChoice | ( | Choice< ValueType, StateType > && | choice | ) |
Adds the given choice to the behavior of the state.
Definition at line 14 of file StateBehavior.cpp.
void storm::generator::StateBehavior< ValueType, StateType >::addStateReward | ( | ValueType const & | stateReward | ) |
Adds the given state reward to the behavior of the state.
Definition at line 19 of file StateBehavior.cpp.
void storm::generator::StateBehavior< ValueType, StateType >::addStateRewards | ( | std::vector< ValueType > && | stateRewards | ) |
Adds the given state rewards to the behavior of the state.
Definition at line 24 of file StateBehavior.cpp.
std::vector< Choice< ValueType, StateType > >::const_iterator storm::generator::StateBehavior< ValueType, StateType >::begin | ( | ) | const |
Retrieves an iterator to the choices available in the behavior.
Definition at line 44 of file StateBehavior.cpp.
bool storm::generator::StateBehavior< ValueType, StateType >::empty | ( | ) | const |
Retrieves whether the behavior is empty in the sense that there are no available choices.
Definition at line 39 of file StateBehavior.cpp.
std::vector< Choice< ValueType, StateType > >::const_iterator storm::generator::StateBehavior< ValueType, StateType >::end | ( | ) | const |
Retrieves an iterator past the choices available in the behavior.
Definition at line 49 of file StateBehavior.cpp.
std::vector< Choice< ValueType, StateType > > & storm::generator::StateBehavior< ValueType, StateType >::getChoices | ( | ) |
Retrieves the vector of choices.
Definition at line 59 of file StateBehavior.cpp.
std::vector< Choice< ValueType, StateType > > const & storm::generator::StateBehavior< ValueType, StateType >::getChoices | ( | ) | const |
Retrieves the vector of choices.
Definition at line 54 of file StateBehavior.cpp.
std::size_t storm::generator::StateBehavior< ValueType, StateType >::getNumberOfChoices | ( | ) | const |
Retrieves the number of choices in the behavior.
Definition at line 69 of file StateBehavior.cpp.
std::vector< ValueType > const & storm::generator::StateBehavior< ValueType, StateType >::getStateRewards | ( | ) | const |
Retrieves the list of state rewards under selected reward models.
Definition at line 64 of file StateBehavior.cpp.
void storm::generator::StateBehavior< ValueType, StateType >::setExpanded | ( | bool | newValue = true | ) |
Sets whether the state was expanded.
Definition at line 29 of file StateBehavior.cpp.
bool storm::generator::StateBehavior< ValueType, StateType >::wasExpanded | ( | ) | const |
Retrieves whether the state was expanded.
Definition at line 34 of file StateBehavior.cpp.