# kommenatar
apache
-NET
+NET, ?LOGGER
httpd.sh
0: HTTPD, APACHE # kommentar
const Literals& Node::effects() const{
return _effects;
}
+void Node::satisfyCondition(std::string effect){
+ _preconditions.erase(_preconditions.find(effect));
+}
void Node::execute(const Literals& effects){
cerr << "Executing: " << _action.name() << endl;
void execute(const Literals& effects);
bool executed() const;
const Literals& effects() const;
+ void satisfyCondition(std::string effect);
protected:
Action _action;
}else{
cerr << "Action with effect: " << precond->first << " not found!" << endl;
cerr << "This is a soft precondition, so we will continue" << endl;
+ node->satisfyCondition(precond->first);
}
}
}