pddl_planner
Public Member Functions | List of all members
pddl_planner::representation::ArityValidator Class Reference

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)
 

Detailed Description

Class to validate usage of operations against argument requirements.

Constructor & Destructor Documentation

pddl_planner::representation::ArityValidator::ArityValidator ( const PredicateList predicates = PredicateList())

Member Function Documentation

bool pddl_planner::representation::ArityValidator::isOperator ( const Label label) const

Test if label represents an operator

Returns
true if label represents an operator, false otherwise
bool pddl_planner::representation::ArityValidator::isQuantifier ( const Label label) const

Test is label represents a quantifier

Returns
true if label represents a quantifier, false otherwise
void pddl_planner::representation::ArityValidator::validate ( const Label label,
uint8_t  arity 
)

Validate arity of given operation or quantifier

Parameters
labelIdentifier of operation or quantifier (or action)
Exceptions
std::invalid_argumentif arity is not correct for the given

The documentation for this class was generated from the following files: