nidas
v1.2-1520
|
Aircraft is a sub-class of a measurement Site. More...
#include <Aircraft.h>
Public Member Functions | |
Aircraft () | |
virtual | ~Aircraft () |
std::string | getTailNumber () const |
Get/Set tail number of this aircraft. More... | |
void | setTailNumber (const std::string &val) |
void | setName (const std::string &val) |
Set the name of the Site. More... | |
const std::string & | getName () const |
void | setNumber (int val) |
Identify the Site by number. More... | |
int | getNumber () const |
bool | operator== (const Site &x) const |
Equivalence operator for Site, checks name. More... | |
bool | operator!= (const Site &x) const |
Non-equivalence operator for Site. More... | |
bool | operator< (const Site &x) const |
Less than operator for Site, compares the names. More... | |
void | setSuffix (const std::string &val) |
Set the suffix for the Site. More... | |
const std::string & | getSuffix () const |
const Project * | getProject () const |
Provide pointer to Project. More... | |
Project * | getProject () |
void | setProject (Project *val) |
Set the current project for this Site. More... | |
void | addDSMConfig (DSMConfig *dsm) |
A Site contains one or more DSMs. More... | |
void | removeDSMConfig (DSMConfig *dsm) |
const std::list< const DSMConfig * > & | getDSMConfigs () const |
const std::list< DSMConfig * > & | getDSMConfigs () |
void | addServer (DSMServer *srvr) |
A Site has one or more DSMServers. More... | |
const std::list< DSMServer * > & | getServers () const |
DSMServer * | findServer (const std::string &hostname) const |
Look for a server on this aircraft that either has no name or whose name matches hostname. More... | |
const DSMConfig * | findDSM (const nidas::util::Inet4Address &addr) const |
Find a DSM whose name corresponds to a given IP address. More... | |
const DSMConfig * | findDSM (unsigned int id) const |
Find a DSM by id. More... | |
const DSMConfig * | findDSM (const std::string &name) const |
Find a DSM by name. More... | |
DSMSensor * | findSensor (unsigned int id) const |
Find a DSMSensor by the full id, both the DSM id and the sensor id. More... | |
void | initSensors () throw (nidas::util::IOException) |
Initialize all sensors for a Site. More... | |
void | initSensors (DSMConfig *dsm) throw (nidas::util::IOException) |
Initialize all sensors for a given dsm. More... | |
virtual void | addParameter (Parameter *val) |
Add a parameter to this Site. More... | |
virtual const Parameter * | getParameter (const std::string &name) const |
virtual const std::list< const Parameter * > & | getParameters () const |
virtual bool | getApplyVariableConversions () const |
Do we want DSMSensor::process methods at this site to apply variable conversions? Currently on raf.Aircraft we don't want process methods to apply the conversions. More... | |
std::string | expandString (const std::string &input) const |
Utility function to expand ${TOKEN} or $TOKEN fields in a string. More... | |
bool | getTokenValue (const std::string &token, std::string &value) const |
Implement a lookup for tokens that I know about, like $SITE, and $AIRCRAFT. More... | |
const Dictionary & | getDictionary () const |
DSMServerIterator | getDSMServerIterator () const |
DSMServiceIterator | getDSMServiceIterator () const |
ProcessorIterator | getProcessorIterator () const |
DSMConfigIterator | getDSMConfigIterator () const |
SensorIterator | getSensorIterator () const |
SampleTagIterator | getSampleTagIterator () const |
VariableIterator | getVariableIterator () const |
void | validate () throw (nidas::util::InvalidParameterException) |
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 Aircraft * | getAircraft (Project *project) |
Search the Project for the Aircraft site and return a pointer to it, or return null if there are no Aircraft sites. More... | |
static const XMLCh * | getNamespaceURI () |
Protected Attributes | |
bool | _applyCals |
Should NIDAS apply calibrations, or defer them to other processing. More... | |
Aircraft is a sub-class of a measurement Site.
A Site contains a collection of Parameters, so most any Parameter specific to an Aircraft can be supported.
Aircraft::Aircraft | ( | ) |
|
virtual |
|
inlineinherited |
A Site contains one or more DSMs.
Site will own the pointer and will delete the DSMConfig in its destructor.
References nidas::core::Site::_dsms, and nidas::core::Site::_ncDsms.
|
virtualinherited |
Add a parameter to this Site.
Site will then own the pointer and will delete it in its destructor.
References nidas::core::Site::_constParameters, nidas::core::Site::_parameterMap, and nidas::core::Parameter::getName().
|
inlineinherited |
A Site has one or more DSMServers.
References nidas::core::Site::_servers.
|
inlineinherited |
Utility function to expand ${TOKEN} or $TOKEN fields in a string.
Utility function to expand ${TOKEN} or $TOKEN fields in a string with their value from getTokenValue(). If curly brackets are not used, then the TOKEN should be delimited by a '/', a '.' or the end of string, e.g.: xxx/yyy/$ZZZ.dat
References nidas::core::Site::_dictionary, and nidas::core::Dictionary::expandString().
Referenced by PConfig::getHostNames().
|
inherited |
Find a DSM whose name corresponds to a given IP address.
References nidas::core::Site::_dsms, nidas::util::Inet4Address::getAllByName(), nidas::core::DSMConfig::getName(), and VLOG.
Referenced by nidas::core::Project::findDSM().
|
inherited |
Find a DSM by id.
References nidas::core::Site::_dsms, nidas::core::DSMConfig::getId(), nidas::core::DSMConfig::getName(), and VLOG.
|
inherited |
Find a DSM by name.
References nidas::core::Site::_dsms, nidas::core::DSMConfig::getName(), and VLOG.
|
inherited |
Find a DSMSensor by the full id, both the DSM id and the sensor id.
References GET_DSM_ID, GET_SPS_ID, nidas::core::DSMSensor::getDSMId(), nidas::core::SampleTag::getId(), nidas::core::DSMSensor::getId(), nidas::core::Site::getName(), nidas::core::DSMSensor::getSampleTagIterator(), nidas::core::DSMSensor::getSensorId(), nidas::core::Site::getSensorIterator(), nidas::core::SensorIterator::hasNext(), nidas::core::SampleTagIterator::hasNext(), nidas::core::SensorIterator::next(), nidas::core::SampleTagIterator::next(), and VLOG.
Referenced by nidas::core::Project::findSensor().
|
inherited |
Look for a server on this aircraft that either has no name or whose name matches hostname.
If none found, remove any domain names and try again.
References nidas::core::Site::_servers, and nidas::core::DSMServer::getName().
|
virtualinherited |
Initialize myself from a xercesc::DOMElement.
Implements nidas::core::DOMable.
References nidas::core::Parameter::createParameter(), nidas::core::DSMServer::fromDOMElement(), nidas::core::DSMConfig::fromDOMElement(), nidas::core::DSMConfig::getId(), nidas::core::DSMConfig::getName(), nidas::core::XDOMAttr::getName(), nidas::core::XDOMElement::getNodeName(), nidas::core::DSMServer::setProject(), nidas::core::DSMConfig::setSite(), and nidas::core::DSMServer::setSite().
Referenced by nidas::core::Project::fromDOMElement().
Search the Project for the Aircraft site and return a pointer to it, or return null if there are no Aircraft sites.
References nidas::core::Project::getSites().
Referenced by nidas::dynld::raf::SyncRecordSource::connect().
|
inlinevirtualinherited |
Do we want DSMSensor::process methods at this site to apply variable conversions? Currently on raf.Aircraft we don't want process methods to apply the conversions.
References nidas::core::Site::_applyCals.
Referenced by nidas::core::Variable::convert().
|
inlineinherited |
References nidas::core::Site::_dictionary.
|
inherited |
|
inlineinherited |
|
inlineinherited |
References nidas::core::Site::_ncDsms.
|
inherited |
|
inherited |
|
inlineinherited |
References nidas::core::Site::_name.
Referenced by nidas::core::Project::addSite(), SampleCounter::collectMetadata(), nidas::core::SampleAverager::connect(), nidas::dynld::StatisticsCruncher::connect(), nidas::dynld::StatisticsProcessor::connectSource(), nidas::core::NearestResampler::ctorCommon(), nidas::core::Project::findDSM(), nidas::core::Site::findSensor(), nidas::core::Site::MyDictionary::getTokenValue(), PConfig::loadVariables(), main(), DataPrep::matchVariables(), SampleToDatabase::setSiteAndMeasurement(), PConfig::showAll(), and PConfig::showCalFiles().
|
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(), nidas::core::SampleTag::toDOMParent(), nidas::core::ServerSocket::toDOMParent(), nidas::core::Variable::toDOMParent(), nidas::core::DSMSensor::toDOMParent(), nidas::core::Datasets::writeXML(), and nidas::core::ProjectConfigs::writeXML().
|
inlineinherited |
References nidas::core::Site::_number.
Referenced by nidas::core::Project::addSite(), nidas::dynld::isff::GOESProject::GOESProject(), and PConfig::showAll().
|
virtualinherited |
References nidas::core::Site::_parameterMap.
|
virtualinherited |
References nidas::core::Site::_constParameters.
|
inherited |
Referenced by nidas::dynld::isff::GOESProject::GOESProject().
|
inlineinherited |
Provide pointer to Project.
References nidas::core::Site::_project.
Referenced by nidas::core::DSMConfig::getProject(), and nidas::core::Site::MyDictionary::getTokenValue().
|
inlineinherited |
References nidas::core::Site::_project.
|
inherited |
|
inherited |
Referenced by nidas::core::Site::findSensor(), and nidas::core::DSMServer::getSensorIterator().
|
inlineinherited |
References nidas::core::Site::_servers.
Referenced by nidas::core::DSMServerIterator::hasNext().
|
inlineinherited |
References nidas::core::Site::_suffix.
Referenced by nidas::dynld::StatisticsProcessor::connectSource(), nidas::core::Variable::setSite(), and nidas::core::Variable::setStation().
string Aircraft::getTailNumber | ( | ) | const |
Get/Set tail number of this aircraft.
References nidas::core::Parameter::getLength(), and nidas::core::Parameter::getStringValue().
|
inlineinherited |
Implement a lookup for tokens that I know about, like $SITE, and $AIRCRAFT.
For other tokens, call getProject()->getTokenValue(token,value);
References nidas::core::Site::_dictionary, and nidas::core::Site::MyDictionary::getTokenValue().
Referenced by nidas::core::DSMConfig::MyDictionary::getTokenValue().
|
inherited |
|
inherited |
Initialize all sensors for a Site.
References nidas::core::Site::getDSMConfigs(), and nidas::core::DSMConfig::initSensors().
Referenced by nidas::core::Project::initSensors().
|
inherited |
Initialize all sensors for a given dsm.
References nidas::core::DSMConfig::initSensors().
|
inlineinherited |
Non-equivalence operator for Site.
References nidas::core::Site::operator==().
|
inlineinherited |
Less than operator for Site, compares the names.
References nidas::core::Site::_name.
|
inlineinherited |
Equivalence operator for Site, checks name.
References nidas::core::Site::_name, nidas::core::Site::_number, and nidas::core::Site::_suffix.
Referenced by nidas::core::Site::operator!=().
|
inlineinherited |
References nidas::core::Site::_dsms, and nidas::core::Site::_ncDsms.
|
inlineinherited |
Set the name of the Site.
References nidas::core::Site::_name.
|
inlineinherited |
Identify the Site by number.
The site number can be used for things like a NetCDF station dimension.
Site | number, 0 means no number is associated with the site. |
References nidas::core::Site::_number.
|
inlineinherited |
Set the current project for this Site.
References nidas::core::Site::_project.
Referenced by nidas::core::Project::fromDOMElement().
|
inlineinherited |
Set the suffix for the Site.
All variable names from this site will have the suffix.
References nidas::core::Site::_suffix.
void Aircraft::setTailNumber | ( | const std::string & | val | ) |
|
virtualinherited |
Add my content into a DOMElement.
Reimplemented from nidas::core::DOMable.
References nidas::core::DSMConfigIterator::hasNext(), nidas::core::XDOMElement::setAttributeValue(), and nidas::core::DSMConfig::toDOMParent().
|
virtualinherited |
Create a DOMElement and append it to the parent.
Reimplemented from nidas::core::DOMable.
References nidas::core::DOMable::getNamespaceURI().
Referenced by nidas::core::Project::toDOMElement().
|
inherited |
References nidas::core::Site::getDSMConfigs(), nidas::core::DSMSensor::getDSMId(), nidas::core::DSMSensor::getDuplicateIdOK(), nidas::core::DSMConfig::getId(), nidas::core::DSMConfig::getName(), nidas::core::DSMSensor::getName(), nidas::core::Variable::getName(), nidas::core::DSMSensor::getSensorId(), nidas::core::DSMConfig::getSensorIterator(), nidas::core::DSMSensor::getVariableIterator(), nidas::core::SensorIterator::hasNext(), nidas::core::VariableIterator::hasNext(), and nidas::core::DSMConfig::validate().
Referenced by nidas::core::Project::fromDOMElement().
|
protectedinherited |
Should NIDAS apply calibrations, or defer them to other processing.
Referenced by nidas::core::Site::getApplyVariableConversions().