PARTONS
|
PARtonic Tomography Of Nucleon Software
|
Automation service is designed to dynamically run complex tasks (by calling service object methods) or to create some complex C++ objects, all described by an XML file. More...
Public Member Functions | |
AutomationService (const std::string &className) | |
Constructor. More... | |
virtual | ~AutomationService () |
Default destructor. More... | |
virtual void | resolveObjectDependencies () |
Call resolveObjectDependencies method of XMLValidatorI interface (after all modules have been registered and after all programm have been started) to retrieve XML schema file path from property file. More... | |
Scenario * | parseXMLFile (const std::string &xmlFilePath) const |
Open and validate XML file with XML schema file. More... | |
void | playScenario (Scenario *pScenario) const |
Scenario * | parseScenario (Scenario *pScenario) const |
Public Member Functions inherited from PARTONS::BaseObject | |
BaseObject (const std::string &className) | |
Constructor. More... | |
virtual | ~BaseObject () |
Default destructor. More... | |
virtual BaseObject * | clone () const |
Virtual clone function to allow the factory to clone all derived members object stored in the BaseObjectRegistry. More... | |
virtual std::string | toString () const |
Return a pre-formatted characters string for output visualization of class member's values. More... | |
void | serialize (ElemUtils::Packet &packet) const |
Used to split a complex C++ object into a concatenation of simple types. More... | |
void | unserialize (ElemUtils::Packet &packet) |
Used to rebuild a complex C++ object from a concatenation of simple type. More... | |
bool | operator< (const BaseObject &other) const |
Overload of < operator to sort BaseObject object by its indexId value. More... | |
const std::string & | getClassName () const |
unsigned int | getObjectId () const |
int | getIndexId () const |
void | setIndexId (int indexId) |
Static Public Attributes | |
static const unsigned int | classId |
Unique ID to automatically register the class in the registry. More... | |
Private Member Functions | |
const std::string & | getXmlSchemaFile () const |
Private Attributes | |
std::string | m_xmlSchemaFile |
XMLValidatorI * | m_pXMLValidatorI |
Specific interface to allow the plug or unplug xml validator (see AutomationService constructor) for third party libraries. Helpful for developers to avoid code rewriting and for more flexibility. More... | |
XMLParserI * | m_pXMLParserI |
Specific interface to allow the plug or unplug xml parser (see AutomationService constructor) for third party libraries. Helpful for developers to avoid code rewriting and for more flexibility. More... | |
CryptographicHashService * | m_pCryptographicHashService |
ResourceManager * | m_pResourceManager |
Static Private Attributes | |
static const std::string | PROPERTY_NAME_XML_SCHEMA_FILE_PATH |
Additional Inherited Members | |
Protected Member Functions inherited from PARTONS::BaseObject | |
BaseObject (const BaseObject &other) | |
Copy constructor. More... | |
void | info (const std::string &functionName, const std::string &message) const |
Print info message into logger. More... | |
void | debug (const std::string &functionName, const std::string &message) const |
Print debug message into logger. More... | |
void | warn (const std::string &functionName, const std::string &message) const |
Print warning message into logger. More... | |
void | errorMissingParameter (const std::string ¶meterName) const |
Use in automation process to throw exception when a parameter is missing from the XML scenario file. More... | |
Automation service is designed to dynamically run complex tasks (by calling service object methods) or to create some complex C++ objects, all described by an XML file.
It allow users to perform complex tasks in a simple way without know C++ programming language and without rebuild their project. Automation service provides some methods to retrieve Scenario or ComputationConfiguration objects from a specific XML file. Scenario can be used to automates the whole computation process by calling many other services to performs tasks previously defined in XML file. ComputationConfiguration is only used to configure a specific module, then you can do whatever you want with this new pre-configured module.
PARTONS::AutomationService::AutomationService | ( | const std::string & | className | ) |
Constructor.
className |
|
virtual |
Default destructor.
|
private |
Scenario * PARTONS::AutomationService::parseXMLFile | ( | const std::string & | xmlFilePath | ) | const |
void PARTONS::AutomationService::playScenario | ( | Scenario * | pScenario | ) | const |
pScenario |
|
virtual |
Call resolveObjectDependencies method of XMLValidatorI interface (after all modules have been registered and after all programm have been started) to retrieve XML schema file path from property file.
Reimplemented from PARTONS::BaseObject.
|
static |
Unique ID to automatically register the class in the registry.
|
private |
|
private |
|
private |
Specific interface to allow the plug or unplug xml parser (see AutomationService constructor) for third party libraries. Helpful for developers to avoid code rewriting and for more flexibility.
|
private |
Specific interface to allow the plug or unplug xml validator (see AutomationService constructor) for third party libraries. Helpful for developers to avoid code rewriting and for more flexibility.
|
private |
|
staticprivate |