In file stdsuper.h:

class standardsupervisory : public basic_supervisory

Standard supervisory task

Inheritance:


Public Methods

explicit standardsupervisory ()
Default constructor
virtual ~standardsupervisory ()
Destructor
virtual bool setup ()
Setup method.
virtual bool run ()
Run method.
virtual supervisory* self () const
New standard supervisory object.

Protected Classes

enum syncevent
synchronization event
normal
synchronization point expired normally
aborted
aborted by user
paused
paused by user
resumed
resumed by user
timeout
timed-out

Protected Fields

excitationManager envExc
excitation manager for the environment
excitationManager iterExc
excitation manager for the test iterator
excitationManager testEnvExc
excitation manager for the test environment
excitationManager testExc
excitation manager for the test signals
std::auto_ptr <testiterator> testiter
test iterator
std::auto_ptr <diagtest> test
test

Protected Methods

virtual bool runRT ()
Run real-time method.
virtual bool runOL ()
Run off-line method.
virtual bool timeWait (double duration) const
Wait method.
virtual bool triggerWait (const string& channel) const
Wait trigger method.
virtual syncevent syncWait (const syncpoint& sync, bool testPaused) const
Wait sync method.
virtual syncevent syncRead (const syncpoint& sync, taisec_t& last, taisec_t& lastlast, bool testPaused) const
Read sync method.
virtual bool resumeWait () const
Wait resume method.
virtual bool signalSend (const string& channel) const
Wait trigger method.

Inherited from basic_supervisory:

Public Fields

static const double setupTime

Protected Fields

bool allowCancel
bool noStimulus
bool noAnalysis
int keepTraces
char siteDefault
char siteForce
char ifoDefault
char ifoForce
tainsec_t start
double wait
double repeatrate
string waitForStart
string waitAtEachStep
string signalEndOfStep
string signalEnd

Protected Methods

virtual bool readEnvironment()
virtual bool setMeasurementTime(tainsec_t mtime)

Inherited from supervisory:

Public Fields

std::ostringstream errmsg

Public Methods

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)

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

Standard supervisory This object implements a standard supervisory task.

explicit standardsupervisory()
Constructs a standard supervisory object.

virtual ~standardsupervisory()
Destructs a standard supervisory object.

virtual bool setup()
Sets up the supervisory task.
Returns:
true if successful

virtual bool run()
Runs the standard supervisory task.
Returns:
true if successfuls

virtual supervisory* self() const
A function which returns a new standard supervisory object.
Returns:
name of diagnotsics test class

enum syncevent
synchronization event

normal
synchronization point expired normally

aborted
aborted by user

paused
paused by user

resumed
resumed by user

timeout
timed-out

excitationManager envExc
excitation manager for the environment

excitationManager iterExc
excitation manager for the test iterator

excitationManager testEnvExc
excitation manager for the test environment

excitationManager testExc
excitation manager for the test signals

std::auto_ptr <testiterator> testiter
test iterator

std::auto_ptr <diagtest> test
test

virtual bool runRT()
Runs the standard supervisory task in real time mode.
Returns:
true if successfuls

virtual bool runOL()
Runs the standard supervisory task off-line.
Returns:
true if successfuls

virtual bool timeWait(double duration) const
Waits the specified time. Periodically checks the abort condition. Returns false if aborted; true otherwise.
Returns:
false if aborted
Parameters:
duration - time to wait

virtual bool triggerWait(const string& channel) const
Waits for a trigger signal. Periodically checks an EPICS channel for a trigger. Returns false if aborted; true otherwise.
Returns:
false if aborted
Parameters:
channel - name of trigger channel

virtual syncevent syncWait(const syncpoint& sync, bool testPaused) const
Waits for the specified synchronization point. Periodically checks the abort condition. Returns false if aborted; true otherwise.
Returns:
false if aborted
Parameters:
sync - synchronization point
testPaused - true if test is already paused

virtual syncevent syncRead(const syncpoint& sync, taisec_t& last, taisec_t& lastlast, bool testPaused) const
Reads past data from the nds and waits for the specified synchronization point. Periodically checks the abort condition. Returns false if aborted; true otherwise.
Returns:
false if aborted
Parameters:
sync - synchronization point
last - Measurement stop time of last read
lastlast - Measurement stop time of read before last
testPaused - true if test is already paused

virtual bool resumeWait() const
Waits for test to resume. Periodically checks the abort condition. Returns false if aborted; true otherwise.
Returns:
false if aborted

virtual bool signalSend(const string& channel) const
Sends a trigger signal. Sets and resets an EPICS to indicate a trigger.
Returns:
true if successful


This class has no child classes.
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++