1#ifndef PROBFD_STATE_SPACE_H
2#define PROBFD_STATE_SPACE_H
4#include "probfd/type_traits.h"
5#include "probfd/types.h"
43template <
typename State,
typename Action>
46 using TransitionType = Transition<Action>;
66 std::vector<Action>& result) = 0;
82 std::vector<Action>& aops,
91 std::vector<TransitionType>& transitions) = 0;
A convenience class that represents a finite probability distribution.
Definition task_state_space.h:27
An interface representing a Markov Decision Process (MDP) without objective function.
Definition state_space.h:44
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 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 StateID get_state_id(param_type< State > state)=0
Get the state ID for a given 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< TransitionType > &transitions)=0
Generates all applicable actions and their corresponding successor distributions for a given state.
The top-level namespace of probabilistic Fast Downward.
Definition command_line.h:8
typename std::conditional_t< is_cheap_to_copy_v< T >, T, const T & > param_type
Alias template defining the best way to pass a parameter of a given type.
Definition type_traits.h:25
A StateID represents a state within a StateIDMap. Just like Fast Downward's StateID type,...
Definition types.h:22