#include <AnalysisAlgorithm.h>
Inheritance diagram for SctAnalysis::AnalysisAlgorithm:
Public Member Functions | |
AnalysisAlgorithm (const TestData &testData, const string &moduleName) throw () | |
Default constructor, to be used in creation of map. | |
virtual | ~AnalysisAlgorithm () throw () |
Destructor. | |
const TestData & | getTestData () const throw () |
get a pointer to the cached TestData; | |
const std::string | getModuleName () const throw () |
Get the name of the module which this algorithm is working on. | |
virtual boost::shared_ptr< AnalysisAlgorithm > | clone (const TestData &testData, const string &moduleName) const=0 throw () |
Must be overridden by sub-classes. | |
virtual void | canAddFitScanResult (const std::string &name) throw (Sct::LogicError, Sct::IoError) |
Notify algorithm that it may add a named FitScanResult to this TestResult. | |
virtual void | canAddRawScanResult (const std::string &name) throw (Sct::LogicError, Sct::IoError) |
Notify algorithm that it may add a named RawScanResult to this TestResult. | |
bool | isDone () const throw () |
Method indicates when a particular analysis is finished. | |
boost::shared_ptr< SctData::TestResult > | getTestResult () const |
Access to the TestResult if required. | |
boost::recursive_mutex & | getMutex () const |
Access the mutex. | |
Protected Member Functions | |
void | setTestResult (boost::shared_ptr< SctData::TestResult > testresult) |
Allows concrete classes to set the TestResult member after they create one of the appropriate type. | |
void | checkTestResultExists () const throw (Sct::LogicError) |
Used by other methods to ensure that a TestResult has been made. | |
void | addFit (const std::string &name) throw (Sct::LogicError, Sct::IoError) |
Convenience method can called by derived class when notification is given that a new FitScanResult is available. | |
void | addRaw (const std::string &name) throw (Sct::LogicError, Sct::IoError) |
Convenience method can called by derived class when notification is given that a new RawScanResult is available. | |
void | initializeTestResult () throw (Sct::LogicError) |
Useful function that initializes TestResult from Test and module name. | |
void | finish () throw (Sct::IoError, Sct::LogicError) |
Method callable by published the TestResult, and sets `done'. | |
AnalysisAlgorithm () | |
Private Attributes | |
const std::string | m_modulename |
name of the module being worked on. | |
boost::shared_ptr< SctData::TestResult > | m_result |
pointer to the result.
| |
const TestData & | m_test |
pointer to the testdata. | |
bool | m_done |
true if finish() has been called. | |
boost::recursive_mutex | m_access |
access to the algorithm can be locked for thread-safeness. |
Definition at line 24 of file AnalysisAlgorithm.h.
|
Default constructor, to be used in creation of map.
Definition at line 29 of file AnalysisAlgorithm.h. |
|
Destructor.
Definition at line 22 of file AnalysisAlgorithm.cpp. |
|
Definition at line 20 of file AnalysisAlgorithm.cpp. |
|
Convenience method can called by derived class when notification is given that a new FitScanResult is available.
Definition at line 48 of file AnalysisAlgorithm.cpp. References Sct::IS::IOManagerIS::instance(). |
|
Convenience method can called by derived class when notification is given that a new RawScanResult is available.
Definition at line 59 of file AnalysisAlgorithm.cpp. References Sct::IS::IOManagerIS::instance(). |
|
Notify algorithm that it may add a named FitScanResult to this TestResult. Default is to do nothing, but concrete classes should react as they see fit!
Definition at line 56 of file AnalysisAlgorithm.h. |
|
Notify algorithm that it may add a named RawScanResult to this TestResult. Default is to do nothing, but concrete classes can react as they see fit!
Definition at line 63 of file AnalysisAlgorithm.h. |
|
Used by other methods to ensure that a TestResult has been made.
Definition at line 28 of file AnalysisAlgorithm.cpp. |
|
Must be overridden by sub-classes. Returns a shared pointer to a concrete AnalysisAlgorithm of the correct type. Primarily used by the map to get an AnalysisAlgorithm of the correct type. Implemented in SctAnalysis::FullBypassAlgorithm, SctAnalysis::NMaskAlgorithm, SctAnalysis::NoiseOccupancyAlgorithm, SctAnalysis::NPtGainAlgorithm, SctAnalysis::PipelineAlgorithm, SctAnalysis::StrobeDelayAlgorithm, SctAnalysis::TimeWalkAlgorithm, and SctAnalysis::TrimRangeAlgorithm. |
|
Method callable by published the TestResult, and sets `done'.
Definition at line 70 of file AnalysisAlgorithm.cpp. References TestSummaryIS::dataString, SctData::TestSummary::SummaryManager::instance(), and Sct::IS::IOManagerIS::instance(). |
|
Get the name of the module which this algorithm is working on.
Definition at line 43 of file AnalysisAlgorithm.h. References m_modulename. |
|
Access the mutex.
Definition at line 76 of file AnalysisAlgorithm.h. References m_access. |
|
get a pointer to the cached TestData;
Definition at line 38 of file AnalysisAlgorithm.h. References m_test. |
|
Access to the TestResult if required.
Definition at line 71 of file AnalysisAlgorithm.h. References m_result. |
|
Useful function that initializes TestResult from Test and module name.
Definition at line 34 of file AnalysisAlgorithm.cpp. |
|
Method indicates when a particular analysis is finished.
Definition at line 67 of file AnalysisAlgorithm.h. References m_done. |
|
Allows concrete classes to set the TestResult member after they create one of the appropriate type.
Definition at line 82 of file AnalysisAlgorithm.h. References m_result. |
|
access to the algorithm can be locked for thread-safeness.
Definition at line 115 of file AnalysisAlgorithm.h. Referenced by getMutex(). |
|
true if finish() has been called.
Definition at line 114 of file AnalysisAlgorithm.h. Referenced by isDone(). |
|
name of the module being worked on.
Definition at line 111 of file AnalysisAlgorithm.h. Referenced by getModuleName(). |
|
pointer to the result.
Definition at line 112 of file AnalysisAlgorithm.h. Referenced by getTestResult(), and setTestResult(). |
|
pointer to the testdata.
Definition at line 113 of file AnalysisAlgorithm.h. Referenced by getTestData(). |