In file supervisory.h:

class basic_supervisory : public supervisory, protected testenvironment

Object for implementing a diagnostics supervisory task

Inheritance:


Public Fields

static const double setupTime
Minimum setup time = 5 sec

Public Methods

explicit basic_supervisory (const string& Name)
Constructor.
virtual bool setup ()
Setup function.

Protected Fields

bool allowCancel
allow aborting test?
bool noStimulus
is it allowed to apply a stimulus?
bool noAnalysis
should we do the analysis?
int keepTraces
flag describing whether the original time traces are kept
char siteDefault
default setting for the site identifier
char siteForce
site identifier override
char ifoDefault
default setting for the ifo identifier
char ifoForce
ifo identifier override
tainsec_t start
start time in GPS nsec
double wait
time to wait before starting the test in sec
double repeatrate
rate of repeating tests in sec
string waitForStart
channel for trigger start of test
string waitAtEachStep
channel for trigger start of measurement step
string signalEndOfStep
channel for signal end of measurement step
string signalEnd
channel for signal end of test

Protected Methods

virtual bool readEnvironment ()
Read environment.
virtual bool setMeasurementTime (tainsec_t mtime)
Set the measurement time.

Inherited from supervisory:

Public Fields

std::ostringstream errmsg

Public Methods

virtual supervisory* self() const
virtual string name() const
virtual bool init(diagStorage& Storage, const cmdnotify& Notify, rtddManager& RTDDMgr, testpointMgr& TPMgr, bool* Abort = 0, bool* Pause = 0, bool rtMode = true)
virtual bool run()

Protected Fields

recursivemutex mux
string myname
bool RTmode
diagStorage* storage
cmdnotify notify
rtddManager* rtddMgr
testpointMgr* tpMgr
bool* abort
bool* pause

Inherited from testenvironment:

Public Classes

class environment
int num
array index of Env[]
bool active
active flag
string channel
channel name
string waveform
string describing waveform
std::vector <float> points
points of arbitrary waveform
double wait
settling time
environment()
Default constructor
environment(const environment& env)
Copy constructor

Public Fields

typedef std::vector <environment> environmentlist

Public Methods

virtual void setEnvironmentExcitationManager( excitationManager* excmgr)
virtual bool subscribeEnvironment(std::ostringstream& errmsg)
virtual double waitEnvironment() const
virtual bool startEnvrionment(tainsec_t starttime = 0, tainsec_t timeout = -1)
virtual bool stopEnvrionment(tainsec_t timeout = -1)
virtual bool clearEnvrionment(tainsec_t timeout = -1)

Protected Fields

mutable recursivemutex envmux
excitationManager* envexc
environmentlist envlist

Documentation

Basic test supervisory This object implements a basic diagnostics supervisory task. It is an abstract object which implements default settings (Def), synchronization settings (Sync) and an environment (Env[]).

static const double setupTime
Minimum setup time = 5 sec

explicit basic_supervisory(const string& Name)
Constructss a basic.supervisory object.

virtual bool setup()
A function which reads the defaults settings from the Def data object and the synchronization parameters from the Sync data object.
Returns:
true if successful

bool allowCancel
allow aborting test?

bool noStimulus
is it allowed to apply a stimulus?

bool noAnalysis
should we do the analysis?

int keepTraces
flag describing whether the original time traces are kept

char siteDefault
default setting for the site identifier

char siteForce
site identifier override

char ifoDefault
default setting for the ifo identifier

char ifoForce
ifo identifier override

tainsec_t start
start time in GPS nsec

double wait
time to wait before starting the test in sec

double repeatrate
rate of repeating tests in sec

string waitForStart
channel for trigger start of test

string waitAtEachStep
channel for trigger start of measurement step

string signalEndOfStep
channel for signal end of measurement step

string signalEnd
channel for signal end of test

virtual bool readEnvironment()
A function which reads the enviroment from the storage object into the environment list (uses the Env[] variable sets).
Returns:
true if successful

virtual bool setMeasurementTime(tainsec_t mtime)
Set the measurement time in the diagnostics storage object.
Returns:
true if successful


Direct child classes:
standardsupervisory
Author:
Written April 1999 by Daniel Sigg
Version:
0.1

alphabetic index hierarchy of classes


Please send questions and comments to sigg_d@ligo-wa.caltech.edu


generated by doc++