]> ruin.nu Git - popboot.git/blob - action.cpp
initial execution of the plan
[popboot.git] / action.cpp
1 #include "action.h"
2 #include <iostream>
3 using namespace std;
4
5 Action::Action(std::string executable, literals preconditions, literals effects){
6         _executable = executable;
7         _preconditions = preconditions;
8         _effects = effects;
9 }
10
11 Action::Action(const Action& action){
12         _executable = action._executable;
13         _preconditions = action._preconditions;
14         _effects = action._effects;
15 }
16
17 literals Action::effects() const{
18         return _effects;
19 }
20
21 literals Action::preconditions() const{
22         return _preconditions;
23 }
24
25 int Action::execute() const{
26         cout << "Executing: " << _executable << endl;
27         return 0;
28 }