#include "action.h"
+#include <iostream>
+using namespace std;
Action::Action(std::string executable, literals preconditions, literals effects){
_executable = executable;
_effects = action._effects;
}
-literals Action::effects() const{
+const literals& Action::effects() const{
return _effects;
}
-literals Action::preconditions() const{
+const literals& Action::preconditions() const{
return _preconditions;
}
int Action::execute() const{
-
+ cout << "Executing: " << _executable << endl;
return 0;
}
+
+const string& Action::executable() const{
+ return _executable;
+}