nidas v1.2.3
|
Class describing a group of variables that are sampled and handled together. More...
#include <SampleTag.h>
Public Member Functions | |
SampleTag () | |
Constructor. | |
SampleTag (const DSMSensor *sensor) | |
Constructor of a sample for a given sensor. | |
SampleTag (const SampleTag &) | |
Copy constructor. | |
virtual | ~SampleTag () |
SampleTag & | operator= (const SampleTag &rhs) |
void | setSampleId (unsigned int val) |
Set the sample portion of the shortId. | |
unsigned int | getSampleId () const |
Get the sample portion of the shortId. | |
void | setSensorId (unsigned int val) |
Set the sensor portion of the shortId. | |
unsigned int | getSensorId () const |
Get the sensor portion of the shortId. | |
void | setDSMId (unsigned int val) |
Set the DSM portion of the id. | |
unsigned int | getDSMId () const |
Get the DSM portion of the id. | |
dsm_sample_id_t | getId () const |
Get the 26 bit id, containing the DSM id and the sensor+sample id. | |
unsigned int | getSpSId () const |
Get the sensor+sample portion of the id. | |
const std::string & | getSuffix () const |
Suffix, which is appended to variable names. | |
void | setSuffix (const std::string &val) |
const DSMConfig * | getDSMConfig () const |
void | setDSMConfig (const DSMConfig *val) |
const DSMSensor * | getDSMSensor () const |
void | setDSMSensor (const DSMSensor *val) |
int | getStation () const |
Station number, which is also known as the Site number. | |
void | setStation (int val) |
const Site * | getSite () const |
Get the Site of this SampleTag, which will be non-NULL only if getDSMConfig() returns non-NULL. | |
virtual void | setRate (double val) |
Set sampling rate in samples/sec. | |
virtual double | getRate () const |
Get sampling rate in samples/sec. | |
virtual void | setPeriod (double val) |
Set sampling period (1/rate) in sec. | |
virtual double | getPeriod () const |
Get sampling period (1/rate) in sec. | |
void | setProcessed (bool val) |
Set if this sample is going to be post processed. | |
bool | isProcessed () const |
Test to see if this sample is to be post processed. | |
void | setScanfFormat (const std::string &val) |
const std::string & | getScanfFormat () const |
void | setPromptString (const std::string &val) |
const std::string & | getPromptString () const |
void | setPromptOffset (double val) |
double | getPromptOffset () const |
virtual void | addVariable (Variable *var) |
Add a variable to this SampleTag. | |
const std::vector< const Variable * > & | getVariables () const |
const std::vector< Variable * > & | getVariables () |
void | removeVariable (const Variable *var) |
Variable & | getVariable (int i) |
Provide a reference to a variable - allowing one to modify it. | |
void | addParameter (Parameter *val) |
Add a parameter to this SampleTag. | |
const std::list< const Parameter * > & | getParameters () const |
const Parameter * | getParameter (const std::string &name) const |
void | setEnabled (bool val) |
bool | isEnabled () const |
unsigned int | getDataIndex (const Variable *var) const |
What is the index of a Variable into the data of a sample from this SampleTag. | |
float | getTimetagAdjust () const |
Whether to enable TimetagAdjuster for this sample. | |
void | setTimetagAdjust (float val) |
VariableIterator | getVariableIterator () const |
void | fromDOMElement (const xercesc::DOMElement *) |
xercesc::DOMElement * | toDOMParent (xercesc::DOMElement *parent, bool complete) const |
xercesc::DOMElement * | toDOMElement (xercesc::DOMElement *node, bool complete) const |
Static Public Member Functions | |
static const XMLCh * | getNamespaceURI () |
Protected Member Functions | |
void | setId (dsm_sample_id_t val) |
Set the full id. | |
void | setSpSId (unsigned int val) |
Set the sensor + sample portions of the id. | |
Private Attributes | |
dsm_sample_id_t | _id |
unsigned int | _sampleId |
unsigned int | _sensorId |
std::string | _suffix |
int | _station |
double | _rate |
bool | _processed |
const DSMConfig * | _dsm |
const DSMSensor * | _sensor |
std::vector< const Variable * > | _constVariables |
std::vector< Variable * > | _variables |
std::vector< std::string > | _variableNames |
std::string | _scanfFormat |
std::string | _promptString |
double | _promptOffset |
std::list< Parameter * > | _parameters |
List of pointers to Parameters. | |
std::list< const Parameter * > | _constParameters |
List of const pointers to Parameters for providing via getParameters(). | |
bool | _enabled |
float | _ttAdjustVal |
If positive, enable TimetagAdjustor for these samples. | |
Static Private Attributes | |
static XMLCh * | namespaceURI = 0 |
Class describing a group of variables that are sampled and handled together.
A SampleTag has an integer ID. This is the same ID that is associated with Sample objects, allowing software to map between a data sample and the meta-data associated with it.
A SampleTag/Sample ID is a 32-bit value comprised of four parts: 6-bit type_id, 10-bit DSM_id, 16-bit sensor+sample id.
The type id specifies the data type (float, int, double, etc), The type_id is only meaningful in an actual data Sample, and is not accessible in the SampleTag class.
The 26 bits of DSM_id and sensor+sample are known simply as the Id (or full id), and is accessible with the getId() method.
The DSM_id contains the id of the data acquisition system that collected the data, and can be accessed separately from the other fields with getDSMId() and setDSMId().
The 16-bit sensor+sample id is also known as the shortId. To maintain flexibility, the shortId has not been divided further into bit fields of sensor and sample id, but is a sum of the two. This means that you cannot set the shortId without losing track of the sensor and sample ids. For this reason, methods to set the shortId and fullId are protected.
To access the portions of the shortId, use getSensorId(), setSensorId(), getSampleId() and setSampleId().
Example: a DSMSensor has an id of 200, and four associated SampleTags with sample ids of 1,2,3 and 4. Therefore one should do a setSensorId(200) on each of the SampleTags, so that their shortIds become 201,202,203, and 204. The convention is that processed samples have sample ids >= 1. Raw, unprocessed Samples from this sensor have a sample id of 0, and therefore a shortId of 200.
A SampleTag also has a rate attribute, indicating the requested sampling rate for the variables.
SampleTag::SampleTag | ( | ) |
Constructor.
Constructor of a sample for a given sensor.
References _dsm, _sensor, setDSMId(), and setSensorId().
Copy constructor.
References addParameter(), addVariable(), nidas::core::Parameter::clone(), and nidas::core::getSample().
|
virtual |
References _parameters, _variables, and nidas::core::getSample().
Add a parameter to this SampleTag.
SampleTag will then own the pointer and will delete it in its destructor. If a Parameter already exists with the same name, that Parameter will be removed and deleted.
References _constParameters, _parameters, and nidas::core::getSample().
Referenced by fromDOMElement(), operator=(), and SampleTag().
Add a variable to this SampleTag.
SampleTag will own the Variable, and will delete it in its destructor.
nidas::util::InvalidParameterException |
References _constVariables, and _variables.
Referenced by nidas::dynld::StatisticsProcessor::addRequestedSampleTag(), nidas::dynld::StatisticsCruncher::addVariable(), nidas::core::SampleAverager::addVariable(), nidas::core::NearestResampler::ctorCommon(), fromDOMElement(), nidas::dynld::raf::SyncRecordSource::init(), nidas::dynld::StatisticsCruncher::initStats(), nidas::core::NearestResamplerAtRate::NearestResamplerAtRate(), operator=(), SampleTag(), nidas::dynld::raf::SyncRecordReader::scanHeader(), nidas::dynld::StatisticsCruncher::setupCovariances(), nidas::dynld::StatisticsCruncher::setupFluxes(), nidas::dynld::StatisticsCruncher::setupMinMax(), nidas::dynld::StatisticsCruncher::setupPrunedTrivariances(), nidas::dynld::StatisticsCruncher::setupReducedFluxes(), nidas::dynld::StatisticsCruncher::setupReducedScalarFluxes(), nidas::dynld::StatisticsCruncher::setupTrivariances(), and nidas::dynld::StatisticsCruncher::setupWindDir().
nidas::util::InvalidParameterException |
Implements nidas::core::DOMable.
References _dsm, _sensor, _variables, addParameter(), addVariable(), nidas::core::Parameter::createParameter(), GET_DSM_ID, GET_SPS_ID, nidas::core::VariableConverter::getCalFile(), getDSMId(), getDSMSensor(), getId(), nidas::core::Project::getInstance(), getRate(), nidas::core::getSample(), getSpSId(), getStation(), rate, nidas::core::CalFile::setDSMSensor(), setEnabled(), setPeriod(), setProcessed(), setPromptOffset(), setPromptString(), setRate(), setSampleId(), setScanfFormat(), setStation(), setSuffix(), and setTimetagAdjust().
Referenced by nidas::core::DSMSensor::fromDOMElement(), and nidas::core::SampleIOProcessor::fromDOMElement().
What is the index of a Variable into the data of a sample from this SampleTag.
References _constVariables, and nidas::core::getSample().
Get the DSM portion of the id.
References _id, and GET_DSM_ID.
Referenced by nidas::dynld::isff::WisardMote::addMoteSampleTag(), nidas::dynld::StatisticsProcessor::addRequestedSampleTag(), nidas::dynld::StatisticsCruncher::attach(), nidas::dynld::StatisticsProcessor::connectSource(), nidas::dynld::isff::WisardMote::createSampleTags(), nidas::core::DSMSensor::fromDOMElement(), fromDOMElement(), nidas::dynld::raf::DSMMesaSensor::fromDOMElement(), and nidas::dynld::StatisticsCruncher::StatisticsCruncher().
References _sensor.
Referenced by nidas::core::SamplePipeline::addSampleClient(), nidas::core::SamplePipeline::connect(), SampleToDatabase::defaultMeasurementName(), nidas::core::SamplePipeline::disconnect(), fromDOMElement(), nidas::core::VariableConverter::getDSMSensor(), and nidas::core::SamplePipeline::removeSampleClient().
|
inline |
Get the 26 bit id, containing the DSM id and the sensor+sample id.
References _id, and GET_FULL_ID.
Referenced by nidas::dynld::isff::WisardMote::addMoteSampleTag(), nidas::dynld::StatisticsProcessor::addRequestedSampleTag(), nidas::dynld::iss::TiltSensor::addSampleTag(), nidas::dynld::raf::CVIProcessor::attachLVInput(), nidas::dynld::isff::ATIK_Sonic::checkSampleTags(), nidas::dynld::isff::CSAT3_Sonic::checkSampleTags(), nidas::dynld::isff::CSI_IRGA_Sonic::checkSampleTags(), nidas::dynld::isff::Wind3D::checkSampleTags(), nidas::dynld::StatisticsCruncher::computeStats(), nidas::core::SamplePipeline::connect(), nidas::dynld::raf::CVIProcessor::connectSource(), DataStats::createCounters(), nidas::core::Project::findSensor(), nidas::core::Site::findSensor(), nidas::core::NearestResampler::flush(), nidas::core::SampleAverager::flush(), nidas::core::DSMSensor::fromDOMElement(), fromDOMElement(), nidas::dynld::raf::DSMMesaSensor::fromDOMElement(), nidas::dynld::raf::IRIGSensor::fromDOMElement(), nidas::core::Project::getUniqueSampleId(), nidas::core::CharacterSensor::init(), nidas::dynld::DSC_Event::init(), nidas::dynld::raf::A2DBoardTempSensor::init(), nidas::dynld::raf::DSMArincSensor::init(), nidas::dynld::raf::SyncRecordSource::init(), nidas::dynld::raf::TwoD_USB::init(), nidas::dynld::raf::TwoDS::init(), nidas::dynld::WxtSensor::init(), nidas::dynld::raf::TwoD64_USB::init_parameters(), nidas::dynld::raf::TwoD64_USB_v3::init_parameters(), nidas::dynld::iss::WICORSensor::process(), nidas::dynld::raf::DSMAnalogSensor::process(), nidas::dynld::A2DSensor::process(), nidas::dynld::isff::CU_Coldwire::process(), nidas::dynld::isff::CSAT3_Sonic::process(), nidas::dynld::isff::DAUSensor::process(), nidas::dynld::ModbusRTU::process(), nidas::dynld::raf::A2D_Serial::process(), nidas::dynld::raf::Watlow::process(), nidas::dynld::TSI_CPC3772::process(), TestSource::run(), SampleDispatcher::SampleDispatcher(), nidas::dynld::WxtSensor::scanSample(), nidas::core::CharacterSensor::searchSampleScanners(), nidas::dynld::raf::SyncRecordSource::selectVariablesFromSensor(), DumpClient::setSensors(), toDOMElement(), nidas::dynld::isff::WisardMote::unpackTsoil(), nidas::dynld::DSC_FreqCounter::validate(), nidas::dynld::DSC_PulseCounter::validate(), nidas::dynld::GPS_NMEA_Serial::validate(), nidas::dynld::GPS_Novatel_Serial::validate(), nidas::dynld::isff::CSI_CRX_Binary::validate(), nidas::dynld::isff::Wind2D::validate(), nidas::dynld::raf::PSI9116_Sensor::validate(), nidas::core::DSMConfig::validateSensorAndSampleIds(), nidas::dynld::isff::Wind2D::validateSscanfs(), and nidas::dynld::WxtSensor::wxtValidateSscanfs().
References nidas::core::DOMable::namespaceURI.
Referenced by nidas::dynld::UDPSampleOutput::getProjectDOM(), nidas::core::Dataset::toDOMElement(), nidas::core::ProjectConfig::toDOMElement(), nidas::core::Dataset::toDOMParent(), nidas::core::Datasets::toDOMParent(), nidas::core::ProjectConfig::toDOMParent(), nidas::core::ProjectConfigs::toDOMParent(), nidas::core::DSMConfig::toDOMParent(), nidas::core::DSMSensor::toDOMParent(), nidas::core::Project::toDOMParent(), toDOMParent(), nidas::core::Site::toDOMParent(), nidas::core::ServerSocket::toDOMParent(), nidas::core::Variable::toDOMParent(), nidas::core::Datasets::writeXML(), and nidas::core::ProjectConfigs::writeXML().
Get sampling period (1/rate) in sec.
A value of 0.0 means an unknown rate.
References _rate.
Referenced by nidas::dynld::StatisticsProcessor::addRequestedSampleTag().
|
inline |
References _promptOffset.
|
inline |
References _promptString.
Get sampling rate in samples/sec.
A value of 0.0 means an unknown rate.
References _rate.
Referenced by nidas::dynld::raf::CVIProcessor::addRequestedSampleTag(), nidas::dynld::StatisticsProcessor::addRequestedSampleTag(), nidas::dynld::isff::ATIK_Sonic::checkSampleTags(), nidas::dynld::isff::CSAT3_Sonic::checkSampleTags(), nidas::dynld::isff::CSI_IRGA_Sonic::checkSampleTags(), SampleCounter::collectMetadata(), nidas::core::DSMSensor::fromDOMElement(), fromDOMElement(), nidas::dynld::raf::DSMMesaSensor::fromDOMElement(), nidas::dynld::raf::IRIGSensor::fromDOMElement(), nidas::core::CharacterSensor::init(), nidas::dynld::raf::DSMArincSensor::init(), nidas::dynld::raf::SyncRecordSource::init(), nidas::dynld::raf::UHSAS_Serial::init(), nidas::dynld::raf::TwoD64_USB::init_parameters(), nidas::dynld::raf::TwoD64_USB_v3::init_parameters(), nidas::dynld::ModbusRTU::open(), nidas::dynld::raf::DSMArincSensor::open(), parseAnalog(), parseOther(), nidas::dynld::StatisticsCruncher::StatisticsCruncher(), nidas::dynld::A2DSensor::validate(), nidas::dynld::DSC_FreqCounter::validate(), nidas::dynld::DSC_PulseCounter::validate(), nidas::dynld::isff::CSI_CRX_Binary::validate(), nidas::dynld::raf::A2D_Serial::validate(), nidas::dynld::raf::DSMAnalogSensor::validate(), nidas::dynld::raf::PSI9116_Sensor::validate(), and nidas::dynld::TSI_CPC3772::validate().
Get the sample portion of the shortId.
References _sampleId.
Referenced by nidas::core::SamplePipeline::connect(), nidas::dynld::isff::WisardMote::createSampleTags(), SampleToDatabase::defaultMeasurementName(), nidas::core::DSMSensor::fromDOMElement(), nidas::dynld::raf::DSMMesaSensor::fromDOMElement(), nidas::core::SampleIOProcessor::fromDOMElement(), nidas::dynld::raf::DSMArincSensor::init(), nidas::dynld::raf::DSMArincSensor::open(), parseAnalog(), parseOther(), PConfig::showAll(), nidas::dynld::GPS_NMEA_Serial::validate(), nidas::dynld::GPS_Novatel_Serial::validate(), nidas::dynld::raf::A2D_Serial::validate(), and nidas::dynld::raf::TwoD64_USB_v3::validate().
|
inline |
References _scanfFormat.
Referenced by nidas::core::CharacterSensor::doesAsciiSscanfs(), and nidas::core::CharacterSensor::init().
Get the sensor portion of the shortId.
References _sensorId.
Referenced by nidas::dynld::isff::WisardMote::createSampleTags(), and nidas::dynld::raf::DSMMesaSensor::fromDOMElement().
Get the Site of this SampleTag, which will be non-NULL only if getDSMConfig() returns non-NULL.
References _dsm, and nidas::core::getSample().
Referenced by SampleToDatabase::setSiteAndMeasurement().
Get the sensor+sample portion of the id.
References _id, and GET_SPS_ID.
Referenced by nidas::dynld::isff::WisardMote::addMoteSampleTag(), nidas::dynld::StatisticsProcessor::addRequestedSampleTag(), nidas::dynld::StatisticsCruncher::attach(), nidas::dynld::StatisticsProcessor::connectSource(), nidas::core::DSMSensor::fromDOMElement(), fromDOMElement(), StatsProcess::listOutputSamples(), nidas::dynld::StatisticsProcessor::selectRequestedSampleTags(), and nidas::dynld::StatisticsCruncher::StatisticsCruncher().
|
inline |
Station number, which is also known as the Site number.
A station number of 0 is the "non" station. Otherwise positive integers are used when a project consists of more than one similar station, where one can differentiate between the variables by a station number (which maps to a station dimension in a NetCDF file). Setting the station on a SampleTag will set the: the station on all its variables.
References _station.
Referenced by nidas::dynld::StatisticsCruncher::connect(), fromDOMElement(), and PConfig::loadVariables().
|
inline |
Suffix, which is appended to variable names.
References _suffix.
Referenced by SampleToDatabase::setSiteAndMeasurement().
|
inline |
Whether to enable TimetagAdjuster for this sample.
A value of 0 means no ttadjust. The default value of -1 means don't override the value set for the sensor.
References _ttAdjustVal.
Referenced by nidas::dynld::isff::ATIK_Sonic::checkSampleTags(), nidas::dynld::isff::CSAT3_Sonic::checkSampleTags(), nidas::dynld::isff::CSI_IRGA_Sonic::checkSampleTags(), nidas::core::CharacterSensor::init(), nidas::dynld::raf::DSMArincSensor::init(), and nidas::dynld::isff::CSI_CRX_Binary::validate().
Provide a reference to a variable - allowing one to modify it.
References _variables, and nidas::core::getSample().
Referenced by nidas::dynld::StatisticsCruncher::addVariable(), nidas::dynld::StatisticsCruncher::attach(), nidas::core::SampleAverager::connect(), nidas::dynld::StatisticsCruncher::connect(), nidas::dynld::StatisticsCruncher::createCombinations(), nidas::dynld::raf::DSMArincSensor::init(), nidas::dynld::StatisticsCruncher::setupCovariances(), nidas::dynld::StatisticsCruncher::setupFluxes(), nidas::dynld::StatisticsCruncher::setupMinMax(), nidas::dynld::StatisticsCruncher::setupPrunedTrivariances(), nidas::dynld::StatisticsCruncher::setupReducedFluxes(), nidas::dynld::StatisticsCruncher::setupReducedScalarFluxes(), and nidas::dynld::StatisticsCruncher::setupTrivariances().
VariableIterator SampleTag::getVariableIterator | ( | ) | const |
Referenced by nidas::dynld::raf::CVIOutput::addRequestedSampleTag(), nidas::dynld::iss::WICORSensor::addSampleTag(), nidas::dynld::isff::Wind3D::checkSampleTags(), nidas::dynld::StatisticsCruncher::createCombinations(), nidas::dynld::raf::DSMMesaSensor::fromDOMElement(), nidas::dynld::WxtSensor::init(), PConfig::loadVariables(), parseAnalog(), parseOther(), DumpClient::setSensors(), PConfig::showAll(), and toDOMElement().
References _variables.
References _constVariables.
Referenced by nidas::dynld::raf::CVIProcessor::addRequestedSampleTag(), nidas::dynld::iss::TiltSensor::addSampleTag(), nidas::dynld::iss::WICORSensor::addSampleTag(), nidas::dynld::StatisticsCruncher::addVariable(), nidas::core::DSMSensor::applyConversions(), nidas::dynld::isff::ATIK_Sonic::checkSampleTags(), nidas::dynld::isff::CSAT3_Sonic::checkSampleTags(), nidas::dynld::isff::CSI_IRGA_Sonic::checkSampleTags(), SampleCounter::collectMetadata(), nidas::core::SampleAverager::connect(), nidas::dynld::StatisticsCruncher::connect(), nidas::dynld::StatisticsProcessor::connectSource(), nidas::dynld::StatisticsCruncher::createCombinations(), DataStats::createCounters(), nidas::core::DSMSensor::findVariableIndex(), nidas::dynld::raf::IRIGSensor::fromDOMElement(), nidas::core::VariableIterator::hasNext(), nidas::core::CharacterSensor::init(), nidas::dynld::DSC_Event::init(), nidas::dynld::raf::DSMArincSensor::init(), nidas::dynld::raf::TwoD_USB::init(), nidas::dynld::raf::TwoDS::init(), nidas::dynld::raf::UHSAS_Serial::init(), nidas::dynld::WxtSensor::init(), nidas::dynld::StatisticsCruncher::initStats(), StatsProcess::listOutputSamples(), nidas::dynld::raf::DSMArincSensor::open(), nidas::dynld::A2DSensor::process(), nidas::dynld::isff::WisardMote::process(), nidas::dynld::isff::CU_Coldwire::process(), nidas::dynld::isff::CSAT3_Sonic::process(), nidas::dynld::isff::CSI_IRGA_Sonic::process(), nidas::dynld::isff::DAUSensor::process(), nidas::dynld::ModbusRTU::process(), nidas::dynld::raf::Watlow::process(), SampleDispatcher::SampleDispatcher(), nidas::dynld::WxtSensor::scanSample(), nidas::dynld::raf::SyncRecordSource::selectVariablesFromSensor(), nidas::dynld::StatisticsCruncher::setupCovariances(), nidas::dynld::StatisticsCruncher::setupFluxes(), nidas::dynld::StatisticsCruncher::setupMinMax(), nidas::dynld::StatisticsCruncher::setupPrunedTrivariances(), nidas::dynld::StatisticsCruncher::setupReducedFluxes(), nidas::dynld::StatisticsCruncher::setupReducedScalarFluxes(), nidas::dynld::StatisticsCruncher::setupTrivariances(), PConfig::showCalFiles(), nidas::core::DSMSensor::trimUnparsed(), nidas::dynld::isff::WisardMote::unpackTsoil(), nidas::dynld::A2DSensor::validate(), nidas::dynld::DSC_FreqCounter::validate(), nidas::dynld::DSC_PulseCounter::validate(), nidas::dynld::GPS_NMEA_Serial::validate(), nidas::dynld::GPS_Novatel_Serial::validate(), nidas::dynld::IEEE_Float::validate(), nidas::dynld::isff::CSI_CRX_Binary::validate(), nidas::dynld::isff::Licor7500::validate(), nidas::dynld::isff::NCAR_TRH::validate(), nidas::dynld::isff::Wind2D::validate(), nidas::dynld::ModbusRTU::validate(), nidas::dynld::raf::A2D_Serial::validate(), nidas::dynld::raf::PSI9116_Sensor::validate(), nidas::dynld::raf::SppSerial::validate(), nidas::dynld::raf::TwoD64_USB_v3::validate(), nidas::dynld::Uio48Sensor::validate(), nidas::core::CharacterSensor::validateSscanfs(), nidas::dynld::isff::Wind2D::validateSscanfs(), and nidas::dynld::WxtSensor::wxtValidateSscanfs().
|
inline |
References _enabled.
Referenced by nidas::dynld::StatisticsProcessor::addRequestedSampleTag().
|
inline |
Test to see if this sample is to be post processed.
References _processed.
Referenced by nidas::dynld::raf::DSMArincSensor::init(), PConfig::loadVariables(), nidas::dynld::raf::DSMArincSensor::open(), parseAnalog(), parseOther(), nidas::dynld::raf::SyncRecordSource::selectVariablesFromSensor(), and PConfig::showAll().
References _dsm, _enabled, _id, _processed, _promptOffset, _promptString, _rate, _sampleId, _scanfFormat, _sensor, _sensorId, _station, _suffix, addParameter(), addVariable(), nidas::core::Parameter::clone(), and nidas::core::getSample().
References _constVariables, _variables, and nidas::core::getSample().
References _dsm, and nidas::core::getSample().
Referenced by nidas::core::DSMSensor::fromDOMElement().
Set the DSM portion of the id.
References _id, and SET_DSM_ID.
Referenced by nidas::core::NearestResampler::ctorCommon(), nidas::core::DSMSensor::fromDOMElement(), nidas::core::NearestResamplerAtRate::NearestResamplerAtRate(), SampleTag(), nidas::dynld::StatisticsCruncher::StatisticsCruncher(), nidas::dynld::raf::SyncRecordSource::SyncRecordSource(), and TestSource::TestSource().
References _dsm, _sensor, and nidas::core::getSample().
Referenced by nidas::core::DSMSensor::fromDOMElement().
References _enabled, and nidas::core::getSample().
Referenced by fromDOMElement().
|
inlineprotected |
Set the full id.
We don't make this public, because when you use it you can't keep track of the sensor and sample portions of the shortID.
References _id, and SET_FULL_ID.
Set sampling period (1/rate) in sec.
A value of 0.0 means an unknown period.
nidas::util::InvalidParameterException |
References _rate.
Referenced by fromDOMElement().
Set if this sample is going to be post processed.
nidas::util::InvalidParameterException |
References _processed, and nidas::core::getSample().
Referenced by fromDOMElement().
References _promptOffset, and nidas::core::getSample().
Referenced by fromDOMElement().
References _promptString, and nidas::core::getSample().
Referenced by fromDOMElement().
Set sampling rate in samples/sec.
Derived SampleTags can override this method and throw an InvalidParameterException if they can't support the rate value. Sometimes a rate of 0.0 may mean don't sample the variables in the SampleTag.
nidas::util::InvalidParameterException |
References _rate, and nidas::core::getSample().
Referenced by nidas::core::DSMSensor::fromDOMElement(), fromDOMElement(), nidas::dynld::raf::IRIGSensor::fromDOMElement(), DataPrep::run(), nidas::dynld::raf::SyncRecordReader::scanHeader(), nidas::core::SampleAverager::setAveragePeriodSecs(), nidas::dynld::StatisticsCruncher::StatisticsCruncher(), and nidas::dynld::raf::SyncRecordSource::SyncRecordSource().
Set the sample portion of the shortId.
References _id, _sampleId, _sensorId, nidas::core::getSample(), and SET_SPS_ID.
Referenced by nidas::dynld::StatisticsProcessor::addRequestedSampleTag(), nidas::core::NearestResampler::ctorCommon(), nidas::core::DSMSensor::fromDOMElement(), fromDOMElement(), nidas::core::SampleIOProcessor::fromDOMElement(), nidas::core::NearestResamplerAtRate::NearestResamplerAtRate(), nidas::core::SampleAverager::SampleAverager(), nidas::core::SampleAverager::SampleAverager(), nidas::core::SampleAverager::SampleAverager(), nidas::dynld::StatisticsCruncher::StatisticsCruncher(), nidas::dynld::raf::SyncRecordSource::SyncRecordSource(), and TestSource::TestSource().
References _scanfFormat, and nidas::core::getSample().
Referenced by fromDOMElement().
Set the sensor portion of the shortId.
References _id, _sampleId, _sensorId, nidas::core::getSample(), and SET_SPS_ID.
Referenced by nidas::core::DSMSensor::fromDOMElement(), nidas::core::SampleIOProcessor::fromDOMElement(), SampleTag(), nidas::dynld::raf::SyncRecordSource::SyncRecordSource(), and TestSource::TestSource().
Set the sensor + sample portions of the id.
We don't make this public, because when you use it you can't keep track of the sensor and sample portions of the shortID.
References _id, and SET_SPS_ID.
References _station, _variables, and nidas::core::getSample().
Referenced by nidas::dynld::StatisticsCruncher::attach(), nidas::core::DSMSensor::fromDOMElement(), fromDOMElement(), and nidas::core::DSMSensor::setStation().
References _suffix, _variables, and nidas::core::getSample().
Referenced by nidas::core::DSMSensor::fromDOMElement(), and fromDOMElement().
References _ttAdjustVal, and nidas::core::getSample().
Referenced by fromDOMElement().
|
virtual |
xercesc::DOMException |
Reimplemented from nidas::core::DOMable.
References getId(), nidas::core::getSample(), getVariableIterator(), nidas::core::VariableIterator::hasNext(), and nidas::core::Variable::toDOMParent().
Referenced by toDOMParent().
|
virtual |
xercesc::DOMException |
Reimplemented from nidas::core::DOMable.
References nidas::core::DOMable::getNamespaceURI(), and toDOMElement().
Referenced by nidas::core::DSMSensor::toDOMParent().
List of const pointers to Parameters for providing via getParameters().
Referenced by addParameter(), getParameter(), and getParameters().
Referenced by addVariable(), getDataIndex(), getVariables(), and removeVariable().
Referenced by fromDOMElement(), getDSMConfig(), getSite(), operator=(), SampleTag(), setDSMConfig(), and setDSMSensor().
|
private |
Referenced by isEnabled(), operator=(), and setEnabled().
|
private |
Referenced by getDSMId(), getId(), getSpSId(), operator=(), setDSMId(), setId(), setSampleId(), setSensorId(), and setSpSId().
|
private |
List of pointers to Parameters.
Referenced by addParameter(), and ~SampleTag().
|
private |
Referenced by isProcessed(), operator=(), and setProcessed().
|
private |
Referenced by getPromptOffset(), operator=(), and setPromptOffset().
|
private |
Referenced by getPromptString(), operator=(), and setPromptString().
|
private |
Referenced by getPeriod(), getRate(), operator=(), setPeriod(), and setRate().
Referenced by getSampleId(), operator=(), setSampleId(), and setSensorId().
|
private |
Referenced by getScanfFormat(), operator=(), and setScanfFormat().
Referenced by fromDOMElement(), getDSMSensor(), operator=(), SampleTag(), and setDSMSensor().
Referenced by getSensorId(), operator=(), setSampleId(), and setSensorId().
|
private |
Referenced by getStation(), operator=(), and setStation().
|
private |
Referenced by getSuffix(), operator=(), and setSuffix().
|
private |
If positive, enable TimetagAdjustor for these samples.
Referenced by getTimetagAdjust(), and setTimetagAdjust().
|
private |
|
private |
Referenced by addVariable(), fromDOMElement(), getVariable(), getVariables(), removeVariable(), setStation(), setSuffix(), and ~SampleTag().
|
staticprivateinherited |
Referenced by nidas::core::DOMable::getNamespaceURI().