Public Types | Public Member Functions | Private Member Functions | Private Attributes
PythonScript Class Reference

#include <PythonScript.h>

List of all members.

Public Types

enum  FailType { OK = 0, WARN = 1, ERROR = 2, STALL = 3 }

Public Member Functions

void addFailedValidation (string description)
void addOutput (boost::shared_ptr< diagnostic_msgs::DiagnosticStatus > status)
void addUsedInternalFunction (string functionName)
void addUsedTopic (string topicName)
void addValidation (string description)
boost::posix_time::ptime getExecutionTime ()
string getFailedValidation ()
FailType getFailType ()
double getInterval ()
string getName ()
ScriptOutputType getOutput ()
string getParameter (string name)
string getSourceCode ()
set< string > & getUsedInternalFunction ()
set< string > & getUsedTopics ()
vector< string > & getValidations ()
bool isValidationFailed ()
bool operator< (const PythonScript &script) const
 PythonScript (string name, string sourceCode, map< string, string > parameters)
 PythonScript (string name, string sourceCode)
 PythonScript (const PythonScript &script)
void setValidationFailed (bool isFailed)
void updateExecutionTime ()
void updateExecutionTime (boost::posix_time::ptime executionTime)

Private Member Functions

void init (string name, string sourceCode, map< string, string > parameters)

Private Attributes

boost::posix_time::ptime _executionTime
vector< string > _failedValidations
FailType _failType
double _interval
string _name
ScriptOutputType _output
map< string, string > _parameters
string _sourceCode
set< string > _usedInternalFunctions
set< string > _usedTopics
bool _validationFailed
vector< string > _validations

Detailed Description

Definition at line 21 of file PythonScript.h.


Member Enumeration Documentation

Enumerator:
OK 
WARN 
ERROR 
STALL 

Definition at line 24 of file PythonScript.h.


Constructor & Destructor Documentation

PythonScript::PythonScript ( string  name,
string  sourceCode,
map< string, string >  parameters 
) [inline]

Definition at line 31 of file PythonScript.h.

PythonScript::PythonScript ( string  name,
string  sourceCode 
) [inline]

Definition at line 35 of file PythonScript.h.

PythonScript::PythonScript ( const PythonScript script) [inline]

Definition at line 39 of file PythonScript.h.


Member Function Documentation

void PythonScript::addFailedValidation ( string  description) [inline]

Definition at line 65 of file PythonScript.h.

void PythonScript::addOutput ( boost::shared_ptr< diagnostic_msgs::DiagnosticStatus >  status) [inline]

Definition at line 41 of file PythonScript.h.

void PythonScript::addUsedInternalFunction ( string  functionName) [inline]

Definition at line 56 of file PythonScript.h.

void PythonScript::addUsedTopic ( string  topicName) [inline]

Definition at line 49 of file PythonScript.h.

void PythonScript::addValidation ( string  description) [inline]

Definition at line 64 of file PythonScript.h.

boost::posix_time::ptime PythonScript::getExecutionTime ( ) [inline]

Definition at line 72 of file PythonScript.h.

string PythonScript::getFailedValidation ( ) [inline]

Definition at line 67 of file PythonScript.h.

Definition at line 76 of file PythonScript.h.

double PythonScript::getInterval ( ) [inline]

Definition at line 74 of file PythonScript.h.

string PythonScript::getName ( ) [inline]

Definition at line 80 of file PythonScript.h.

Definition at line 47 of file PythonScript.h.

string PythonScript::getParameter ( string  name) [inline]

Definition at line 78 of file PythonScript.h.

string PythonScript::getSourceCode ( ) [inline]

Definition at line 45 of file PythonScript.h.

Definition at line 61 of file PythonScript.h.

set<string>& PythonScript::getUsedTopics ( ) [inline]

Definition at line 54 of file PythonScript.h.

vector<string>& PythonScript::getValidations ( ) [inline]

Definition at line 68 of file PythonScript.h.

void PythonScript::init ( string  name,
string  sourceCode,
map< string, string >  parameters 
) [inline, private]

Definition at line 106 of file PythonScript.h.

Definition at line 66 of file PythonScript.h.

bool PythonScript::operator< ( const PythonScript script) const [inline]

Definition at line 82 of file PythonScript.h.

void PythonScript::setValidationFailed ( bool  isFailed) [inline]

Definition at line 63 of file PythonScript.h.

Definition at line 70 of file PythonScript.h.

void PythonScript::updateExecutionTime ( boost::posix_time::ptime  executionTime) [inline]

Definition at line 71 of file PythonScript.h.


Member Data Documentation

boost::posix_time::ptime PythonScript::_executionTime [private]

Definition at line 96 of file PythonScript.h.

vector<string> PythonScript::_failedValidations [private]

Definition at line 94 of file PythonScript.h.

Definition at line 97 of file PythonScript.h.

double PythonScript::_interval [private]

Execution interval in seconds

Definition at line 102 of file PythonScript.h.

string PythonScript::_name [private]

Definition at line 87 of file PythonScript.h.

Definition at line 104 of file PythonScript.h.

map<string, string> PythonScript::_parameters [private]

Definition at line 95 of file PythonScript.h.

string PythonScript::_sourceCode [private]

Definition at line 88 of file PythonScript.h.

Definition at line 92 of file PythonScript.h.

set<string> PythonScript::_usedTopics [private]

Definition at line 91 of file PythonScript.h.

Definition at line 89 of file PythonScript.h.

vector<string> PythonScript::_validations [private]

Definition at line 93 of file PythonScript.h.


The documentation for this class was generated from the following file:


scriptable_monitor
Author(s):
autogenerated on Wed Aug 26 2015 16:21:30