_preconditions = _action.preconditions();
}
-Action Node::action(){
+const Action& Node::action() const{
return _action;
}
}
-void Node::execute(literals effects){
- for (literals::iterator effect = effects.begin(); effect != effects.end(); ++effect){
+void Node::execute(const literals& effects){
+ for (literals::const_iterator effect = effects.begin(); effect != effects.end(); ++effect){
_preconditions.erase(find(_preconditions.begin(),_preconditions.end(), *effect));
}
if (_preconditions.size() != 0)