AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
|
#include "probfd/state_space.h"
An interface representing a Markov Decision Process (MDP) without objective function.
This interface has four responsibilities:
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. | |
|
pure virtual |
Get the state ID for a given state.
Implemented in probfd::CompositeMDP< State, Action >.
|
pure virtual |
Get the state mapped to a given state ID.
Implemented in probfd::CompositeMDP< State, Action >, and probfd::pdbs::ProjectionStateSpace.
|
pure virtual |
Generates the applicable actions of the state.
Implemented in probfd::CompositeMDP< State, Action >.
|
pure virtual |
Generates the successor distribution for a given state and action.
Implemented in probfd::CompositeMDP< State, Action >.
|
pure virtual |
Generates all applicable actions and their corresponding successor distributions for a given state.
Implemented in probfd::CompositeMDP< State, Action >.
|
pure virtual |
Generates all applicable actions and their corresponding successor distributions for a given state.
Implemented in probfd::CompositeMDP< State, Action >.