#include <ScriptExecuter.h>
Public Member Functions | |
CompilationResult | compile (PythonScript &script) |
void | execute (PythonScript &pythonScript, ScriptInputType input) |
ScriptExecuter () | |
void | simulate (PythonScript &pythonScript) |
Static Private Member Functions | |
static PyObject * | convertToPythonType (string value) |
static PyObject * | internalFunction (PyObject *self, PyObject *args) |
static PyObject * | internalTopic (PyObject *self, PyObject *args) |
static PyObject * | internalValidation (PyObject *self, PyObject *args) |
Static Private Attributes | |
static PythonScript * | _currentScript = NULL |
static boost::mutex | _executionMutex |
static bool | _runtime |
static bool | _simulation |
static map< string, string > | _topicValues |
static bool | _validationFailed |
static vector< string > | _validationsFailed |
static vector< string > | _validationsPassed |
static PyMethodDef | MonitorPythonLib [] |
Definition at line 32 of file ScriptExecuter.h.
Definition at line 32 of file ScriptExecuter.cpp.
CompilationResult ScriptExecuter::compile | ( | PythonScript & | script | ) |
PyObject * ScriptExecuter::convertToPythonType | ( | string | value | ) | [static, private] |
Definition at line 77 of file ScriptExecuter.cpp.
void ScriptExecuter::execute | ( | PythonScript & | pythonScript, |
ScriptInputType | input | ||
) |
Definition at line 42 of file ScriptExecuter.cpp.
PyObject * ScriptExecuter::internalFunction | ( | PyObject * | self, |
PyObject * | args | ||
) | [static, private] |
Definition at line 162 of file ScriptExecuter.cpp.
PyObject * ScriptExecuter::internalTopic | ( | PyObject * | self, |
PyObject * | args | ||
) | [static, private] |
Definition at line 124 of file ScriptExecuter.cpp.
PyObject * ScriptExecuter::internalValidation | ( | PyObject * | self, |
PyObject * | args | ||
) | [static, private] |
Definition at line 141 of file ScriptExecuter.cpp.
void ScriptExecuter::simulate | ( | PythonScript & | pythonScript | ) |
Executes python script without validations and internal function calls. Used to extract involved topic names and validation names
pythonScript |
Definition at line 59 of file ScriptExecuter.cpp.
PythonScript * ScriptExecuter::_currentScript = NULL [static, private] |
Definition at line 59 of file ScriptExecuter.h.
boost::mutex ScriptExecuter::_executionMutex [static, private] |
Definition at line 58 of file ScriptExecuter.h.
bool ScriptExecuter::_runtime [static, private] |
Definition at line 61 of file ScriptExecuter.h.
bool ScriptExecuter::_simulation [static, private] |
Definition at line 62 of file ScriptExecuter.h.
map< string, string > ScriptExecuter::_topicValues [static, private] |
Definition at line 66 of file ScriptExecuter.h.
bool ScriptExecuter::_validationFailed [static, private] |
Definition at line 63 of file ScriptExecuter.h.
vector< string > ScriptExecuter::_validationsFailed [static, private] |
Definition at line 65 of file ScriptExecuter.h.
vector< string > ScriptExecuter::_validationsPassed [static, private] |
Definition at line 64 of file ScriptExecuter.h.
PyMethodDef ScriptExecuter::MonitorPythonLib [static, private] |
{ {"internal_function", &ScriptExecuter::internalFunction, METH_O, "" }, {"internal_validation", &ScriptExecuter::internalValidation, METH_O, "" }, {"internal_topic", &ScriptExecuter::internalTopic, METH_O, "" }, {NULL, NULL, 0, NULL} }
Definition at line 67 of file ScriptExecuter.h.