class diagtest : public testenvironment Abstract class for diagnostics tests.
| | measurementTime (double duration, double cycles, double f, bool roundup = true) Calculate measurement time. |
| | adjustForSampling (double t, double dt) Adjust for sampling. |
| | fineAdjustForSampling (tainsec_t t, double dt) Fine adjust for sampling. |
| | diagtest (const string& Name) Default constructor. |
| | ~diagtest () Destructor. |
| | self () const Diagnostics test object creation function. |
| | name () const Name of diagnostics test class. |
| | init (diagStorage& Storage, const cmdnotify& Notify, rtddManager& RTDDMgr, excitationManager& EnvExc, excitationManager& TestExc, int KeepTraces, bool rtMode = true) Initialization method. |
| | setStep (int Step, int resindex) Set step method. |
| | getResultNumber () Get next result index method. |
| | begin (std::ostringstream& errmsg) Startup method. |
| | end (std::ostringstream& errmsg) Cleanup method. |
| | setup (std::ostringstream& errmsg, tainsec_t starttime, syncpointer& sync) Setup method. |
| | readEnvironment () Read environment. |
| | mux Mutex to protect test iterator |
| | myname Name of test |
| | notify Command notification object |
| | storage Pointer to diagnostic storage object |
| | rtddMgr Pointer to test point management object |
| | testExc Pointer to excitation manager for test channels |
| | RTmode Real-time mode |
| | step test iteration step |
| | rindex first index to be used for saving results |
| | rnumber number of result records saved |
| | keepTraces keep the original time traces? |
This abstract class implements the basic functionality of a diagnostics test. Every diagnostics test class must be derived from this one. It implements abstract methods to query the name, get the excitation channels, get the measurement time intervals and the analysis algorithms.The public interface of this object is multi-thread safe.
static double adjustForSampling(double t, double dt)
dt - sampling period in sec
static tainsec_t fineAdjustForSampling(tainsec_t t, double dt)
dt - sampling period in sec
explicit diagtest(const string& Name)
virtual ~diagtest()
virtual diagtest* self() const
virtual string name() const
virtual bool init(diagStorage& Storage, const cmdnotify& Notify, rtddManager& RTDDMgr, excitationManager& EnvExc, excitationManager& TestExc, int KeepTraces, bool rtMode = true)
Notify - command notification object
EnvExc - excitation manager for environment
TestExc - excitation manager for test signals
KeepTraces - do we keep the original time traces
rtMode - Real-time mode if true (old data otherwise)
virtual void setStep(int Step, int resindex)
resindex - first index to be used for result
virtual int getResultNumber()
virtual bool begin(std::ostringstream& errmsg)
virtual bool end(std::ostringstream& errmsg)
virtual bool setup(std::ostringstream& errmsg, tainsec_t starttime, syncpointer& sync)
starttime - start time of test
sync - synchronization point (return)
virtual bool readEnvironment()
mutable recursivemutex mux
string myname
cmdnotify notify
diagStorage* storage
rtddManager* rtddMgr
excitationManager* testExc
bool RTmode
int step
int rindex
alphabetic index hierarchy of classes
Please send questions and comments to sigg_d@ligo-wa.caltech.edu
generated by doc++