AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
Loading...
Searching...
No Matches
probfd::pdbs::ProjectionStateSpace Class Referenceabstract

#include "probfd/pdbs/projection_state_space.h"

Inheritance diagram for probfd::pdbs::ProjectionStateSpace:
[legend]

Description

Represents the state space of a projection of a probabilistic planning task.

Public Member Functions

StateRank get_state (StateID id) override
 Get the state mapped to a given state ID.
 
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 StateID get_state_id (param_type< State > state)=0
 Get the state ID for a given state.
 
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 value_t get_action_cost (param_type< Action > action)=0
 Gets the cost of an action.
 

Member Function Documentation

◆ get_state()

StateRank probfd::pdbs::ProjectionStateSpace::get_state ( StateID state_id)
overridevirtual

Get the state mapped to a given state ID.

Implements probfd::StateSpace< State, Action >.

◆ get_termination_info() [1/2]

TerminationInfo probfd::SimpleMDP< StateRank, const ProjectionOperator * >::get_termination_info ( param_type< StateRank > state)
inlinefinalinherited

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

See also
TerminationInfo

◆ get_termination_info() [2/2]

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_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 >.

◆ 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_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 >.