PARTONS
|
PARtonic Tomography Of Nucleon Software
|
Class representing single task. More...
Public Member Functions | |
Task () | |
Default constructor. More... | |
virtual | ~Task () |
Destructor. More... | |
virtual std::string | toString () const |
Return a pre-formatted characters string for output visualization of class member's values. More... | |
Scenario * | getScenario () const |
Get pointer to the scenario that holds this task. More... | |
void | setScenario (Scenario *pScenario) |
Set pointer to the scenario that holds this task. More... | |
const std::string & | getServiceName () const |
Get name of service responsible for running this scenario. More... | |
void | setServiceName (const std::string &serviceName) |
Set name of service responsible for running this scenario. More... | |
const std::string & | getFunctionName () const |
Get name of function to be evaluated by this task. More... | |
void | setFunctionName (const std::string &functionName) |
Set name of function to be evaluated by this task. More... | |
bool | isStoreInDB () const |
Check if the result of this task is going to be store in the database. More... | |
void | setStoreInDB (bool storeInDb) |
Set if the result of this task is going to be store in the database. More... | |
unsigned int | getScenarioTaskIndexNumber () const |
Get index of this task in a given scenario holding it. More... | |
void | setScenarioTaskIndexNumber (unsigned int scenarioTaskIndexNumber) |
Set index of this task in a given scenario holding it. More... | |
const BaseObjectData & | getModuleComputationConfiguration () const |
Get base object data stored in xml block given by XMLParserI::COMPUTATION_CONFIGURATION_NODE_NAME tag. More... | |
void | setModuleComputationConfiguration (const BaseObjectData &moduleComputationConfiguration) |
Set base object data stored in xml block given by XMLParserI::COMPUTATION_CONFIGURATION_NODE_NAME tag. More... | |
const BaseObjectData & | getKinematicsData () const |
Get base object data stored in xml block given by XMLParserI::KINEMATICS_NODE_NAME tag. More... | |
void | setKinematicsData (const BaseObjectData &kinematicsData) |
Set base object data stored in xml block given by XMLParserI::KINEMATICS_NODE_NAME tag. More... | |
const BaseObjectData & | getTaskParameters () const |
Get base object data stored in xml block given by XMLParserI::TASK_NODE_NAME tag. More... | |
void | setTaskParameters (const BaseObjectData &taskParameters) |
Set base object data stored in xml block given by XMLParserI::TASK_NODE_NAME tag. More... | |
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 void | resolveObjectDependencies () |
Because of the initialization step order of the program, objects are registered in a total random order and some objects depend on others. 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) |
Private Attributes | |
Scenario * | m_pScenario |
Pointer to the scenario that holds this task. More... | |
std::string | m_serviceName |
Name of service responsible for running this scenario. More... | |
std::string | m_functionName |
Name of function to be evaluated by this task. More... | |
bool | m_storeInDB |
Switch indicating if the result of this task is going to be store in the database. More... | |
unsigned int | m_scenarioTaskIndexNumber |
Index of this task in a given scenario holding it. More... | |
BaseObjectData | m_moduleComputationConfiguration |
Base object data stored in xml block given by XMLParserI::COMPUTATION_CONFIGURATION_NODE_NAME tag. More... | |
BaseObjectData | m_kinematicsData |
Base object data stored in xml block given by XMLParserI::KINEMATICS_NODE_NAME tag. More... | |
BaseObjectData | m_taskParameters |
Base object data stored in xml block given by XMLParserI::TASK_NODE_NAME tag. More... | |
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... | |
Class representing single task.
This class represents a single task to be evaluated by one of services. An object of this class is intended to be created by a xml parser during running PARTONS with a specific xml file, which can be local or can be retrieved from a database. Therefore, this class may be seen as a representation of a single task encoded in a xml file, like:
PARTONS::Task::Task | ( | ) |
Default constructor.
|
virtual |
Destructor.
const std::string & PARTONS::Task::getFunctionName | ( | ) | const |
Get name of function to be evaluated by this task.
const BaseObjectData & PARTONS::Task::getKinematicsData | ( | ) | const |
Get base object data stored in xml block given by XMLParserI::KINEMATICS_NODE_NAME tag.
const BaseObjectData & PARTONS::Task::getModuleComputationConfiguration | ( | ) | const |
Get base object data stored in xml block given by XMLParserI::COMPUTATION_CONFIGURATION_NODE_NAME tag.
Scenario * PARTONS::Task::getScenario | ( | ) | const |
Get pointer to the scenario that holds this task.
unsigned int PARTONS::Task::getScenarioTaskIndexNumber | ( | ) | const |
Get index of this task in a given scenario holding it.
const std::string & PARTONS::Task::getServiceName | ( | ) | const |
Get name of service responsible for running this scenario.
const BaseObjectData & PARTONS::Task::getTaskParameters | ( | ) | const |
Get base object data stored in xml block given by XMLParserI::TASK_NODE_NAME tag.
bool PARTONS::Task::isStoreInDB | ( | ) | const |
Check if the result of this task is going to be store in the database.
void PARTONS::Task::setFunctionName | ( | const std::string & | functionName | ) |
Set name of function to be evaluated by this task.
void PARTONS::Task::setKinematicsData | ( | const BaseObjectData & | kinematicsData | ) |
Set base object data stored in xml block given by XMLParserI::KINEMATICS_NODE_NAME tag.
void PARTONS::Task::setModuleComputationConfiguration | ( | const BaseObjectData & | moduleComputationConfiguration | ) |
Set base object data stored in xml block given by XMLParserI::COMPUTATION_CONFIGURATION_NODE_NAME tag.
void PARTONS::Task::setScenario | ( | Scenario * | pScenario | ) |
Set pointer to the scenario that holds this task.
void PARTONS::Task::setScenarioTaskIndexNumber | ( | unsigned int | scenarioTaskIndexNumber | ) |
Set index of this task in a given scenario holding it.
void PARTONS::Task::setServiceName | ( | const std::string & | serviceName | ) |
Set name of service responsible for running this scenario.
void PARTONS::Task::setStoreInDB | ( | bool | storeInDb | ) |
Set if the result of this task is going to be store in the database.
void PARTONS::Task::setTaskParameters | ( | const BaseObjectData & | taskParameters | ) |
Set base object data stored in xml block given by XMLParserI::TASK_NODE_NAME tag.
|
virtual |
Return a pre-formatted characters string for output visualization of class member's values.
Reimplemented from PARTONS::BaseObject.
|
private |
Name of function to be evaluated by this task.
|
private |
Base object data stored in xml block given by XMLParserI::KINEMATICS_NODE_NAME tag.
|
private |
Base object data stored in xml block given by XMLParserI::COMPUTATION_CONFIGURATION_NODE_NAME tag.
|
private |
Pointer to the scenario that holds this task.
|
private |
Index of this task in a given scenario holding it.
|
private |
Name of service responsible for running this scenario.
|
private |
Switch indicating if the result of this task is going to be store in the database.
|
private |
Base object data stored in xml block given by XMLParserI::TASK_NODE_NAME tag.