CARMA C++
CorrelatorConfigChecker.h
Go to the documentation of this file.
1 #ifndef CARMA_CORRELATOR_LIB_CORRELATORCONFIGCHECKER_H
2 #define CARMA_CORRELATOR_LIB_CORRELATORCONFIGCHECKER_H
3 
6 
7 #include <string>
8 
14 namespace carma {
15  namespace correlator {
16  namespace lib {
17 
18  class CorrelatorListener;
25  public:
26 
30  virtual ~CorrelatorConfigChecker();
31 
36  getInstance( const ::std::string & filename = ::std::string() );
37 
42  bool isDebug(const std::string& ClassName);
43 
48  bool isLogCmd(const std::string& ClassName);
49 
55  bool printTime();
56 
63  bool prettyFunction();
64 
70 
76 
84 
155 
161 
169 
173  bool isCorrelatorIpqWriter();
174 
178  bool isDecimator();
179 
183  bool isPassBand();
184 
188  bool isTsys();
189 
193  bool isFlux();
194 
198  bool isBlankFlag();
199 
203  bool isLinelengthCorrection();
204 
208  bool isIFcorrection();
209 
213  bool isWvr();
214 
218  bool isSelfCal( );
219 
223  bool isCorrelatorPublisher();
224 
228  bool isCorrelatorIntegrator();
229 
234 
239 
243  float getIntegrationTime();
244 
249  bool isApplyDelays();
250 
257  double getCorrelatorMonitorDelay();
258 
265  double getCatchDataMonitorDelay();
266 
274 
282 
287  std::string getCatchDataIPQfilename();
288 
293  std::string getIntegratorIPQfilename();
294 
300 
305  int getIPQmaxsize();
306 
312 
318 
319  protected:
323  explicit CorrelatorConfigChecker( const ::std::string & filename );
324 
325  private:
326  double defaultCorrelatorMonitorDelay_;
327  double defaultCatchDataMonitorDelay_;
328  double defaultDecimatorMonitorDelay_;
329  double defaultPassBandMonitorDelay_;
330  double defaultTsysMonitorDelay_;
331  double defaultFluxMonitorDelay_;
332  double defaultBlankFlagMonitorDelay_;
333  double defaultLinelengthCorrectionMonitorDelay_;
334  double defaultIFcorrectionMonitorDelay_;
335  double defaultWvrMonitorDelay_;
336  double defaultCorrelatorPublisherMonitorDelay_;
337  double defaultIntegratorMonitorDelay_;
338  double defaultVisBrickWriterMonitorDelay_;
339  int defaultVisBrickWriterFilesize_;
340  int defaultNumberOfBands_;
341  std::string defaultCatchDataIPQfilename_;
342  int defaultCatchDataIPQnumberOfElements_;
343  std::string defaultIntegratorIPQfilename_;
344  int defaultIntegratorIPQnumberOfElements_;
345  float defaultIntegrationTime_;
346  int defaultIPQmaxsize_;
347  int defaultNumberOfRecordsToIntegrate_;
348  int defaultCatchDataWaitForData_; // in msec
349  std::vector<std::string> bandNames_;
351  };
352 
353  } // End namespace lib
354  } // End namespace correlator
355 } // End namespace carma
356 
357 
358 
359 #endif
bool isCorrelatorIntegrator()
Return true if CorrelatorIntegrator should process data.
CorrelatorConfigChecker(const ::std::string &filename)
Constructor.
bool isFlux()
Return true if Flux should process data.
bool isTransportCorrelatorMonitorData()
Returns status of transportMonitorData option which allows control of sending/not sending monitor dat...
carma::correlator::lib::BandManager * getSlBandManager()
Return a pointer to a class which holds Correlator Spectral line DO bands.
bool isCorrelatorPublisher()
Return true if CorrelatorPublisher should process data.
bool isCatchDataNotifyCorrelatorListener(const CorrelatorListener *cl)
Return true if catchData should notify CorrelatorListener as specified in config file.
int getCatchDataWaitForData()
return amount of time in msec to wait for arriving data before locking data container and notifying l...
bool isTransportPassBandMonitorData()
Returns status of transportPassBandMonitorData option which allows control of sending/not sending mon...
bool isTransportCorrelatorPublisherMonitorData()
Returns status of transportCorrelatorPublisherMonitorData option which allows control of sending/not ...
bool isTransportBlankFlagMonitorData()
Returns status of transportBlankFlagMonitorData option which allows control of sending/not sending mo...
std::string getCatchDataIPQfilename()
Return the filename to use for the IPQ written by the catchData program.
bool isDebug(const std::string &ClassName)
Returns status of the debugClassName parameter.
bool isCorrelatorVisBrickWriter()
Return true if CorrelatorVisBrickWriter should process data.
bool isTransportCorrelatorData()
Returns status of transportData option which allows control of sending/not sending data via CORBA...
bool isTransportFluxMonitorData()
Returns status of transportFluxMonitorData option which allows control of sending/not sending monitor...
bool isTransportLinelengthCorrectionMonitorData()
Returns status of transportLinelenghtCorrectionMonitorData option which allows control of sending/not...
bool printTime()
Returns status of printTime parameter.
bool prettyFunction()
Returns status of prettyFunction parameter.
bool isTransportIntegratorMonitorData()
Returns status of transportIntegratorMonitorData option which allows control of sending/not sending m...
bool isSelfCal()
Return true if SelfCal stage should process data.
bool isIFcorrection()
Return true if IFcorrection should process data.
bool isTransportVisBrickWriterMonitorData()
Returns status of transportVisBrickMonitorData option which allows control of sending/not sending mon...
bool isTransportSelfCalMonitorData()
Returns status of transportSelfCalStageMonitorData option which allows control of sending/not sending...
int getIPQmaxsize()
Return the maximum size of the buffer used to hold the data for writing.
bool isWvr()
Return true if Wvr should process data.
bool isApplyDelays()
Return true if delays should be applied to Correlator Data This is used in DelayWorker.
bool isLinelengthCorrection()
Return true if LinelengthCorrection should process data.
float getIntegrationTime()
Return amount of time to integrate in seconds.
double getCatchDataMonitorDelay()
Returns amount of time(in seconds) to delay sending monitor data after every integral half second...
bool isTsys()
Return true if Tsys should process data.
bool isPassBand()
Return true if PassBand should process data.
bool isTransportPipelineMonitorData()
Returns status of transportMonitorData option which allows control of sending/not sending monitor dat...
static CorrelatorConfigChecker * getInstance(const ::std::string &filename=::std::string())
Get Singleton pointer.
bool isLogCmd(const std::string &ClassName)
Returns status of the logCmdClassName parameter.
carma::correlator::lib::BandManager * getWbBandManager()
Return a pointer to a class which holds Correlator Wideband DO bands.
std::string getIntegratorIPQfilename()
Return the filename to use for the IPQ written by the Correlator Integrator.
bool isTransportTsysMonitorData()
Returns status of transportTsysMonitorData option which allows control of sending/not sending monitor...
Abstract Base class for managing configuration files.
Interface for those wishing to receive notification of arriving Correlator Data.
int getCatchDataIPQnumberOfElements()
Return the number of Elements for the IPQ written by the catchData program.
bool isDecimator()
Return true if Decimator should process data.
Interface for storing and retrieving Correlator Band DO names.
Definition: BandManager.h:17
int getIntegratorIPQnumberOfElements()
Return the number of Elements for the IPQ written by the Correlator Integrator.
bool isTransportDecimatorMonitorData()
Returns status of transportDecimatorMonitorData option which allows control of sending/not sending mo...
bool isTransportIFcorrectionMonitorData()
Returns status of transportIFcorrectionMonitorData option which allows control of sending/not sending...
double getCorrelatorMonitorDelay()
Returns amount of time(in seconds) to delay sending monitor data after every integral half second...
Singleton access to configuration parameters.
bool isTransportWvrMonitorData()
Returns status of transportWvrMonitorData option which allows control of sending/not sending monitor ...
int getNumberOfRecordsToIntegrate()
Return the number of Records to Integrate.
bool isBlankFlag()
Return true if BlankFlag should process data.
bool isCorrelatorIpqWriter()
Return true if CorrelatorIpqWriter should process data.