#include <Problem.hpp>
| pddl_planner::representation::Problem::Problem |
( |
const std::string & |
name, |
|
|
const Domain & |
domain |
|
) |
| |
| void pddl_planner::representation::Problem::addInitialStatus |
( |
const Expression & |
e | ) |
|
Add an expression defining the initial status
- Parameters
-
- Exceptions
-
| std::invalid_argument | When validation fails for expression in the given context |
| void pddl_planner::representation::Problem::addObject |
( |
const TypedItem & |
type, |
|
|
bool |
overwrite = false |
|
) |
| |
Add additional constants – these will be added to the domain definition which is associated with this problem
| void pddl_planner::representation::Problem::addSubGoal |
( |
const Expression & |
e | ) |
|
Add a sub goal expression to the existing top level one
| void pddl_planner::representation::Problem::setGoal |
( |
const Expression & |
e | ) |
|
| std::string pddl_planner::representation::Problem::toLISP |
( |
| ) |
const |
Generate the problem in a LISP representation
- Returns
- problem definition in LISP
| bool pddl_planner::representation::Problem::undefined |
( |
| ) |
const |
|
inline |
Test if problem has been fully defined, i.e. that goals and a domain are set
- Returns
- true if goals and a domain are provided, false otherwise
| void pddl_planner::representation::Problem::validate |
( |
| ) |
const |
Perform simple syntax check
- Exceptions
-
| std::runtime_error | if syntax has errors |
| Domain pddl_planner::representation::Problem::domain |
| Expression pddl_planner::representation::Problem::goal |
| std::string pddl_planner::representation::Problem::name |
The documentation for this struct was generated from the following files:
- /build/rock-master-18.09-planning-pddl-planner-0.20171219/src/representation/Problem.hpp
- /build/rock-master-18.09-planning-pddl-planner-0.20171219/src/representation/Problem.cpp