22 #include "predicate.h"
37 : name_(name), condition_(condition), attrs_(attrs)
47 operator<<(std::ostream &strm,
const Predicate &a)
49 strm <<
"\t" << a.name_ <<
"," << a.condition_;
50 for (std::string s : a.attrs_) {
65 return ((name_ == rhs.name_) && (condition_ == rhs.condition_) && (attrs_ == rhs.attrs_));
89 const std::vector<std::string> &
A representation of a Predicate in the STN.
Predicate(const std::string &name, bool condition, const std::vector< std::string > &attrs)
Constructor.
bool condition() const
Get the condition of the predicate.
const std::vector< std::string > & attrs() const
Get the attributes of the predicate.
std::string name() const
Get the name of the predicate.
bool operator==(const Predicate &rhs)
Compare two Predicates.
Fawkes library namespace.