nidas
v1.2-1520
|
Class describing a group of variables that are sampled and handled together. More...
#include <SampleTag.h>
Public Member Functions | |
SampleTag () | |
Constructor. More... | |
SampleTag (const DSMSensor *sensor) | |
Constructor of a sample for a given sensor. More... | |
SampleTag (const SampleTag &) | |
Copy constructor. More... | |
virtual | ~SampleTag () |
SampleTag & | operator= (const SampleTag &rhs) |
void | setSampleId (unsigned int val) |
Set the sample portion of the shortId. More... | |
unsigned int | getSampleId () const |
Get the sample portion of the shortId. More... | |
void | setSensorId (unsigned int val) |
Set the sensor portion of the shortId. More... | |
unsigned int | getSensorId () const |
Get the sensor portion of the shortId. More... | |
void | setDSMId (unsigned int val) |
Set the DSM portion of the id. More... | |
unsigned int | getDSMId () const |
Get the DSM portion of the id. More... | |
dsm_sample_id_t | getId () const |
Get the 26 bit id, containing the DSM id and the sensor+sample id. More... | |
unsigned int | getSpSId () const |
Get the sensor+sample portion of the id. More... | |
const std::string & | getSuffix () const |
Suffix, which is appended to variable names. More... | |
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. More... | |
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. More... | |
virtual void | setRate (double val) throw (nidas::util::InvalidParameterException) |
Set sampling rate in samples/sec. More... | |
virtual double | getRate () const |
Get sampling rate in samples/sec. More... | |
virtual void | setPeriod (double val) throw (nidas::util::InvalidParameterException) |
Set sampling period (1/rate) in sec. More... | |
virtual double | getPeriod () const |
Get sampling period (1/rate) in sec. More... | |
void | setProcessed (bool val) throw (nidas::util::InvalidParameterException) |
Set if this sample is going to be post processed. More... | |
bool | isProcessed () const |
Test to see if this sample is to be post processed. More... | |
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) throw (nidas::util::InvalidParameterException) |
Add a variable to this SampleTag. More... | |
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. More... | |
void | addParameter (Parameter *val) |
Add a parameter to this SampleTag. More... | |
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. More... | |
float | getTimetagAdjust () const |
Whether to enable TimetagAdjuster for this sample. More... | |
void | setTimetagAdjust (float val) |
VariableIterator | getVariableIterator () const |
void | fromDOMElement (const xercesc::DOMElement *) throw (nidas::util::InvalidParameterException) |
Initialize myself from a xercesc::DOMElement. More... | |
xercesc::DOMElement * | toDOMParent (xercesc::DOMElement *parent, bool complete) const throw (xercesc::DOMException) |
Create a DOMElement and append it to the parent. More... | |
xercesc::DOMElement * | toDOMElement (xercesc::DOMElement *node, bool complete) const throw (xercesc::DOMException) |
Add my content into a DOMElement. More... | |
Static Public Member Functions | |
static const XMLCh * | getNamespaceURI () |
Protected Member Functions | |
void | setId (dsm_sample_id_t val) |
Set the full id. More... | |
void | setSpSId (unsigned int val) |
Set the sensor + sample portions of the id. More... | |
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. More... | |
std::list< const Parameter * > | _constParameters |
List of const pointers to Parameters for providing via getParameters(). More... | |
bool | _enabled |
float | _ttAdjustVal |
If positive, enable TimetagAdjustor for these samples. More... | |
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.
SampleTag::SampleTag | ( | const DSMSensor * | sensor | ) |
Constructor of a sample for a given sensor.
References _dsm, _sensor, nidas::core::DSMConfig::getId(), nidas::core::DSMSensor::getId(), setDSMId(), and setSensorId().
SampleTag::SampleTag | ( | const SampleTag & | x | ) |
Copy constructor.
References addParameter(), addVariable(), nidas::core::Parameter::clone(), getParameters(), and getVariables().
|
virtual |
References _parameters, and _variables.
void SampleTag::addParameter | ( | Parameter * | val | ) |
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::Parameter::getName().
Referenced by operator=(), and SampleTag().
|
virtual |
Add a variable to this SampleTag.
SampleTag will own the Variable, and will delete it in its destructor.
Referenced by nidas::core::SampleAverager::addVariable(), nidas::dynld::StatisticsCruncher::addVariable(), nidas::dynld::isff::WisardMote::createSampleTag(), nidas::core::NearestResampler::ctorCommon(), nidas::core::NearestResamplerAtRate::ctorCommon(), nidas::dynld::isff::GOESProject::GOESProject(), nidas::dynld::raf::SyncRecordSource::init(), nidas::dynld::StatisticsCruncher::initStats(), main(), 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().
|
virtual |
Initialize myself from a xercesc::DOMElement.
Implements nidas::core::DOMable.
References nidas::core::Parameter::createParameter(), nidas::core::Project::expandString(), nidas::core::Variable::fromDOMElement(), GET_DSM_ID, GET_SPS_ID, nidas::core::XDOMElement::getAttributeValue(), nidas::core::VariableConverter::getCalFile(), nidas::core::Variable::getConverter(), nidas::core::Project::getInstance(), nidas::core::XDOMAttr::getName(), nidas::core::XDOMElement::getNodeName(), rate, nidas::core::CalFile::setDSMSensor(), nidas::core::Variable::setSampleTag(), nidas::core::Variable::setSite(), and nidas::core::Variable::setStation().
Referenced by nidas::dynld::isff::GOESOutput::fromDOMElement(), nidas::core::SampleIOProcessor::fromDOMElement(), and nidas::core::DSMSensor::fromDOMElement().
unsigned int SampleTag::getDataIndex | ( | const Variable * | var | ) | const |
What is the index of a Variable into the data of a sample from this SampleTag.
References _constVariables.
Referenced by nidas::dynld::StatisticsCruncher::attach(), nidas::core::NearestResampler::connect(), nidas::core::SampleAverager::connect(), and nidas::core::NearestResamplerAtRate::connect().
|
inline |
Get the DSM portion of the id.
References _id, and GET_DSM_ID.
Referenced by nidas::dynld::isff::WisardMote::addMoteSampleTag(), nidas::dynld::StatisticsCruncher::attach(), nidas::dynld::psql::PSQLProcessor::connect(), nidas::core::NearestResamplerAtRate::connect(), nidas::dynld::StatisticsProcessor::connectSource(), nidas::core::NearestResamplerAtRate::ctorCommon(), nidas::core::DSMSensor::fromDOMElement(), and nidas::dynld::StatisticsCruncher::StatisticsCruncher().
|
inline |
References _sensor.
Referenced by nidas::core::SamplePipeline::addSampleClient(), nidas::core::SamplePipeline::connect(), SampleToDatabase::defaultMeasurementName(), nidas::core::SamplePipeline::disconnect(), 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::StatisticsCruncher::attach(), nidas::dynld::isff::ATIK_Sonic::checkSampleTags(), nidas::dynld::isff::CSI_IRGA_Sonic::checkSampleTags(), nidas::dynld::isff::CSAT3_Sonic::checkSampleTags(), nidas::dynld::isff::Wind3D::checkSampleTags(), nidas::dynld::StatisticsCruncher::computeStats(), nidas::core::SamplePipeline::connect(), nidas::core::NearestResampler::connect(), nidas::core::SampleAverager::connect(), nidas::dynld::StatisticsCruncher::connect(), nidas::core::NearestResamplerAtRate::connect(), nidas::dynld::isff::GOESOutput::connected(), nidas::dynld::raf::CVIProcessor::connectSource(), nidas::dynld::StatisticsProcessor::connectSource(), DataStats::createCounters(), nidas::core::NearestResampler::ctorCommon(), nidas::core::NearestResamplerAtRate::ctorCommon(), nidas::core::Project::findSensor(), nidas::core::Site::findSensor(), nidas::core::SampleAverager::flush(), nidas::core::NearestResampler::flush(), nidas::dynld::raf::IRIGSensor::fromDOMElement(), nidas::core::DSMSensor::fromDOMElement(), nidas::core::Project::getUniqueSampleId(), nidas::dynld::isff::GOESProject::GOESProject(), nidas::dynld::raf::A2DBoardTempSensor::init(), nidas::dynld::DSC_Event::init(), nidas::dynld::WxtSensor::init(), nidas::dynld::raf::TwoD_USB::init(), nidas::core::CharacterSensor::init(), nidas::dynld::raf::DSMArincSensor::init(), nidas::dynld::raf::SyncRecordSource::init(), nidas::dynld::raf::TwoD64_USB::init_parameters(), nidas::dynld::raf::TwoD64_USB_v3::init_parameters(), nidas::dynld::raf::SortByRateThenLabel::operator()(), nidas::dynld::raf::Watlow::process(), nidas::dynld::isff::CU_Coldwire::process(), nidas::dynld::iss::WICORSensor::process(), nidas::dynld::A2DSensor::process(), nidas::dynld::isff::CSAT3_Sonic::process(), nidas::dynld::raf::DSMAnalogSensor::process(), nidas::dynld::isff::PacketInputStream::readSamples(), TestSource::run(), nidas::dynld::isff::GOESOutput::run(), SampleDispatcher::SampleDispatcher(), nidas::dynld::WxtSensor::scanSample(), nidas::core::CharacterSensor::searchSampleScanners(), nidas::dynld::raf::SyncRecordSource::selectVariablesFromSensor(), DumpClient::setSensors(), nidas::dynld::isff::WisardMote::unpackTsoil(), nidas::dynld::GPS_Novatel_Serial::validate(), nidas::dynld::GPS_NMEA_Serial::validate(), nidas::dynld::isff::CSI_CRX_Binary::validate(), nidas::dynld::raf::PSI9116_Sensor::validate(), nidas::dynld::isff::Wind2D::validate(), nidas::dynld::DSC_PulseCounter::validate(), nidas::dynld::DSC_FreqCounter::validate(), nidas::core::DSMConfig::validateSensorAndSampleIds(), nidas::dynld::isff::Wind2D::validateSscanfs(), and nidas::dynld::WxtSensor::wxtValidateSscanfs().
|
inlinestaticinherited |
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::ProjectConfig::toDOMParent(), nidas::core::Datasets::toDOMParent(), nidas::core::ProjectConfigs::toDOMParent(), nidas::core::DSMConfig::toDOMParent(), nidas::core::Project::toDOMParent(), nidas::core::Site::toDOMParent(), toDOMParent(), nidas::core::ServerSocket::toDOMParent(), nidas::core::Variable::toDOMParent(), nidas::core::DSMSensor::toDOMParent(), nidas::core::Datasets::writeXML(), and nidas::core::ProjectConfigs::writeXML().
const Parameter * SampleTag::getParameter | ( | const std::string & | name | ) | const |
References _constParameters, and nidas::core::Parameter::getName().
Referenced by nidas::dynld::isff::WisardMote::unpackTsoil(), and nidas::dynld::raf::DSMAnalogSensor::validate().
|
inline |
References _constParameters.
Referenced by operator=(), SampleTag(), nidas::dynld::DSC_FreqCounter::validate(), nidas::dynld::A2DSensor::validate(), and nidas::dynld::raf::A2D_Serial::validate().
|
inlinevirtual |
Get sampling period (1/rate) in sec.
A value of 0.0 means an unknown rate.
References _rate.
Referenced by nidas::dynld::isff::GOESOutput::connected(), and nidas::dynld::isff::GOESOutput::run().
|
inline |
References _promptOffset.
Referenced by nidas::core::CharacterSensor::validate().
|
inline |
References _promptString.
Referenced by nidas::core::CharacterSensor::validate().
|
inlinevirtual |
Get sampling rate in samples/sec.
A value of 0.0 means an unknown rate.
References _rate.
Referenced by nidas::dynld::isff::ATIK_Sonic::checkSampleTags(), nidas::dynld::isff::CSI_IRGA_Sonic::checkSampleTags(), nidas::dynld::isff::CSAT3_Sonic::checkSampleTags(), SampleCounter::collectMetadata(), nidas::dynld::raf::IRIGSensor::fromDOMElement(), nidas::core::DSMSensor::fromDOMElement(), nidas::core::Variable::getSampleRate(), nidas::dynld::raf::UHSAS_Serial::init(), nidas::core::CharacterSensor::init(), nidas::dynld::raf::DSMArincSensor::init(), nidas::dynld::raf::SyncRecordSource::init(), nidas::dynld::raf::TwoD64_USB::init_parameters(), nidas::dynld::raf::TwoD64_USB_v3::init_parameters(), nidas::dynld::raf::DSMArincSensor::open(), nidas::dynld::raf::SortByRateThenLabel::operator()(), parseAnalog(), parseOther(), nidas::dynld::psql::PSQLSampleOutput::receive(), PConfig::showVariables(), nidas::dynld::StatisticsCruncher::StatisticsCruncher(), nidas::dynld::TSI_CPC3772::validate(), nidas::dynld::isff::CSI_CRX_Binary::validate(), nidas::dynld::raf::PSI9116_Sensor::validate(), nidas::dynld::DSC_PulseCounter::validate(), nidas::dynld::DSC_FreqCounter::validate(), nidas::dynld::A2DSensor::validate(), nidas::dynld::raf::A2D_Serial::validate(), nidas::core::CharacterSensor::validate(), and nidas::dynld::raf::DSMAnalogSensor::validate().
|
inline |
Get the sample portion of the shortId.
References _sampleId.
Referenced by nidas::core::SamplePipeline::connect(), nidas::dynld::raf::CVIProcessor::connectSource(), SampleToDatabase::defaultMeasurementName(), nidas::core::SampleIOProcessor::fromDOMElement(), nidas::core::DSMSensor::fromDOMElement(), nidas::dynld::raf::DSMArincSensor::init(), nidas::dynld::raf::DSMArincSensor::open(), parseAnalog(), parseOther(), PConfig::showAll(), nidas::dynld::GPS_Novatel_Serial::validate(), nidas::dynld::GPS_NMEA_Serial::validate(), nidas::dynld::raf::TwoD64_USB_v3::validate(), and nidas::dynld::raf::A2D_Serial::validate().
|
inline |
References _scanfFormat.
Referenced by nidas::core::CharacterSensor::doesAsciiSscanfs(), and nidas::core::CharacterSensor::init().
|
inline |
Get the sensor portion of the shortId.
References _sensorId.
const Site * SampleTag::getSite | ( | ) | const |
Get the Site of this SampleTag, which will be non-NULL only if getDSMConfig() returns non-NULL.
References _dsm, and nidas::core::DSMConfig::getSite().
Referenced by nidas::core::Variable::setSampleTag(), and SampleToDatabase::setSiteAndMeasurement().
|
inline |
Get the sensor+sample portion of the id.
References _id, and GET_SPS_ID.
Referenced by nidas::dynld::isff::WisardMote::addMoteSampleTag(), nidas::dynld::StatisticsCruncher::attach(), nidas::core::NearestResamplerAtRate::connect(), nidas::dynld::StatisticsProcessor::connectSource(), nidas::core::NearestResamplerAtRate::ctorCommon(), nidas::core::DSMSensor::fromDOMElement(), nidas::dynld::isff::GOESProject::GOESProject(), 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 PConfig::loadVariables(), and nidas::core::Variable::setSampleTag().
|
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::CSI_IRGA_Sonic::checkSampleTags(), nidas::dynld::isff::CSAT3_Sonic::checkSampleTags(), nidas::core::CharacterSensor::init(), nidas::dynld::raf::DSMArincSensor::init(), and nidas::dynld::isff::CSI_CRX_Binary::validate().
|
inline |
Provide a reference to a variable - allowing one to modify it.
References _variables.
Referenced by nidas::dynld::StatisticsCruncher::addVariable(), nidas::dynld::StatisticsProcessor::connectSource(), nidas::dynld::StatisticsCruncher::createCombinations(), nidas::dynld::isff::WisardMote::createSampleTags(), nidas::dynld::isff::GOESProject::GOESProject(), 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::isff::GOESOutput::addSourceSampleTag(), nidas::dynld::StatisticsCruncher::attach(), nidas::dynld::isff::Wind3D::checkSampleTags(), nidas::core::NearestResampler::connect(), nidas::core::SampleAverager::connect(), nidas::dynld::StatisticsCruncher::connect(), nidas::core::NearestResamplerAtRate::connect(), nidas::dynld::isff::GOESOutput::connected(), nidas::dynld::StatisticsProcessor::connectSource(), nidas::dynld::StatisticsCruncher::createCombinations(), nidas::dynld::WxtSensor::init(), PConfig::loadVariables(), parseAnalog(), parseOther(), DumpClient::setSensors(), and PConfig::showAll().
const std::vector< const Variable * > & SampleTag::getVariables | ( | ) | const |
References _constVariables.
Referenced by nidas::dynld::StatisticsCruncher::addVariable(), nidas::core::DSMSensor::applyConversions(), nidas::dynld::isff::ATIK_Sonic::checkSampleTags(), nidas::dynld::isff::CSI_IRGA_Sonic::checkSampleTags(), nidas::dynld::isff::CSAT3_Sonic::checkSampleTags(), SampleCounter::collectMetadata(), nidas::dynld::psql::PSQLProcessor::connect(), nidas::dynld::isff::GOESOutput::connected(), nidas::dynld::StatisticsProcessor::connectSource(), nidas::dynld::StatisticsCruncher::createCombinations(), DataStats::createCounters(), nidas::dynld::isff::WisardMote::createSampleTags(), nidas::dynld::psql::PSQLSampleOutput::createTables(), nidas::core::DSMSensor::findVariableIndex(), nidas::dynld::raf::IRIGSensor::fromDOMElement(), nidas::dynld::isff::GOESProject::GOESProject(), nidas::core::VariableIterator::hasNext(), nidas::dynld::raf::UHSAS_Serial::init(), nidas::dynld::DSC_Event::init(), nidas::dynld::WxtSensor::init(), nidas::dynld::raf::TwoD_USB::init(), nidas::core::CharacterSensor::init(), nidas::dynld::raf::DSMArincSensor::init(), nidas::dynld::StatisticsCruncher::initStats(), StatsProcess::listOutputSamples(), nidas::dynld::raf::DSMArincSensor::open(), operator=(), nidas::dynld::raf::Watlow::process(), nidas::dynld::isff::CU_Coldwire::process(), nidas::dynld::isff::CSI_IRGA_Sonic::process(), nidas::dynld::A2DSensor::process(), nidas::dynld::isff::CSAT3_Sonic::process(), nidas::dynld::raf::DSMAnalogSensor::process(), nidas::dynld::isff::WisardMote::process(), nidas::dynld::isff::PacketInputStream::readSamples(), nidas::dynld::isff::GOESOutput::run(), SampleDispatcher::SampleDispatcher(), SampleTag(), 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::GPS_Novatel_Serial::validate(), nidas::dynld::GPS_NMEA_Serial::validate(), nidas::dynld::isff::Licor7500::validate(), nidas::dynld::raf::TwoD64_USB_v3::validate(), nidas::dynld::isff::CSI_CRX_Binary::validate(), nidas::dynld::raf::PSI9116_Sensor::validate(), nidas::dynld::isff::NCAR_TRH::validate(), nidas::dynld::isff::Wind2D::validate(), nidas::dynld::DSC_PulseCounter::validate(), nidas::dynld::DSC_FreqCounter::validate(), nidas::dynld::A2DSensor::validate(), nidas::dynld::raf::A2D_Serial::validate(), nidas::dynld::raf::SppSerial::validate(), nidas::dynld::isff::Wind2D::validateSscanfs(), nidas::core::CharacterSensor::validateSscanfs(), and nidas::dynld::WxtSensor::wxtValidateSscanfs().
|
inline |
References _variables.
|
inline |
References _enabled.
|
inline |
Test to see if this sample is to be post processed.
References _processed.
Referenced by nidas::dynld::psql::PSQLProcessor::connect(), 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(), getParameters(), and getVariables().
void SampleTag::removeVariable | ( | const Variable * | var | ) |
References _constVariables, _variables, and nidas::core::Variable::getName().
|
inline |
References _dsm.
Referenced by nidas::core::DSMSensor::fromDOMElement().
|
inline |
Set the DSM portion of the id.
References _id, and SET_DSM_ID.
Referenced by nidas::dynld::StatisticsProcessor::connectSource(), nidas::core::NearestResampler::ctorCommon(), nidas::core::NearestResamplerAtRate::ctorCommon(), nidas::core::DSMSensor::fromDOMElement(), nidas::dynld::isff::GOESProject::GOESProject(), main(), SampleTag(), nidas::dynld::StatisticsCruncher::StatisticsCruncher(), and nidas::dynld::raf::SyncRecordSource::SyncRecordSource().
void SampleTag::setDSMSensor | ( | const DSMSensor * | val | ) |
References _dsm, _sensor, and nidas::core::DSMSensor::getDSMConfig().
Referenced by nidas::core::DSMSensor::fromDOMElement().
|
inline |
References _enabled.
|
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.
|
inlinevirtual |
Set sampling period (1/rate) in sec.
A value of 0.0 means an unknown period.
References _rate.
Referenced by nidas::dynld::isff::GOESProject::GOESProject().
|
inline |
Set if this sample is going to be post processed.
References _processed.
|
inline |
References _promptOffset.
|
inline |
References _promptString.
|
inlinevirtual |
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.
References _rate.
Referenced by nidas::dynld::raf::IRIGSensor::fromDOMElement(), nidas::core::DSMSensor::fromDOMElement(), main(), DataPrep::run(), nidas::dynld::raf::SyncRecordReader::scanHeader(), nidas::core::SampleAverager::setAveragePeriodSecs(), nidas::dynld::StatisticsCruncher::StatisticsCruncher(), nidas::dynld::raf::SyncRecordSource::SyncRecordSource(), and nidas::core::CharacterSensor::validate().
|
inline |
Set the sample portion of the shortId.
References _id, _sampleId, _sensorId, and SET_SPS_ID.
Referenced by nidas::dynld::isff::WisardMote::createSampleTag(), nidas::dynld::isff::WisardMote::createSampleTags(), nidas::core::NearestResampler::ctorCommon(), nidas::core::NearestResamplerAtRate::ctorCommon(), nidas::core::SampleIOProcessor::fromDOMElement(), nidas::core::DSMSensor::fromDOMElement(), nidas::dynld::isff::GOESProject::GOESProject(), main(), nidas::core::SampleAverager::SampleAverager(), nidas::dynld::StatisticsCruncher::StatisticsCruncher(), and nidas::dynld::raf::SyncRecordSource::SyncRecordSource().
|
inline |
References _scanfFormat.
|
inline |
Set the sensor portion of the shortId.
References _id, _sampleId, _sensorId, and SET_SPS_ID.
Referenced by nidas::core::SampleIOProcessor::fromDOMElement(), nidas::core::DSMSensor::fromDOMElement(), main(), SampleTag(), and nidas::dynld::raf::SyncRecordSource::SyncRecordSource().
|
inlineprotected |
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.
void SampleTag::setStation | ( | int | val | ) |
References _station, _variables, and nidas::core::Variable::setStation().
Referenced by nidas::core::DSMSensor::fromDOMElement(), and nidas::core::DSMSensor::setStation().
void SampleTag::setSuffix | ( | const std::string & | val | ) |
References _suffix, _variables, and nidas::core::Variable::setSuffix().
Referenced by nidas::core::DSMSensor::fromDOMElement().
|
inline |
References _ttAdjustVal.
|
virtual |
Add my content into a DOMElement.
Reimplemented from nidas::core::DOMable.
References nidas::core::VariableIterator::hasNext(), nidas::core::XDOMElement::setAttributeValue(), and nidas::core::Variable::toDOMParent().
|
virtual |
Create a DOMElement and append it to the parent.
Reimplemented from nidas::core::DOMable.
References nidas::core::DOMable::getNamespaceURI().
Referenced by nidas::core::DSMSensor::toDOMParent().
|
private |
List of const pointers to Parameters for providing via getParameters().
Referenced by addParameter(), getParameter(), and getParameters().
|
private |
Referenced by getDataIndex(), getVariables(), and removeVariable().
|
private |
Referenced by 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().
|
private |
Referenced by getSampleId(), operator=(), setSampleId(), and setSensorId().
|
private |
Referenced by getScanfFormat(), operator=(), and setScanfFormat().
|
private |
Referenced by getDSMSensor(), operator=(), SampleTag(), and setDSMSensor().
|
private |
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 getVariable(), getVariables(), removeVariable(), setStation(), setSuffix(), and ~SampleTag().