Scheduler
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
complexAction.cpp
Go to the documentation of this file.
1 
10 #include "complexAction.h"
11 
12 #include <sstream>
13 
14 using namespace Mdp;
15 
16 
17 
19 {
20  for (size_t i = 0; i < actions.size(); i++)
21  {
22  //delete actions[i];
23  }
24 }
25 
27 {
28  std::stringstream str;
29  str << "Complex action performing the following:\n";
30  for (size_t i = 0; i < actions.size(); i++)
31  {
32  str << "." << actions[i]->getName() << "\n";
33  }
34  return str.str();
35 }
36 
37 
39 {
40  for (size_t i = 0; i < actions.size(); i++)
41  {
42  actions[i]->performAction();
43  }
44 }
45 
46 
47 
std::string getName()
Definition: action.h:18
std::vector< Action * > actions
Definition: complexAction.h:29