AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
|
#include "probfd/mdp.h"
Basic interface for MDPs.
Public Member Functions | |
virtual StateID | get_state_id (param_type< State > state)=0 |
Get the state ID for a given state. | |
virtual State | get_state (StateID state_id)=0 |
Get the state mapped to a given state ID. | |
virtual void | generate_applicable_actions (param_type< State > state, std::vector< Action > &result)=0 |
Generates the applicable actions of the state. | |
virtual void | generate_action_transitions (param_type< State > state, param_type< Action > action, Distribution< StateID > &result)=0 |
Generates the successor distribution for a given state and action. | |
virtual void | generate_all_transitions (param_type< State > state, std::vector< Action > &aops, std::vector< Distribution< StateID > > &successors)=0 |
Generates all applicable actions and their corresponding successor distributions for a given state. | |
virtual void | generate_all_transitions (param_type< State > state, std::vector< TransitionType > &transitions)=0 |
Generates all applicable actions and their corresponding successor distributions for a given state. | |
virtual TerminationInfo | get_termination_info (param_type< State > state)=0 |
Returns the cost to terminate in a given state and checks whether a state is a goal. | |
virtual value_t | get_action_cost (param_type< Action > action)=0 |
Gets the cost of an action. | |
|
pure virtualinherited |
Get the state ID for a given state.
Implemented in probfd::CompositeMDP< State, Action >.
|
pure virtualinherited |
Get the state mapped to a given state ID.
Implemented in probfd::CompositeMDP< State, Action >, and probfd::pdbs::ProjectionStateSpace.
|
pure virtualinherited |
Generates the applicable actions of the state.
Implemented in probfd::CompositeMDP< State, Action >.
|
pure virtualinherited |
Generates the successor distribution for a given state and action.
Implemented in probfd::CompositeMDP< State, Action >.
|
pure virtualinherited |
Generates all applicable actions and their corresponding successor distributions for a given state.
Implemented in probfd::CompositeMDP< State, Action >.
|
pure virtualinherited |
Generates all applicable actions and their corresponding successor distributions for a given state.
Implemented in probfd::CompositeMDP< State, Action >.
|
pure virtualinherited |
Returns the cost to terminate in a given state and checks whether a state is a goal.
Implemented in probfd::CompositeMDP< State, Action >, and probfd::SimpleMDP< State, Action >.
|
pure virtualinherited |
Gets the cost of an action.
Implemented in probfd::CompositeMDP< State, Action >.