22 #include "predicate.h" 37 : name_(name), condition_(condition), attrs_(attrs)
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> &
Fawkes library namespace.
Predicate(const std::string &name, bool condition, const std::vector< std::string > &attrs)
Constructor.
A representation of a Predicate in the STN.
const std::vector< std::string > & attrs() const
Get the attributes of the predicate.
std::string name() const
Get the name of the predicate.
bool condition() const
Get the condition of the predicate.
bool operator==(const Predicate &rhs)
Compare two Predicates.