AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
Loading...
Searching...
No Matches
probfd::algorithms::acyclic_vi::StatisticsObserver< State, Action > Struct Template Reference

#include "probfd/algorithms/acyclic_value_iteration.h"

Inheritance diagram for probfd::algorithms::acyclic_vi::StatisticsObserver< State, Action >:
[legend]

Description

template<typename State, typename Action>
struct probfd::algorithms::acyclic_vi::StatisticsObserver< State, Action >

An observer that collects basic statistics of the acyclic value iteration algorithm.

Template Parameters
State- The state type of the underlying MDP model.
Action- The state type of the underlying MDP model.

Public Member Functions

void on_state_selected_for_expansion (const State &)
 Called when the algorithm selects a state for expansion.
 
void on_goal_state (const State &)
 Called when a goal state is encountered during the expansion check.
 
void on_terminal_state (const State &)
 Called when a terminal state is encountered during the expansion check.
 
void on_pruned_state (const State &)
 Called when a state is pruned during the expansion check.
 

Member Function Documentation

◆ on_state_selected_for_expansion()

template<typename State , typename Action >
void probfd::algorithms::acyclic_vi::StatisticsObserver< State, Action >::on_state_selected_for_expansion ( const State & )
virtual

Called when the algorithm selects a state for expansion.

Implements probfd::algorithms::acyclic_vi::AcyclicValueIterationObserver< State, Action >.

◆ on_goal_state()

template<typename State , typename Action >
void probfd::algorithms::acyclic_vi::StatisticsObserver< State, Action >::on_goal_state ( const State & )
virtual

Called when a goal state is encountered during the expansion check.

Implements probfd::algorithms::acyclic_vi::AcyclicValueIterationObserver< State, Action >.

◆ on_terminal_state()

template<typename State , typename Action >
void probfd::algorithms::acyclic_vi::StatisticsObserver< State, Action >::on_terminal_state ( const State & )
virtual

Called when a terminal state is encountered during the expansion check.

Implements probfd::algorithms::acyclic_vi::AcyclicValueIterationObserver< State, Action >.

◆ on_pruned_state()

template<typename State , typename Action >
void probfd::algorithms::acyclic_vi::StatisticsObserver< State, Action >::on_pruned_state ( const State & )
virtual

Called when a state is pruned during the expansion check.

Implements probfd::algorithms::acyclic_vi::AcyclicValueIterationObserver< State, Action >.