CARMA C++
|
Monitor system base class. More...
#include <carma/monitor/MonitorSystem.h>
Public Member Functions | |
std::string | addTransportTimesAsString (std::ostringstream o) const |
Dumps transport statistics as a table, with write delays, and transport/write times printed out as doubles, with fixed precision. More... | |
AlarmSubsystem & | alarm () const |
Get reference to the alarm subsystem. More... | |
AntennaCommon & | antennaCommon (int index) const |
Get reference to an AntennaCommon container in an ovro or bima or sza subsystem. More... | |
AstroSubsystem & | astro () const |
Get reference to an Astro container. More... | |
BimaSubsystem & | bima (int index) const |
Get reference to a bima antenna subsystem. More... | |
C3gDataflowSubsystem & | c3gDataflow (const int index) const |
C3gMax23PipelineSubsystem & | c3gMax23Pipeline () const |
Get reference to carma 23 station 3g correlator pipeline. More... | |
C3gMax8PipelineSubsystem & | c3gMax8Pipeline () const |
Get reference to carma 8 station 3g correlator pipeline. More... | |
C3gRemapperSubsystem & | c3gRemapper (const int index) const |
Carma3GBandSubsystem & | carma3gBand (const int index) const |
Get reference to a CARMA3G correlator band subsystem. More... | |
CarmaSlcBandSubsystem & | carmaSlcBand (const int index) const |
Get reference to a spectral line correlator band subsystem. More... | |
CentralIfSubsystem & | centralIf () const |
Get reference to the centalIF subsystem. More... | |
ControlSubsystem & | control () const |
Get reference to the control subsystem. More... | |
DataflowSubsystem & | dataflow () const |
Get reference to the control subsystem. More... | |
DelayEngineSubsystem & | delay () const |
Get reference to the delay engine subsystem. More... | |
FaultSubsystem & | fault () const |
Get reference to fault subsystem. More... | |
size_t | getActualMonitorSystemSize () const |
Capacity usage related method - returns actual size used in bytes across all subsystems. More... | |
long | getActualNumMonitorPoints () const |
Capacity usage related method - returns actual # of monitor points across all subsystems. More... | |
long | getActualNumMonitorPoints (const MonitorValueType type) const |
Capacity usage related method - returns actual # of monitor points of type. More... | |
long | getActualNumMonitorSamples () const |
Capacity related method - returns actual # of monitor samples across all subsystems. More... | |
long | getActualNumMonitorSamples (MonitorValueType type) const |
Capacity related method - returns actual # of monitor samples of type <pretype across all subsystems. More... | |
long | getActualNumMultiSampleMonitorPoints () const |
Capacity usage related method - returns actual # of monitor points with multiple samples across all subsystems. More... | |
long | getActualNumSubsystems () const |
Capacity usage related method - returns actual number of subsystems allocated. More... | |
size_t | getAllocatedMonitorSystemSize () const |
Capacity usage related method - returns total size allocated in bytes across all subsystems. More... | |
long | getAllocatedNumMonitorPoints () const |
Capacity usage related method - returns allocated monitor point capacity across all subsystems. More... | |
long | getAllocatedNumMonitorSamples () const |
Capacity related method - returns total monitor sample capacity across all subsystems. More... | |
long | getAllocatedNumSubsystems () const |
Capacity usage related method - returns total number of subsystems allocated. More... | |
int | getCarma3gBandCount () const |
Get the number of carma3g bands. More... | |
int | getCarmaSlcBandCount () const |
Get the number of carmaSlcBands. More... | |
MonitorSubsystem & | getChildSubsystem (int index) const |
Get underlying subsystem by index. More... | |
double | getCollatorWriteDelay () const |
Delay offset (in seconds) from the corrected UTC half-second when the System frame is written to IPQ on the ACC. More... | |
double | getCollatorWriteTime () const |
MJD when this system frame was actually written to the IPQ. More... | |
size_t | getCountedMonitorSystemSize () const |
Capacity usage related method - returns total size counted, in bytes across all subsystems. More... | |
long | getCountedNumMonitorPoints () const |
Capacity usage related method - returns number of monitor points present across all subsystems - number is obtained by iterating over all monitor points, so method is likely to be expensive. More... | |
long | getCountedNumMonitorSamples () const |
Capacity related method - returns number of monitor samples counted across all subsystems. More... | |
double | getFinalWriteTime () const |
Gets MJD when this system frame was actually read by the fault system. More... | |
virtual int | getFrameCount () const |
Get the frame count for the last read frame. More... | |
size_t | getMaxMonitorSystemSize () const |
Capacity usage related method - returns total size allocated in bytes across all subsystems. More... | |
long | getMaxNumMonitorPoints () const |
Capacity usage related method - returns total allocated monitor point capacity across all subsystems. More... | |
long | getMaxNumMonitorSamples () const |
Capacity related method - returns total allocated monitor sample capacity across all subsystems. More... | |
long | getNumValidSubsystems () const |
Returns number of valid subsystems. More... | |
double | getRawReadTime () const |
Gets MJD when this system frame was actually read by the fault system. More... | |
SystemFrameBuffer & | getSystemFrameBuffer () const |
Get the underlying SystemFrameBuffer. More... | |
size_t | getTotalMonitorSystemSize () const |
Capacity related method - returns total size available in bytes across all subsystems. More... | |
long | getTotalNumMonitorPoints () const |
Capacity related method - returns total monitor point capacity across all subsystems. More... | |
long | getTotalNumMonitorSamples () const |
Capacity related method - returns total monitor sample capacity across all subsystems. More... | |
long | getTotalNumSubsystems () const |
Capacity related method - returns total subsystem capacity. More... | |
int | getWbcBandCount () const |
Get the number of wbcBands. More... | |
ImrSubsystem & | imr () const |
Get reference to imr subsystem. More... | |
bool | isCurrent () const |
Returns true if the monitor subsystem contains data that is current. More... | |
LineLengthSubsystem & | lineLength () const |
Get reference to the lineLength subsystem. More... | |
LoberotatorSubsystem & | loberotator () const |
Get reference to the loberotator subsystem. More... | |
LoRefSubsystem & | loRef () const |
Get reference to the LOref subsystem. More... | |
MasterClockSubsystem & | masterclock () const |
Get reference to the masterclock subsystem. More... | |
MonitorSystem (const std::string &systemName, long nSubsystems, long nMonitorPoints, long nSamples, int queueDepth=SubsystemFrameBuffer::kDefaultQueueDepth) | |
Constructor base subsystem configuration. More... | |
OpacityMonitorSubsystem & | opacityMonitor () const |
Get reference to the opacityMonitor subsystem. More... | |
OvroSubsystem & | ovro (int index) const |
Get reference to ovro antenna subsystem. More... | |
PhaseMonitorSubsystem & | phaseMonitor () const |
Get reference to the phase monitor subsystem. More... | |
ProjectDatabaseManagerSubsystem & | projectDatabaseManager () const |
Get reference to the projectdatabase manager subsystem. More... | |
virtual unsigned int | read () |
Reads oldest unread data from the IPQ into the local set of monitor points. More... | |
virtual bool | readNewest () |
Reads in the newest data from the IPQ into the local set of monitor points. More... | |
virtual bool | readNewestConditionalCopy () |
If new data is available it is copied from the queue into the monitor system. More... | |
virtual bool | readNewestIfStale () |
Reads in data from the IPQ into the local set of monitor points if data is stale, that is, !isCurrent(). More... | |
void | resetQueue () |
Moves read pointer beyond top of queue so a read will block until the next write. More... | |
void | resetTimes () |
Resets collator write time - call clearAllTimes to conform to name of similar routine in ::carma:monitor::MonitorSubsystem and allows for more times to be added. More... | |
void | setFinalWriteTime (double mjdTimestamp) |
Sets MJD when this system frame was actually read by the fault system. More... | |
void | setFinalWriteTime () |
void | setRawReadTime (double mjdTimestamp) |
Sets MJD when this system frame was actually read by the fault system. More... | |
void | setRawReadTime () |
SignalPathSubsystem & | signalPath () const |
Get reference to the signal path subsystem. More... | |
SlDataflowSubsystem & | slDataflow (const int index) const |
SldcSubsystem & | sldc () const |
Get reference to the spectral line downconverter subsystem. More... | |
SlPipelineSubsystem & | slPipeline () const |
Get reference to the spectral line pipeline subsystem. More... | |
SlRemapperSubsystem & | slRemapper (const int index) const |
SystemFrameBuffer & | systemFrameBuffer () const |
Get reference to the underlying storage. More... | |
SystemStatusSubsystem & | systemStatus () const |
Get reference to the system status subsystem. More... | |
SzaSubsystem & | sza (int index) const |
Get reference to sza antenna subsystem. More... | |
TestSubsystem & | test () const |
Get reference to the test subsystem. More... | |
virtual std::string | transportStatisticsToString (bool canonical=false) const |
Dumps transport statistics as a table, with write delays, and transport/write times printed out as doubles, with fixed precision. More... | |
VlbiSubsystem & | vlbi () const |
Get reference to the vlbi subsystem. More... | |
WbcBandSubsystem & | wbcBand (const int index) const |
Get reference to a wideband correlator band subsystem. More... | |
WbDataflowSubsystem & | wbDataflow (const int index) const |
WbdcSubsystem & | wbdc () const |
Get reference to wideband downconverter subsystem. More... | |
WbPipelineSubsystem & | wbPipeline () const |
Get reference to the wideband line pipeline subsystem. More... | |
WbRemapperSubsystem & | wbRemapper (const int index) const |
WeatherSubsystem & | weather () const |
Get reference to the weather subsystem. More... | |
virtual void | write () |
Write out the monitor point data values. More... | |
virtual | ~MonitorSystem () |
Destructor. More... | |
![]() | |
bool | isActive () |
Checks to see if this system is actively receiving data. More... | |
MonitorSystemContainer (const std::string &systemName) | |
Constructor base subsystem configuration. More... | |
virtual | ~MonitorSystemContainer () |
Destructor. More... | |
![]() | |
void | add (MonitorComponent &component) |
Add a subcomponent to this container A reference is kept to this subcomponent, so the caller is responsible for managing the lifecycle of the subcomponent; this container simply expects that it be available for access. More... | |
const Child & | getChild (int index) const |
Get reference to child monitor component by index. More... | |
::std::vector< Child > | getChildVec () const |
Get a vector of monitor components contained by this component. More... | |
MonitorComponent * | getComponentPtr (const ::std::string &name, bool caseSensitive) const |
Get a contained monitor component by hierarchical name The hierarchical name starts below this container and consist of dot (".") separated components. More... | |
MonitorPoint & | getFirstMonitorPoint () |
Recursively find the first monitor point in this container. More... | |
MonitorPoint & | getMonitorPoint (const std::string &name, bool caseSensitive) const |
Get a monitor point by name (hierarchical name OK). More... | |
MonitorPoint & | getMonitorPoint (tagIDType tagID) const |
Get a monitor point by tagID. More... | |
MonitorPoint * | getMonitorPointPtr (const std::string &name, bool caseSensitive) const |
MonitorPoint * | getMonitorPointPtr (tagIDType tagID) const |
int | getNumChildren () const |
Get the number of monitor components contained by this component. More... | |
virtual int | getNumContainerChildren () const |
Get the number of child monitor containers contained by this component. More... | |
virtual int | getNumContainerDescendants () const |
Get the number of child monitor containers contained by this component and it's children. More... | |
virtual int | getNumDescendants () const |
Get the total number of monitor components contained by this component and it's children. More... | |
int | getNumMonitorPoints (bool recurse=false) const |
Get the number of monitor points. More... | |
int | getNumMonitorPoints () |
Get the total number of monitor points in this container. More... | |
int | getNumSamples () |
Get the total number of samples in this container. More... | |
bool | hasAllData () const |
See if all MPs in this component and below have data samples. More... | |
virtual ::std::string | hierarchyToString (bool canonical=false, bool verbose=false, bool value=true, int sampleIndex=0, int indent=0, int levels=-1) const |
Dump this and all contained monitor components to a string. More... | |
virtual ::std::string | hierarchyToStringAverage (bool canonical=false, bool verbose=false, bool value=true, int indent=0, int levels=-1) const |
Dump this and all contained monitor components to a string. More... | |
virtual void | hierarchyToVector (::std::vector< ::std::string > &hierarchyList, bool canonical=false, bool verbose=false, int sampleIndex=0) const |
Dump this and all contained monitor component strings into a map hierarchy. More... | |
virtual std::string | leafToString (bool verbose=false, bool value=true, int sampleIndex=0) const |
Dump all leaf nodes below this component to a string. More... | |
MonitorContainer (const ::std::string &name) | |
Constructor. More... | |
virtual ::std::string | monitorPointTags (bool untagged=false) const |
Write list of monitor points and their tagIDs to a string, one monitor point per line. More... | |
virtual bool | operator== (const MonitorComponent &component) const |
Compares this monitor container for equality to the one passed. More... | |
void | setArchivePriority (const MonitorComponent::ARCHIVE_PRIORITY priority, bool onlyDEFAULT=true) |
Recursively set the archive priority of all monitor points below. More... | |
virtual void | setCanonicalName (const std::string &parents) |
Recursively set the canonical component name for this and all below. More... | |
virtual void | setMonitorPointAttributes () |
Set attributes of all monitor points held anywhere in the hierarchy within (and below) this container. More... | |
void | setNoData () const |
Recursively mark all data samples as INVALID_NO_DATA. More... | |
void | setPersistent (bool persistent) |
Set the persistent attribute for the value of a MonitorPoint, or in the case of a container for its descendants (recursively). More... | |
void | setValidity (MonitorPoint::VALIDITY validity) |
Recursively set validity for all samples of all monitor points below this container. More... | |
std::string | toString (bool canonicalName=false, bool verbose=false, bool value=true, int sampleIndex=0, int indent=0) const |
Write this monitor component to a string. More... | |
std::string | toStringAverage (bool canonicalName=false, bool verbose=false, bool value=true, int indent=0) const |
Write this monitor component to a string, using frame average values. More... | |
~MonitorContainer () | |
Destructor. More... | |
![]() | |
const std::string & | getCanonicalName () const |
Get the canonical component name. More... | |
virtual const std::string & | getDescription () const |
Get the verbose description of the monitor component. More... | |
virtual const std::string & | getLongName () const |
Get the long name of the monitor component. More... | |
virtual const std::string & | getName () const |
Get the component name (leaf part of canonical name). More... | |
virtual std::string | getPhysicalDeviceName () const |
Get the physical device name, if one exists. More... | |
std::string | getPhysicalDeviceString () const |
Get the physical device name, if one exists, enclosed in parentheses. More... | |
std::string | getPhysicalName () const |
Get the physical name, which is location.device.component or if there is no associated physical device it is just component name. More... | |
virtual const std::string & | getShortName () const |
Get the short name of the monitor component. More... | |
virtual bool | isMonitorPoint () const |
Identifies this component as a MonitorPoint or any derivative Should be over-ridden by the MonitorPoint class; others that don't derive from MP can use this default implementation. More... | |
virtual bool | isSubsystem () const |
Check if the component is a MonitorSubsystem. More... | |
MonitorComponent (const std::string &name) | |
Constructor. More... | |
bool | operator!= (const MonitorComponent &component) const |
Checks if components are not equal. More... | |
void | setDescription (const std::string &text) |
Set the verbose description of the monitor component. More... | |
void | setLongName (const std::string &name) |
Set the long name of the monitor component. More... | |
void | setName (const std::string &name) |
Set the leaf part of the canonical name of the monitor component. More... | |
void | setShortName (const std::string &name) |
Set the short name of the monitor component. More... | |
void | setShortName (const std::string &name, int index) |
Set the short name of the monitor component, with an index appended. More... | |
virtual | ~MonitorComponent () |
Destructor. More... | |
Protected Member Functions | |
SubsystemFrame & | getChildSubsystemFrame (int index) const |
![]() | |
virtual void | setLocalMonitorPointAttributes () |
Set attributes of all monitor points held directly by this container. More... | |
Additional Inherited Members | |
![]() | |
enum | ARCHIVE_PRIORITY { VITAL, USEFUL, NORMAL, DEBUG, VERBOSE, DEFAULT, DONTARCHIVE } |
Archiving priority. More... | |
![]() | |
static std::string | archivePriorityToString (MonitorComponent::ARCHIVE_PRIORITY priority) |
Get a string representation for an archive priority. More... | |
static std::string | convertAllLower (std::string name) |
Convert a name to all lower case. More... | |
![]() | |
static Child | findDescendant (const MonitorContainer &rootContainer, const ::std::string &name, bool caseSensitive) |
![]() | |
bool | debug_ |
![]() | |
std::ostream & | operator<< (std::ostream &os, const MonitorComponent &component) |
Monitor system base class.
Definition at line 81 of file MonitorSystem.h.
carma::monitor::MonitorSystem::MonitorSystem | ( | const std::string & | systemName, |
long | nSubsystems, | ||
long | nMonitorPoints, | ||
long | nSamples, | ||
int | queueDepth = SubsystemFrameBuffer::kDefaultQueueDepth |
||
) |
Constructor base subsystem configuration.
systemName | monitor system name |
nSubsystems | number of subsystems |
nMonitorPoints | number of monitor points |
nSamples | number of samples |
|
virtual |
Destructor.
std::string carma::monitor::MonitorSystem::addTransportTimesAsString | ( | std::ostringstream | o | ) | const |
Dumps transport statistics as a table, with write delays, and transport/write times printed out as doubles, with fixed precision.
o | ostringstream stream into which the string is dumped |
AlarmSubsystem& carma::monitor::MonitorSystem::alarm | ( | ) | const |
Get reference to the alarm subsystem.
Definition at line 168 of file MonitorSystem.h.
AntennaCommon& carma::monitor::MonitorSystem::antennaCommon | ( | int | index | ) | const |
Get reference to an AntennaCommon container in an ovro or bima or sza subsystem.
Convenience function. Gives the same answer as calling ovro(x).antennaCommon() or bima(y).antennaCommon() or sza(z).antennaCommon() for the appropriate value of z, y or z depending on the value of index.
index | O based antenna index (i.e. 0-5 are ovro, 6-14 are bima, 15-22 are sza) |
AstroSubsystem& carma::monitor::MonitorSystem::astro | ( | ) | const |
Get reference to an Astro container.
Definition at line 117 of file MonitorSystem.h.
BimaSubsystem& carma::monitor::MonitorSystem::bima | ( | int | index | ) | const |
Get reference to a bima antenna subsystem.
index | antenna index |
Definition at line 123 of file MonitorSystem.h.
C3gDataflowSubsystem& carma::monitor::MonitorSystem::c3gDataflow | ( | const int | index | ) | const |
index | Subsystem container index number = band number minus one |
Definition at line 333 of file MonitorSystem.h.
C3gMax23PipelineSubsystem& carma::monitor::MonitorSystem::c3gMax23Pipeline | ( | ) | const |
Get reference to carma 23 station 3g correlator pipeline.
Definition at line 133 of file MonitorSystem.h.
C3gMax8PipelineSubsystem& carma::monitor::MonitorSystem::c3gMax8Pipeline | ( | ) | const |
Get reference to carma 8 station 3g correlator pipeline.
Definition at line 128 of file MonitorSystem.h.
C3gRemapperSubsystem& carma::monitor::MonitorSystem::c3gRemapper | ( | const int | index | ) | const |
index | Subsystem container index number = band number minus one |
Definition at line 351 of file MonitorSystem.h.
Carma3GBandSubsystem& carma::monitor::MonitorSystem::carma3gBand | ( | const int | index | ) | const |
Get reference to a CARMA3G correlator band subsystem.
index | band index |
Definition at line 234 of file MonitorSystem.h.
CarmaSlcBandSubsystem& carma::monitor::MonitorSystem::carmaSlcBand | ( | const int | index | ) | const |
Get reference to a spectral line correlator band subsystem.
index | band index |
Definition at line 221 of file MonitorSystem.h.
CentralIfSubsystem& carma::monitor::MonitorSystem::centralIf | ( | ) | const |
Get reference to the centalIF subsystem.
Definition at line 138 of file MonitorSystem.h.
ControlSubsystem& carma::monitor::MonitorSystem::control | ( | ) | const |
Get reference to the control subsystem.
Definition at line 143 of file MonitorSystem.h.
DataflowSubsystem& carma::monitor::MonitorSystem::dataflow | ( | ) | const |
Get reference to the control subsystem.
Definition at line 148 of file MonitorSystem.h.
DelayEngineSubsystem& carma::monitor::MonitorSystem::delay | ( | ) | const |
Get reference to the delay engine subsystem.
Definition at line 153 of file MonitorSystem.h.
carma::monitor::FaultSubsystem & carma::monitor::MonitorSystem::fault | ( | ) | const |
Get reference to fault subsystem.
Definition at line 828 of file MonitorSystem.h.
size_t carma::monitor::MonitorSystem::getActualMonitorSystemSize | ( | ) | const |
Capacity usage related method - returns actual size used in bytes across all subsystems.
long carma::monitor::MonitorSystem::getActualNumMonitorPoints | ( | ) | const |
Capacity usage related method - returns actual # of monitor points across all subsystems.
long carma::monitor::MonitorSystem::getActualNumMonitorPoints | ( | const MonitorValueType | type | ) | const |
Capacity usage related method - returns actual # of monitor points of type.
type
across all subsystems.
type | const MonitorValueType type of monitor points of interest |
long carma::monitor::MonitorSystem::getActualNumMonitorSamples | ( | ) | const |
Capacity related method - returns actual # of monitor samples across all subsystems.
long carma::monitor::MonitorSystem::getActualNumMonitorSamples | ( | MonitorValueType | type | ) | const |
Capacity related method - returns actual # of monitor samples of type <pretype across all subsystems.
type | const MonitorValueType type of monitor samples of interest |
typeacross all subsystems
long carma::monitor::MonitorSystem::getActualNumMultiSampleMonitorPoints | ( | ) | const |
Capacity usage related method - returns actual # of monitor points with multiple samples across all subsystems.
long carma::monitor::MonitorSystem::getActualNumSubsystems | ( | ) | const |
Capacity usage related method - returns actual number of subsystems allocated.
size_t carma::monitor::MonitorSystem::getAllocatedMonitorSystemSize | ( | ) | const |
Capacity usage related method - returns total size allocated in bytes across all subsystems.
Sizing includes "holes".
long carma::monitor::MonitorSystem::getAllocatedNumMonitorPoints | ( | ) | const |
Capacity usage related method - returns allocated monitor point capacity across all subsystems.
long carma::monitor::MonitorSystem::getAllocatedNumMonitorSamples | ( | ) | const |
Capacity related method - returns total monitor sample capacity across all subsystems.
May include "holes" in the sample arrays.
long carma::monitor::MonitorSystem::getAllocatedNumSubsystems | ( | ) | const |
Capacity usage related method - returns total number of subsystems allocated.
int carma::monitor::MonitorSystem::getCarma3gBandCount | ( | ) | const |
Get the number of carma3g bands.
int carma::monitor::MonitorSystem::getCarmaSlcBandCount | ( | ) | const |
Get the number of carmaSlcBands.
MonitorSubsystem& carma::monitor::MonitorSystem::getChildSubsystem | ( | int | index | ) | const |
Get underlying subsystem by index.
double carma::monitor::MonitorSystem::getCollatorWriteDelay | ( | ) | const |
Delay offset (in seconds) from the corrected UTC half-second when the System frame is written to IPQ on the ACC.
double carma::monitor::MonitorSystem::getCollatorWriteTime | ( | ) | const |
MJD when this system frame was actually written to the IPQ.
It is guaranteed that this frame was written no earlier than this time.
size_t carma::monitor::MonitorSystem::getCountedMonitorSystemSize | ( | ) | const |
Capacity usage related method - returns total size counted, in bytes across all subsystems.
uses iterator to count monitor points and samples, and computes size from these numbers.
long carma::monitor::MonitorSystem::getCountedNumMonitorPoints | ( | ) | const |
Capacity usage related method - returns number of monitor points present across all subsystems - number is obtained by iterating over all monitor points, so method is likely to be expensive.
long carma::monitor::MonitorSystem::getCountedNumMonitorSamples | ( | ) | const |
Capacity related method - returns number of monitor samples counted across all subsystems.
Number is obtained by iterating over all monitor points, so method is likely to be expensive.
double carma::monitor::MonitorSystem::getFinalWriteTime | ( | ) | const |
Gets MJD when this system frame was actually read by the fault system.
It is guaranteed that this frame was read no later than this time.
|
virtual |
Get the frame count for the last read frame.
Implements carma::monitor::MonitorSystemContainer.
size_t carma::monitor::MonitorSystem::getMaxMonitorSystemSize | ( | ) | const |
Capacity usage related method - returns total size allocated in bytes across all subsystems.
long carma::monitor::MonitorSystem::getMaxNumMonitorPoints | ( | ) | const |
Capacity usage related method - returns total allocated monitor point capacity across all subsystems.
long carma::monitor::MonitorSystem::getMaxNumMonitorSamples | ( | ) | const |
Capacity related method - returns total allocated monitor sample capacity across all subsystems.
long carma::monitor::MonitorSystem::getNumValidSubsystems | ( | ) | const |
Returns number of valid subsystems.
double carma::monitor::MonitorSystem::getRawReadTime | ( | ) | const |
Gets MJD when this system frame was actually read by the fault system.
It is guaranteed that this frame was read no later than this time.
SystemFrameBuffer& carma::monitor::MonitorSystem::getSystemFrameBuffer | ( | ) | const |
Get the underlying SystemFrameBuffer.
For blackbelt use only.
size_t carma::monitor::MonitorSystem::getTotalMonitorSystemSize | ( | ) | const |
Capacity related method - returns total size available in bytes across all subsystems.
long carma::monitor::MonitorSystem::getTotalNumMonitorPoints | ( | ) | const |
Capacity related method - returns total monitor point capacity across all subsystems.
long carma::monitor::MonitorSystem::getTotalNumMonitorSamples | ( | ) | const |
Capacity related method - returns total monitor sample capacity across all subsystems.
long carma::monitor::MonitorSystem::getTotalNumSubsystems | ( | ) | const |
Capacity related method - returns total subsystem capacity.
int carma::monitor::MonitorSystem::getWbcBandCount | ( | ) | const |
Get the number of wbcBands.
ImrSubsystem& carma::monitor::MonitorSystem::imr | ( | ) | const |
Get reference to imr subsystem.
Definition at line 163 of file MonitorSystem.h.
|
virtual |
Returns true if the monitor subsystem contains data that is current.
A read could make the data current, and hence make isCurrent return true. If a read does not make isCurrent true, then the subsystem is probably broken.
Implements carma::monitor::MonitorSystemContainer.
LineLengthSubsystem& carma::monitor::MonitorSystem::lineLength | ( | ) | const |
Get reference to the lineLength subsystem.
Definition at line 173 of file MonitorSystem.h.
LoberotatorSubsystem& carma::monitor::MonitorSystem::loberotator | ( | ) | const |
Get reference to the loberotator subsystem.
Definition at line 178 of file MonitorSystem.h.
LoRefSubsystem& carma::monitor::MonitorSystem::loRef | ( | ) | const |
Get reference to the LOref subsystem.
Definition at line 183 of file MonitorSystem.h.
MasterClockSubsystem& carma::monitor::MonitorSystem::masterclock | ( | ) | const |
Get reference to the masterclock subsystem.
Definition at line 188 of file MonitorSystem.h.
OpacityMonitorSubsystem& carma::monitor::MonitorSystem::opacityMonitor | ( | ) | const |
Get reference to the opacityMonitor subsystem.
Definition at line 193 of file MonitorSystem.h.
OvroSubsystem& carma::monitor::MonitorSystem::ovro | ( | int | index | ) | const |
Get reference to ovro antenna subsystem.
index | antenna index |
Definition at line 199 of file MonitorSystem.h.
PhaseMonitorSubsystem& carma::monitor::MonitorSystem::phaseMonitor | ( | ) | const |
Get reference to the phase monitor subsystem.
Definition at line 204 of file MonitorSystem.h.
ProjectDatabaseManagerSubsystem& carma::monitor::MonitorSystem::projectDatabaseManager | ( | ) | const |
Get reference to the projectdatabase manager subsystem.
Definition at line 209 of file MonitorSystem.h.
|
virtual |
Reads oldest unread data from the IPQ into the local set of monitor points.
This is a blocking read.
Implements carma::monitor::MonitorSystemContainer.
|
virtual |
Reads in the newest data from the IPQ into the local set of monitor points.
There is no blocking!!
Implements carma::monitor::MonitorSystemContainer.
|
virtual |
If new data is available it is copied from the queue into the monitor system.
If no unread data is available then the method returns. In either case there is no blocking.
Implements carma::monitor::MonitorSystemContainer.
|
virtual |
Reads in data from the IPQ into the local set of monitor points if data is stale, that is, !isCurrent().
There is no blocking!!
Reimplemented from carma::monitor::MonitorSystemContainer.
void carma::monitor::MonitorSystem::resetQueue | ( | ) |
Moves read pointer beyond top of queue so a read will block until the next write.
This method may be used to ensure that fresh data is read on the next read() call. Normally, a call to read will read the next unread element in its queue.
void carma::monitor::MonitorSystem::resetTimes | ( | ) |
Resets collator write time - call clearAllTimes to conform to name of similar routine in ::carma:monitor::MonitorSubsystem and allows for more times to be added.
void carma::monitor::MonitorSystem::setFinalWriteTime | ( | double | mjdTimestamp | ) |
Sets MJD when this system frame was actually read by the fault system.
It is guaranteed that this frame was read no later than this time.
time | double time in MJD format as specified by carma::util::Time class. Defaults to current time. |
void carma::monitor::MonitorSystem::setRawReadTime | ( | double | mjdTimestamp | ) |
Sets MJD when this system frame was actually read by the fault system.
It is guaranteed that this frame was read no later than this time.
time | double time in MJD format as specified by carma::util::Time class. Defaults to current time. |
SignalPathSubsystem& carma::monitor::MonitorSystem::signalPath | ( | ) | const |
Get reference to the signal path subsystem.
Definition at line 215 of file MonitorSystem.h.
SlDataflowSubsystem& carma::monitor::MonitorSystem::slDataflow | ( | const int | index | ) | const |
index | Subsystem container index number = band number minus one |
Definition at line 324 of file MonitorSystem.h.
SldcSubsystem& carma::monitor::MonitorSystem::sldc | ( | ) | const |
Get reference to the spectral line downconverter subsystem.
Definition at line 246 of file MonitorSystem.h.
SlPipelineSubsystem& carma::monitor::MonitorSystem::slPipeline | ( | ) | const |
Get reference to the spectral line pipeline subsystem.
Definition at line 251 of file MonitorSystem.h.
SlRemapperSubsystem& carma::monitor::MonitorSystem::slRemapper | ( | const int | index | ) | const |
index | Subsystem container index number = band number minus one |
Definition at line 342 of file MonitorSystem.h.
SystemFrameBuffer& carma::monitor::MonitorSystem::systemFrameBuffer | ( | ) | const |
Get reference to the underlying storage.
Definition at line 359 of file MonitorSystem.h.
SystemStatusSubsystem& carma::monitor::MonitorSystem::systemStatus | ( | ) | const |
Get reference to the system status subsystem.
Definition at line 256 of file MonitorSystem.h.
SzaSubsystem& carma::monitor::MonitorSystem::sza | ( | int | index | ) | const |
Get reference to sza antenna subsystem.
index | antenna index |
Definition at line 262 of file MonitorSystem.h.
TestSubsystem& carma::monitor::MonitorSystem::test | ( | ) | const |
Get reference to the test subsystem.
Definition at line 295 of file MonitorSystem.h.
|
virtual |
Dumps transport statistics as a table, with write delays, and transport/write times printed out as doubles, with fixed precision.
canonical | bool if true, prints canonical name otherwise uses leaf name. |
Reimplemented from carma::monitor::MonitorComponent.
VlbiSubsystem& carma::monitor::MonitorSystem::vlbi | ( | ) | const |
Get reference to the vlbi subsystem.
Definition at line 300 of file MonitorSystem.h.
WbcBandSubsystem& carma::monitor::MonitorSystem::wbcBand | ( | const int | index | ) | const |
Get reference to a wideband correlator band subsystem.
index | band index |
Definition at line 268 of file MonitorSystem.h.
WbDataflowSubsystem& carma::monitor::MonitorSystem::wbDataflow | ( | const int | index | ) | const |
index | Subsystem container index number = band number minus one |
Definition at line 306 of file MonitorSystem.h.
WbdcSubsystem& carma::monitor::MonitorSystem::wbdc | ( | ) | const |
Get reference to wideband downconverter subsystem.
Definition at line 280 of file MonitorSystem.h.
WbPipelineSubsystem& carma::monitor::MonitorSystem::wbPipeline | ( | ) | const |
Get reference to the wideband line pipeline subsystem.
Definition at line 285 of file MonitorSystem.h.
WbRemapperSubsystem& carma::monitor::MonitorSystem::wbRemapper | ( | const int | index | ) | const |
index | Subsystem container index number = band number minus one |
Definition at line 315 of file MonitorSystem.h.
WeatherSubsystem& carma::monitor::MonitorSystem::weather | ( | ) | const |
Get reference to the weather subsystem.
Definition at line 290 of file MonitorSystem.h.
|
virtual |
Write out the monitor point data values.
Implements carma::monitor::MonitorSystemContainer.