nidas v1.2.3
|
GroundStation is a sub-class of a measurement Site. More...
#include <GroundStation.h>
Public Member Functions | |
GroundStation () | |
virtual | ~GroundStation () |
void | setName (const std::string &val) |
Set the name of the Site. | |
const std::string & | getName () const |
void | setNumber (int val) |
Identify the Site by number. | |
int | getNumber () const |
bool | operator== (const Site &x) const |
Equivalence operator for Site, checks name. | |
bool | operator!= (const Site &x) const |
Non-equivalence operator for Site. | |
bool | operator< (const Site &x) const |
Less than operator for Site, compares the names. | |
void | setSuffix (const std::string &val) |
Set the suffix for the Site. | |
const std::string & | getSuffix () const |
const Project * | getProject () const |
Provide pointer to Project. | |
Project * | getProject () |
void | setProject (Project *val) |
Set the current project for this Site. | |
void | addDSMConfig (DSMConfig *dsm) |
A Site contains one or more DSMs. | |
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. | |
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. | |
const DSMConfig * | findDSM (unsigned int id) const |
Find a DSM by id. | |
const DSMConfig * | findDSM (const std::string &name) const |
Find a DSM by name. | |
DSMSensor * | findSensor (unsigned int id) const |
Find a DSMSensor by the full id, both the DSM id and the sensor id. | |
void | initSensors () |
Initialize all sensors for a Site. | |
void | initSensors (DSMConfig *dsm) |
Initialize all sensors for a given dsm. | |
virtual void | addParameter (Parameter *val) |
Add a parameter to this Site. | |
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. | |
std::string | expandString (const std::string &input) const |
Utility function to expand ${TOKEN} or $TOKEN fields in a string. | |
bool | getTokenValue (const std::string &token, std::string &value) const |
Implement a lookup for tokens that I know about, like $SITE, and $AIRCRAFT. | |
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 () |
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 Attributes | |
bool | _applyCals |
Should NIDAS apply calibrations, or defer them to other processing. | |
Private Attributes | |
Project * | _project |
Pointer back to my project. | |
std::string | _name |
int | _number |
std::string | _suffix |
nidas::core::Site::MyDictionary | _dictionary |
std::list< const DSMConfig * > | _dsms |
std::list< DSMConfig * > | _ncDsms |
std::list< DSMServer * > | _servers |
std::map< std::string, Parameter * > | _parameterMap |
Mapping of Parameters, by name. | |
std::list< const Parameter * > | _constParameters |
List of const pointers to Parameters for providing via getParameters(). | |
Static Private Attributes | |
static XMLCh * | namespaceURI = 0 |
GroundStation is a sub-class of a measurement Site.
A Site contains a collection of Parameters, so most any Parameter specific to an GroundStation can be supported.
GroundStation::GroundStation | ( | ) |
|
virtual |
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.
Referenced by nidas::core::Site::fromDOMElement().
Add a parameter to this Site.
Site will then own the pointer and will delete it in its destructor.
Reimplemented in nidas::dynld::raf::Aircraft.
References nidas::core::Site::_constParameters, nidas::core::Site::_parameterMap, and nidas::core::getSample().
Referenced by nidas::dynld::raf::Aircraft::addParameter(), and nidas::core::Site::fromDOMElement().
A Site has one or more DSMServers.
References nidas::core::Site::_servers.
Referenced by nidas::core::Site::fromDOMElement().
|
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 nidas::core::Site::fromDOMElement().
Find a DSM by name.
References nidas::core::Site::_dsms, nidas::core::Site::findDSM(), nidas::core::getSample(), and VLOG.
Find a DSM by id.
References nidas::core::Site::_dsms, nidas::core::getSample(), and VLOG.
Referenced by nidas::core::Site::findDSM().
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::DSMSensor::getId(), nidas::core::SampleTag::getId(), nidas::core::Site::getName(), nidas::core::DSMSensor::getSampleTagIterator(), nidas::core::DSMSensor::getSensorId(), nidas::core::Site::getSensorIterator(), and VLOG.
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::getSample().
nidas::util::InvalidParameterException |
Implements nidas::core::DOMable.
References nidas::core::Site::_applyCals, nidas::core::Site::_dictionary, nidas::core::Site::addDSMConfig(), nidas::core::Site::addParameter(), nidas::core::Site::addServer(), nidas::core::Parameter::createParameter(), nidas::core::Site::expandString(), nidas::core::Sample::getId(), nidas::core::Site::getName(), nidas::core::Site::getProject(), nidas::core::getSample(), nidas::core::Site::setName(), nidas::core::Site::setNumber(), and nidas::core::Site::setSuffix().
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.
|
inlineinherited |
References nidas::core::Site::_dictionary.
|
inherited |
Referenced by nidas::core::Site::toDOMElement().
References nidas::core::Site::_ncDsms.
References nidas::core::Site::_dsms.
Referenced by nidas::core::Site::initSensors(), nidas::core::Site::initSensors(), PConfig::showCalFiles(), and nidas::core::Site::validate().
|
inherited |
|
inherited |
|
inlineinherited |
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(), nidas::core::SampleTag::toDOMParent(), nidas::core::Site::toDOMParent(), nidas::core::ServerSocket::toDOMParent(), nidas::core::Variable::toDOMParent(), nidas::core::Datasets::writeXML(), and nidas::core::ProjectConfigs::writeXML().
|
inlineinherited |
References nidas::core::Site::_number.
Referenced by nidas::core::Site::toDOMElement().
References nidas::core::Site::_parameterMap.
Referenced by nidas::dynld::raf::Aircraft::getTailNumber().
References nidas::core::Site::_constParameters.
|
inherited |
|
inlineinherited |
References nidas::core::Site::_project.
Provide pointer to Project.
References nidas::core::Site::_project.
Referenced by nidas::core::Site::fromDOMElement(), and nidas::core::Site::MyDictionary::getTokenValue().
|
inherited |
|
inherited |
Referenced by nidas::core::Site::findSensor().
References nidas::core::Site::_servers.
|
inlineinherited |
References nidas::core::Site::_suffix.
|
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().
|
inherited |
|
inherited |
Initialize all sensors for a Site.
nidas::util::IOException |
References nidas::core::Site::getDSMConfigs(), and nidas::core::getSample().
Initialize all sensors for a given dsm.
nidas::util::IOException |
References nidas::core::Site::getDSMConfigs(), and nidas::core::getSample().
Non-equivalence operator for Site.
References nidas::core::Site::operator==().
Less than operator for Site, compares the names.
References nidas::core::Site::_name.
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!=().
References nidas::core::Site::_dsms, nidas::core::Site::_ncDsms, and nidas::core::getSample().
Set the name of the Site.
References nidas::core::Site::_name, and nidas::core::getSample().
Referenced by nidas::core::Site::fromDOMElement().
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, and nidas::core::getSample().
Referenced by nidas::core::Site::fromDOMElement().
Set the current project for this Site.
References nidas::core::Site::_project, and nidas::core::getSample().
Set the suffix for the Site.
All variable names from this site will have the suffix.
References nidas::core::Site::_suffix, and nidas::core::getSample().
Referenced by nidas::core::Site::fromDOMElement().
|
virtualinherited |
xercesc::DOMException |
Reimplemented from nidas::core::DOMable.
References nidas::core::Site::getDSMConfigIterator(), nidas::core::Site::getName(), nidas::core::Site::getNumber(), nidas::core::getSample(), nidas::core::DSMConfigIterator::hasNext(), and nidas::core::DSMConfig::toDOMParent().
Referenced by nidas::core::Site::toDOMParent().
|
virtualinherited |
xercesc::DOMException |
Reimplemented from nidas::core::DOMable.
References nidas::core::DOMable::getNamespaceURI(), and nidas::core::Site::toDOMElement().
Referenced by nidas::core::Project::toDOMElement().
|
inherited |
nidas::util::InvalidParameterException |
References nidas::core::Site::getDSMConfigs(), nidas::core::DSMSensor::getDSMId(), nidas::core::DSMSensor::getDuplicateIdOK(), nidas::core::Sample::getId(), nidas::core::DSMSensor::getName(), nidas::core::getSample(), nidas::core::DSMSensor::getSensorId(), nidas::core::DSMSensor::getVariableIterator(), and nidas::core::VariableIterator::hasNext().
|
protectedinherited |
Should NIDAS apply calibrations, or defer them to other processing.
Referenced by nidas::core::Site::fromDOMElement(), and nidas::core::Site::getApplyVariableConversions().
List of const pointers to Parameters for providing via getParameters().
Referenced by nidas::core::Site::addParameter(), and nidas::core::Site::getParameters().
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
Referenced by nidas::core::Site::getNumber(), nidas::core::Site::operator==(), and nidas::core::Site::setNumber().
|
privateinherited |
Mapping of Parameters, by name.
Referenced by nidas::core::Site::addParameter(), nidas::core::Site::getParameter(), and nidas::core::Site::~Site().
|
privateinherited |
Pointer back to my project.
Referenced by nidas::core::Site::getProject(), nidas::core::Site::getProject(), and nidas::core::Site::setProject().
|
privateinherited |
|
privateinherited |
Referenced by nidas::core::Site::getSuffix(), nidas::core::Site::operator==(), and nidas::core::Site::setSuffix().
|
staticprivateinherited |
Referenced by nidas::core::DOMable::getNamespaceURI().