AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
Loading...
Searching...
No Matches
probfd::MDP< typename, typename > Class Template Referenceabstract

#include "probfd/mdp.h"

Inheritance diagram for probfd::MDP< typename, typename >:
[legend]

Description

template<typename, typename>
class probfd::MDP< typename, typename >

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.
 

Member Function Documentation

◆ get_state_id()

template<typename State , typename Action >
virtual StateID probfd::StateSpace< State, Action >::get_state_id ( param_type< State > state)
pure virtualinherited

Get the state ID for a given state.

Implemented in probfd::CompositeMDP< State, Action >.

◆ get_state()

template<typename State , typename Action >
virtual State probfd::StateSpace< State, Action >::get_state ( StateID state_id)
pure virtualinherited

Get the state mapped to a given state ID.

Implemented in probfd::CompositeMDP< State, Action >, and probfd::pdbs::ProjectionStateSpace.

◆ generate_applicable_actions()

template<typename State , typename Action >
virtual void probfd::StateSpace< State, Action >::generate_applicable_actions ( param_type< State > state,
std::vector< Action > & result )
pure virtualinherited

Generates the applicable actions of the state.

Implemented in probfd::CompositeMDP< State, Action >.

◆ generate_action_transitions()

template<typename State , typename Action >
virtual void probfd::StateSpace< State, Action >::generate_action_transitions ( param_type< State > state,
param_type< Action > action,
Distribution< StateID > & result )
pure virtualinherited

Generates the successor distribution for a given state and action.

Implemented in probfd::CompositeMDP< State, Action >.

◆ generate_all_transitions() [1/2]

template<typename State , typename Action >
virtual void probfd::StateSpace< State, Action >::generate_all_transitions ( param_type< State > state,
std::vector< Action > & aops,
std::vector< Distribution< StateID > > & successors )
pure virtualinherited

Generates all applicable actions and their corresponding successor distributions for a given state.

Implemented in probfd::CompositeMDP< State, Action >.

◆ generate_all_transitions() [2/2]

template<typename State , typename Action >
virtual void probfd::StateSpace< State, Action >::generate_all_transitions ( param_type< State > state,
std::vector< TransitionType > & transitions )
pure virtualinherited

Generates all applicable actions and their corresponding successor distributions for a given state.

Implemented in probfd::CompositeMDP< State, Action >.

◆ get_termination_info()

virtual TerminationInfo probfd::CostFunction< typename, typename >::get_termination_info ( param_type< State > state)
pure virtualinherited

Returns the cost to terminate in a given state and checks whether a state is a goal.

See also
TerminationInfo

Implemented in probfd::CompositeMDP< State, Action >, and probfd::SimpleMDP< State, Action >.

◆ get_action_cost()

virtual value_t probfd::CostFunction< typename, typename >::get_action_cost ( param_type< Action > action)
pure virtualinherited

Gets the cost of an action.

Implemented in probfd::CompositeMDP< State, Action >.