patrick
/
plasp
Archived
1
0
Fork 0
This repository has been archived on 2023-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
plasp/include/plasp/pddl/expressions/PredicateDeclaration.h

52 lines
1.0 KiB
C
Raw Normal View History

2016-06-04 17:10:50 +02:00
#ifndef __PLASP__PDDL__EXPRESSIONS__PREDICATE_DECLARATION_H
#define __PLASP__PDDL__EXPRESSIONS__PREDICATE_DECLARATION_H
2016-06-03 17:12:39 +02:00
#include <plasp/pddl/Expression.h>
namespace plasp
{
namespace pddl
{
namespace expressions
{
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// PredicateDeclaration
//
////////////////////////////////////////////////////////////////////////////////////////////////////
class PredicateDeclaration: public ExpressionCRTP<PredicateDeclaration>
2016-06-03 17:12:39 +02:00
{
public:
static const Expression::Type ExpressionType = Expression::Type::PredicateDeclaration;
static void parse(Context &context, Domain &domain);
2016-06-03 17:12:39 +02:00
public:
const std::string &name() const;
const Variables &arguments() const;
bool isDeclared() const;
void normalizeParameterNames();
2016-06-03 17:12:39 +02:00
private:
PredicateDeclaration();
void setDeclared();
bool m_isDeclared;
std::string m_name;
Variables m_parameters;
2016-06-03 17:12:39 +02:00
};
////////////////////////////////////////////////////////////////////////////////////////////////////
}
}
}
#endif