Made PDDL action preconditions and effects optional.
This commit is contained in:
@@ -27,8 +27,8 @@ class Action
|
||||
const std::string &name() const;
|
||||
|
||||
const expressions::Variables ¶meters() const;
|
||||
const Expression &precondition() const;
|
||||
const Expression &effect() const;
|
||||
const Expression *precondition() const;
|
||||
const Expression *effect() const;
|
||||
|
||||
private:
|
||||
Action() = default;
|
||||
|
@@ -19,6 +19,7 @@ namespace expressions
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// TODO: refactor without reference wrapper
|
||||
template<class Type>
|
||||
class Reference: public ExpressionCRTP<Reference<Type>>
|
||||
{
|
||||
|
Reference in New Issue
Block a user