#include "action.h"
+#include <cstdlib>
#include <iostream>
using namespace std;
using namespace __gnu_cxx;
_name = action._name;
_preconditions = action._preconditions;
_effects = action._effects;
+ _executable = action._executable;
}
const Literals& Action::effects(int value) const{
}
int Action::execute() const{
- cout << "Executing: " << _executable << endl;
- return 0;
+ cout << "Executing: " << _name << endl;
+ return system(_executable.c_str());
}
const string& Action::name() const{