AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
Loading...
Searching...
No Matches
probabilistic_task.h
1#ifndef PROBFD_PROBABILISTIC_TASK_H
2#define PROBFD_PROBABILISTIC_TASK_H
3
4#include "downward/abstract_task.h" // IWYU pragma: export
5
6#include "probfd/value_type.h"
7
8namespace probfd {
9
19class ProbabilisticTask : public PlanningTask {
20public:
23
25 virtual value_t get_operator_cost(int op_index) const = 0;
26
29 virtual int get_num_operator_outcomes(int op_index) const = 0;
30
33 virtual value_t
34 get_operator_outcome_probability(int op_index, int outcome_index) const = 0;
35
38 virtual int
39 get_operator_outcome_id(int op_index, int outcome_index) const = 0;
40
43 virtual int
44 get_num_operator_outcome_effects(int op_index, int outcome_index) const = 0;
45
48 virtual FactPair
49 get_operator_outcome_effect(int op_index, int outcome_index, int eff_index)
50 const = 0;
51
56 int op_index,
57 int outcome_index,
58 int eff_index) const = 0;
59
63 int op_index,
64 int outcome_index,
65 int eff_index,
66 int cond_index) const = 0;
67};
68
69} // namespace probfd
70
71#endif
Represents a probabilistic planning task with axioms and conditional effects.
Definition probabilistic_task.h:19
virtual FactPair get_operator_outcome_effect_condition(int op_index, int outcome_index, int eff_index, int cond_index) const =0
Get the number of effect conditions for the effects with given index of outcome with given index of t...
virtual FactPair get_operator_outcome_effect(int op_index, int outcome_index, int eff_index) const =0
Get the effect with index eff_index of the outcome with index outcome_index of the probabilistic oper...
virtual value_t get_operator_outcome_probability(int op_index, int outcome_index) const =0
Get the probabilistic outcome probability of the outcome with index outcome_index of the probabilisti...
virtual int get_num_operator_outcome_effect_conditions(int op_index, int outcome_index, int eff_index) const =0
Get the number of effect conditions for the effect with index eff_index of the outcome with index out...
virtual int get_num_operator_outcome_effects(int op_index, int outcome_index) const =0
Get the number of effects of the outcome with index outcome_index of the probabilistic operator with ...
virtual int get_num_operator_outcomes(int op_index) const =0
Get the number of probabilistic outcomes of the probabilistic operator with index op_index.
virtual value_t get_operator_cost(int op_index) const =0
Get the cost of the probabilistic operator with index op_index.
virtual value_t get_non_goal_termination_cost() const =0
Get the cost of terminating in a non-goal state.
virtual int get_operator_outcome_id(int op_index, int outcome_index) const =0
Get the global outcome index for the outcome with index outcome_index of the probabilistic operator w...
The top-level namespace of probabilistic Fast Downward.
Definition command_line.h:8
double value_t
Typedef for the state value type.
Definition aliases.h:7