Scheduler
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
mdp
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
18
ComplexAction::~ComplexAction
()
19
{
20
for
(
size_t
i
= 0;
i
<
actions
.size();
i
++)
21
{
22
//delete actions[i];
23
}
24
}
25
26
std::string
ComplexAction::getName
()
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
38
void
ComplexAction::performAction
()
39
{
40
for
(
size_t
i
= 0;
i
<
actions
.size();
i
++)
41
{
42
actions
[
i
]->performAction();
43
}
44
}
45
46
47
generatePbs.i
i
Definition:
generatePbs.py:6
Mdp::ComplexAction::performAction
void performAction()
Definition:
complexAction.cpp:38
Mdp::ComplexAction::~ComplexAction
~ComplexAction()
Definition:
complexAction.cpp:18
Mdp::ComplexAction::getName
std::string getName()
Definition:
complexAction.cpp:26
Mdp
Definition:
action.h:18
Mdp::ComplexAction::actions
std::vector< Action * > actions
Definition:
complexAction.h:29
complexAction.h
Generated on Sun Nov 26 2017 17:01:35 for Scheduler by
1.8.11