nidas  v1.2-1520
Public Member Functions | Private Member Functions | Private Attributes | List of all members
nidas::dynld::isff::GOESProject Class Reference

#include <GOESProject.h>

Public Member Functions

 GOESProject (nidas::core::Project *p) throw (nidas::util::InvalidParameterException)
 
 ~GOESProject ()
 
nidas::core::ProjectgetProject () const
 
int getStationNumber (unsigned long goesId) const throw (nidas::util::InvalidParameterException)
 Get the station number, corresponding to a GOES id. More...
 
int getXmitInterval (int stationNumber) const throw (nidas::util::InvalidParameterException)
 
int getXmitOffset (int stationNumber) const throw (nidas::util::InvalidParameterException)
 
const nidas::core::SampleTaggetGOESSampleTag (int stationNumber) const throw (nidas::util::InvalidParameterException)
 
void addSampleTag (nidas::core::SampleTag *tag) throw ()
 
const nidas::core::SampleTaggetSampleTag (int stationNumber, int sampleId) const
 Get a SampleTag*, corresponding to station and sampleid. More...
 
std::list< const
nidas::core::SampleTag * > 
getSampleTags () const
 
unsigned long getGOESId (int stationNum) const throw (nidas::util::InvalidParameterException)
 

Private Member Functions

 GOESProject (const GOESProject &x)
 
GOESProjectoperator= (const GOESProject &x) const
 
void readGOESIds () throw (nidas::util::InvalidParameterException)
 

Private Attributes

nidas::core::Project_project
 
std::vector< unsigned long > _goesIds
 
std::map< unsigned long, int > _stationNumbersById
 
std::map
< nidas::core::dsm_sample_id_t,
const nidas::core::SampleTag * > 
_sampleTagsById
 
std::vector< int > _xmitOffsets
 
std::vector< int > _xmitIntervals
 
std::list
< nidas::core::SampleTag * > 
_sampleTags
 
std::list< const
nidas::core::SampleTag * > 
_constSampleTags
 
std::vector
< nidas::core::SampleTag * > 
_goesTags
 

Constructor & Destructor Documentation

GOESProject::GOESProject ( nidas::core::Project p)
throw (nidas::util::InvalidParameterException
)
GOESProject::~GOESProject ( )
nidas::dynld::isff::GOESProject::GOESProject ( const GOESProject x)
private

Member Function Documentation

void nidas::dynld::isff::GOESProject::addSampleTag ( nidas::core::SampleTag tag)
throw (
)
inline

References _constSampleTags, and _sampleTags.

unsigned long GOESProject::getGOESId ( int  stationNum) const
throw (nidas::util::InvalidParameterException
)
const SampleTag * GOESProject::getGOESSampleTag ( int  stationNumber) const
throw (nidas::util::InvalidParameterException
)
nidas::core::Project* nidas::dynld::isff::GOESProject::getProject ( ) const
inline

References _project.

const SampleTag * GOESProject::getSampleTag ( int  stationNumber,
int  sampleId 
) const

Get a SampleTag*, corresponding to station and sampleid.

Returns
0: SampleTag corresponding to a dsm id of stationNumber+1, and the given sampleId not found.

References SET_DSM_ID.

Referenced by nidas::dynld::isff::PacketInputStream::findSampleTag().

std::list<const nidas::core::SampleTag*> nidas::dynld::isff::GOESProject::getSampleTags ( ) const
inline
int GOESProject::getStationNumber ( unsigned long  goesId) const
throw (nidas::util::InvalidParameterException
)

Get the station number, corresponding to a GOES id.

Returns
non-negative number. Throws InvalidParameterException if there is no "goes_ids" integer parameter for the Project, or the goesId is not valid.

Referenced by nidas::dynld::isff::PacketInputStream::findSampleTag(), and nidas::dynld::isff::PacketInputStream::readSamples().

int GOESProject::getXmitInterval ( int  stationNumber) const
throw (nidas::util::InvalidParameterException
)
int GOESProject::getXmitOffset ( int  stationNumber) const
throw (nidas::util::InvalidParameterException
)
GOESProject& nidas::dynld::isff::GOESProject::operator= ( const GOESProject x) const
private
void nidas::dynld::isff::GOESProject::readGOESIds ( )
throw (nidas::util::InvalidParameterException
)
private

Member Data Documentation

std::list<const nidas::core::SampleTag*> nidas::dynld::isff::GOESProject::_constSampleTags
private

Referenced by addSampleTag(), and getSampleTags().

std::vector<unsigned long> nidas::dynld::isff::GOESProject::_goesIds
private
std::vector<nidas::core::SampleTag*> nidas::dynld::isff::GOESProject::_goesTags
private
nidas::core::Project* nidas::dynld::isff::GOESProject::_project
private

Referenced by getProject().

std::list<nidas::core::SampleTag*> nidas::dynld::isff::GOESProject::_sampleTags
private

Referenced by addSampleTag().

std::map<nidas::core::dsm_sample_id_t,const nidas::core::SampleTag*> nidas::dynld::isff::GOESProject::_sampleTagsById
private
std::map<unsigned long,int> nidas::dynld::isff::GOESProject::_stationNumbersById
private
std::vector<int> nidas::dynld::isff::GOESProject::_xmitIntervals
private
std::vector<int> nidas::dynld::isff::GOESProject::_xmitOffsets
private

The documentation for this class was generated from the following files: