Frame containing monitor points for a monitor subsystem, and mapped to an IPQ - essentially a SubsystemFrameQueue.
More...
|
bool | isComplete () const |
| Returns true if numCleanSamples_ == 0. More...
|
|
bool | isDirty () const |
| Returns true if local copy contains data that differs from data in IPQ - in other words, data in local copy has been modifed, and a write to IPQ hasnt happened yet. More...
|
|
unsigned int | read () |
|
bool | readNewest () |
|
bool | readNewestConditionalCopy () |
|
void | write (bool force=false) |
|
virtual WriteStatus | writeSampleValue (const tagIDType tagID, const MonitorPointSample &value) |
| Writes specified sample value 'value' into this subsystem frame as sample with sample number 'iSample' for the monitor point specified by 'tagID'. More...
|
|
virtual WriteStatus | writeSampleValue (const int index, const MonitorPointSample &value) |
| Writes specified sample value 'value' into this subsystem frame as sample with sample number 'iSample' for the monitor point at index 'index' in the monitorHeaders array. More...
|
|
| ~SubsystemFrameBuffer () |
| Destructor. More...
|
|
void | allocateMonitorPoints (const AllocMpInfo *infos, size_t infosCount, bool markMpsAsModified=true) |
| method to allocate space within the subsystem frame for a monitor point and its samples. More...
|
|
void | clearAllTimes () |
| Resets lastWriteTime, scriberWriteTime, publishTime and receiveTime to 0. More...
|
|
void | clearPublished () |
| Clears status flag to indicate that this frame is not published. More...
|
|
void | clearReceived () |
| Clears status flag to indicate that this frame has not been received. More...
|
|
void | consolidateSamples () |
| Consolidates storage in the array of monitor samples. More...
|
|
long | countNumSingleSamplePoints () const |
| Counts number of single sample monitor points in this subsystem frame. More...
|
|
long | getFrameCount () const |
| Gets the frame's timestamp. More...
|
|
MonitorPointHeader | getHeaderByIndex (int index) const |
| Returns maximum number of monitor samples this subsystem frame can accommodate. More...
|
|
MonitorPointHeader | getHeaderByTagID (const tagIDType tagID) const |
| Returns MonitorPointHeader object corresponding to the monitor point with the specified tagID. More...
|
|
unsigned int | getHighwaterNumMonitorSamples (MonitorValueType type) |
| Get highwater number of monitor samples. More...
|
|
int | getIndex (const tagIDType tagID) const |
| Returns index of monitor point header corresponding to the specified tagID, in monitor header array in this subsystem frame. More...
|
|
double | getLastWriterDelay () const |
| Returns the delay used by the last client to write to the associated frame scriber publisher process. More...
|
|
double | getLastWriteTime () const |
| Gets the time of the last client write to the associated frame scriber publisher process. More...
|
|
long | getMaxNumMonitorPoints () const |
| Returns maximum number of monitor points this subsystem frame can accommodate. More...
|
|
long | getMaxNumSamples () const |
| Returns maximum number of monitor samples this subsystem frame can accommodate. More...
|
|
int | getNumActualSamples () const |
| Returns number of monitor samples for this subsystem frame. More...
|
|
long | getNumMonitorPoints () const |
| Returns allocated number of monitor points - in other words, the actual number of monitor points present in this subsystem frame. More...
|
|
long | getNumMonitorPoints (MonitorValueType type) const |
| Returns allocated number of monitor points of type == 'type' - in other words, the actual number of monitor points of type 'type' present in this subsystem frame. More...
|
|
long | getNumMonitorSamples (MonitorValueType type) const |
| Returns allocated number of monitor samples of type == 'type' - in other words, the actual number of monitor samples of type 'type' present in this subsystem frame. More...
|
|
long | getNumMonitorSamples () const |
| Returns total allocated number of monitor samples in this subsystem frame. More...
|
|
ushort | getNumSamplesPerCycle (const tagIDType tagID) const |
| Returns number of samples per cycle (0.5*sampling rate) associated with the monitor point with tagID == 'tagID'. More...
|
|
ushort | getNumSamplesPerCycle (const int index) const |
| Returns number of samples per cycle (0.5*sampling rate) associated with the monitor point at index == 'index' in the monitorHeaders array in this subsystem frame. More...
|
|
long | getNumSingleSamplePoints () const |
| Returns total allocated number of monitor points with one sample per cycle, a sampling rate of 2 Hz. More...
|
|
double | getPublishTime () const |
| Returns the time when this subsystem frame was published to the ACC. More...
|
|
double | getReceiveTime () const |
| Returns the time when this subsystem frame was received at the ACC. More...
|
|
const MonitorPointSample | getSampleAverage (const tagIDType tagID) const |
| Returns average of all samples in current cycle as a MonitorPointSample object. More...
|
|
const MonitorPointSample | getSampleAverage (const int index) const |
| Returns average of all samples in current cycle as a MonitorPointSample object. More...
|
|
MonitorPointSample | getSampleValue (const tagIDType tagID, ushort iSample) const |
| Returns requested monitor sample as a MonitorPointSample object. More...
|
|
MonitorPointSample | getSampleValue (const int index, ushort iSample) const |
| Returns requested monitor sample as a MonitorPointSample object. More...
|
|
double | getScriberWriteDelay () const |
| Returns the delay used by the scriber part of the frameScriberPublisher to write to the associated IPQ in the subsystem. More...
|
|
double | getScriberWriteTime () const |
| Gets the time of the last scriber write to the associated subsystem IPQ. More...
|
|
uchar | getStatusFlags () const |
| Returns status flags for subsystem frame. More...
|
|
const SubsystemDataPointers & | getSubsystemDataPointers () const |
|
const SubsystemHeader & | getSubsystemHeader () const |
| Returns reference to internal structure. More...
|
|
ushort | getSubsystemID () const |
| Returns subsystemID of this subsystem frame. More...
|
|
tagIDType | getTagID (const int index) const |
| Returns tagID of the monitor point with header at index "index" in the monitorHeaders array in this subsystem frame. More...
|
|
MonitorValueType | getValueType (const tagIDType tagID) const |
| Returns type of sample value associated with the monitor point specified by tagID. More...
|
|
MonitorValueType | getValueType (const int index) const |
| Returns type of sample value associated with the monitor point specified by index. More...
|
|
bool | isCurrentFrame () const |
| Method returns true if frame's timestamp is current; false otherwise. More...
|
|
bool | isPublished () const |
| True if this subsystem frame has been published. More...
|
|
bool | isValid (const tagIDType tagID) const |
| True if tagID is that of a valid monitor point within this subsystem frame. More...
|
|
void | markFramePublished () |
| Convenience method that sets the publish time and sets the status flag to indicate that the frame was published. More...
|
|
void | markFrameReceived () |
| Convenience method that sets the recive time and sets the status flag to indicate that the frame was received. More...
|
|
bool | received () const |
| True if this subsystem frame has been received by the frame collator (in the ACC). More...
|
|
long | setFrameCount (const long frameCount) |
| Sets the frame's timestamp. More...
|
|
void | setLastWriterDelay (double time) |
| Sets the delay used by the last client to write to the associated frame scriber publisher process. More...
|
|
void | setLastWriteTime (double mjdTimestamp) |
| Sets the time of the last client write to the associated frame scriber publisher process. More...
|
|
void | setLastWriteTime () |
|
void | setNumActualSamples (ushort numSamples) |
| Sets number of actual monitor samples for this subsystem frame. More...
|
|
void | setNumMonitorPoints (ushort numMonitorPoints) |
| Sets number of monitor points for this subsystem frame. More...
|
|
void | setNumMonitorSamples (ushort numSamples) |
| Sets number of monitor samples for this subsystem frame. More...
|
|
void | setNumSamplesPerCycle (int index, const ushort samples) |
| Sets number of samples per cycle (0.5*sampling rate) associated with the monitor point at index == 'index' in the monitorHeaders array in this subsystem frame. More...
|
|
void | setNumSingleSamplePoints (const long numSingleSamples) |
| Sets total allocated number of monitor points with one sample per cycle, a sampling rate of 2 Hz. More...
|
|
void | setPublished () |
| Sets status flag to indicate that this frame is published. More...
|
|
void | setPublishTime (double mjdTimestamp) |
| Sets the time when this subsystem frame was published to the ACC. More...
|
|
void | setPublishTime () |
|
void | setReceived () |
| Sets status flag to indicate that this frame was received. More...
|
|
void | setReceiveTime (double mjdTimestamp) |
| Sets the time when this subsystem frame was received at the ACC. More...
|
|
void | setReceiveTime () |
|
void | setScriberWriteDelay (double writeDelay) |
| Sets the delay used by the scriber part of the frameScriberPublisher to write to the associated IPQ in the subsystem. More...
|
|
void | setScriberWriteTime (double mjdTimestamp) |
| Sets the time of the last scriber write to the associated subsystem IPQ. More...
|
|
void | setScriberWriteTime () |
|
void | setStatusFlags (uchar status) |
| Sets status flags for subsystem frame. More...
|
|
void | setSubsystemID (ushort subsystemID) |
| Sets subsystemID of this subsystem frame. More...
|
|
| SubsystemFrame (SubsystemHeader &frame, SubsystemDataPointers &dataPointers, bool embeddedInAFullSystem) |
| Constructor that constructs around a SubsystemHeader structure. More...
|
|
void | syncSubsystemToNewFrameData () |
| Sets the pointers to the monitor point index array (monitorPointIndex), monitor point header array (monitorHeaders), and the monitor sample array (monitorValues). More...
|
|
bool | validSampleValue (const tagIDType tagID, const MonitorPointSample &value) const |
| True if sample is valid - this means that the tagID of the monitor point is valid in this subsystem frame, and the sample index is within the range required by the monitor point's sampling rate. More...
|
|
void | writeFromPointSet (const MonitorSampleValues &samples) |
| Takes the sample values from a transported sequence of sample values and fills them into this subsystem frame. More...
|
|
void | writeFromTransportFrame (const TransportSubsystemFrame &transFrame) |
| Takes the sample values from a transported subsystem frame and fills them into this subsystem frame. More...
|
|
void | writeToTransport (TransportSubsystemFrame &transFrame) |
| Returns a TransportSubsystemFrame filled with monitor sample values from this subsystem frame, ready for transport to the ACC for incorporation into the monitor system object in the ACC. More...
|
|
virtual | ~SubsystemFrame () |
| Destructor. More...
|
|