#include <Sequence.h>
Collaboration diagram for SctCalibrationController::Sequence:
Public Member Functions | |
virtual | ~Sequence () |
Removes the SequenceData from IS. | |
void | addTest (auto_ptr< Test > test) |
Adds a Test to this Sequence. | |
const SequenceData & | getData () const |
Access the underlying SequenceData. | |
list< string > | getModuleList () const |
Get the list of modules in this Sequence. | |
void | setStatus (SequenceData::status_E status) |
Set the status of this Sequence - see SequenceData. | |
string | getUniqueID () const |
Get a unique ID for this Sequence - used by IS. | |
shared_ptr< Test > | Sequence::getTest (unsigned int index) const |
Get a Test. | |
Static Public Member Functions | |
shared_ptr< Sequence > | create (const string &name, unsigned long runNumber, unsigned long startScanNumber, const list< string > &list) |
Force creation using shared_ptrs and new. | |
Private Types | |
typedef vector< shared_ptr< Test > > | TestVector |
A vector of Tests! | |
Private Member Functions | |
Sequence (const string &name, unsigned long runNumber, unsigned long startScanNumber, const list< string > &list) | |
Creates a Sequence -. | |
void | publish () |
Put (create or update) the SequenceData into IS. | |
void | withdraw () |
Remove the SequenceData from IS Will not throw - just reports the problem.s. | |
Private Attributes | |
SequenceData | data |
The underlying data. | |
unsigned int | realSize |
For efficiency we allocate a slightly larger array in SequenceData than necessary for the Test names. | |
TestVector | tests |
The constituent Tests. |
It holds an underlying SequenceData that is put into IS and also references to the constituent Tests.
Definition at line 23 of file Sequence.h.
|
A vector of Tests!
Definition at line 104 of file Sequence.h. |
|
Removes the SequenceData from IS.
Definition at line 42 of file Sequence.cpp. References data, getUniqueID(), SequenceData::sequenceName, and withdraw(). |
Here is the call graph for this function:
|
Creates a Sequence -.
Definition at line 17 of file Sequence.cpp. References data, getUniqueID(), SequenceData::modules, SequenceData::modules_size, SequenceData::nTests, publish(), realSize, SequenceData::runNumber, SequenceData::sequenceName, SequenceData::startScanNumber, SequenceData::startTime, SequenceData::testNames, and SequenceData::testNames_size. Referenced by create(). |
Here is the call graph for this function:
|
Note transfer of ownership semantics. Definition at line 67 of file Sequence.cpp. References data, SequenceData::nTests, publish(), realSize, SequenceData::testNames, SequenceData::testNames_size, and tests. |
Here is the call graph for this function:
|
Force creation using shared_ptrs and new. This is because each Sequence is automatically added to the SequenceMap. Puts the SequenceData into IS.
Definition at line 47 of file Sequence.cpp. References Sequence(). |
Here is the call graph for this function:
|
Access the underlying SequenceData.
Definition at line 98 of file Sequence.cpp. References data. |
|
Get the list of modules in this Sequence.
Definition at line 53 of file Sequence.cpp. References data, SequenceData::modules, and SequenceData::modules_size. |
|
Get a unique ID for this Sequence - used by IS.
Definition at line 61 of file Sequence.cpp. References data, SequenceData::runNumber, and SequenceData::startScanNumber. Referenced by publish(), Sequence(), setStatus(), withdraw(), and ~Sequence(). |
|
Put (create or update) the SequenceData into IS. Will not throw - just reports the problem. Definition at line 119 of file Sequence.cpp. References data, getUniqueID(), and Sct::AbstractThrowable::sendToMrs(). Referenced by addTest(), Sequence(), and setStatus(). |
Here is the call graph for this function:
|
Get a Test.
|
|
Set the status of this Sequence - see SequenceData. Once a Sequence has entered the ABORTED or COMPLETED states, it cannot be changed.
Definition at line 102 of file Sequence.cpp. References data, SequenceData::endTime, getUniqueID(), publish(), and SequenceData::status. |
Here is the call graph for this function:
|
Remove the SequenceData from IS Will not throw - just reports the problem.s.
Definition at line 138 of file Sequence.cpp. References getUniqueID(), and Sct::AbstractThrowable::sendToMrs(). Referenced by ~Sequence(). |
Here is the call graph for this function:
|
The underlying data.
Definition at line 83 of file Sequence.h. Referenced by addTest(), getData(), getModuleList(), getUniqueID(), publish(), Sequence(), setStatus(), and ~Sequence(). |
|
For efficiency we allocate a slightly larger array in SequenceData than necessary for the Test names. This is the real size of that array. Definition at line 90 of file Sequence.h. Referenced by addTest(), and Sequence(). |
|
The constituent Tests.
Definition at line 105 of file Sequence.h. Referenced by addTest(). |