|
pddl_planner
|
Class to validate usage of operations against argument requirements. More...
#include <Domain.hpp>
Public Member Functions | |
| ArityValidator (const PredicateList &predicates=PredicateList()) | |
| bool | isOperator (const Label &label) const |
| bool | isQuantifier (const Label &label) const |
| void | validate (const Label &label, uint8_t arity) |
Class to validate usage of operations against argument requirements.
| pddl_planner::representation::ArityValidator::ArityValidator | ( | const PredicateList & | predicates = PredicateList() | ) |
| bool pddl_planner::representation::ArityValidator::isOperator | ( | const Label & | label | ) | const |
Test if label represents an operator
| bool pddl_planner::representation::ArityValidator::isQuantifier | ( | const Label & | label | ) | const |
Test is label represents a quantifier
| void pddl_planner::representation::ArityValidator::validate | ( | const Label & | label, |
| uint8_t | arity | ||
| ) |
Validate arity of given operation or quantifier
| label | Identifier of operation or quantifier (or action) |
| std::invalid_argument | if arity is not correct for the given |
1.8.13