LRAUV  revA
HFRCMTimeInterpolator.h
Go to the documentation of this file.
1 
14 #ifndef HFRCMTIMEINTERPOLATOR_H_
15 #define HFRCMTIMEINTERPOLATOR_H_
16 
18 #include "data/Mtx.h"
19 
20 #include "HFRadarCompactModelForecaster.h" // for TOTAL_HOURS, etc.
21 
23 class BlobReader;
24 class ConfigReader;
25 
38 {
39 public:
40  HFRCMTimeInterpolator( const Module* module );
41  virtual ~HFRCMTimeInterpolator();
42 
44  void initialize( void );
45 
47  void run();
48 
51  {
52  return Instance_;
53  }
54 
56  bool lookupExpansionCoefficients( Timestamp ts, Mtx & ec ); // TODO: Is there a reason that I should not make this a static function so that user components to not need to store the pointer to the singleton in order to call the function?
57 
58 protected:
59 
62 // Mtx expansionCoefficientsNow_;
63  double forecastEpochSeconds_[ HFRadarCompactModelForecasterIF::TOTAL_HOURS ];
64  int numModes_;
65  int numTimes_;
69 
70  // readers & writers
73 
74  // Configuration readers
75 
77 
78 private:
79  // Note that the copy constructor below is private and not given a body.
80  // Any attempt to call it will return a compiler error.
81  HFRCMTimeInterpolator( const HFRCMTimeInterpolator& old ); // disallow copy constructor
82 
83 };
84 
85 #endif /* HFRCMTIMEINTERPOLATOR_H_ */
Contains the HFRadarCompactModelForecaster class declaration.
Contains the SyncComponent class definition.
BlobReader * expansionCoefficientsReader_
Definition: HFRCMTimeInterpolator.h:71
A DataAccessor that reads values from the Slate Contains a default dataValue that must not be NULL...
Definition: UniversalDataReader.h:26
static HFRCMTimeInterpolator * Instance_
Definition: HFRCMTimeInterpolator.h:76
void run()
The actual "payload" of the component.
Definition: HFRCMTimeInterpolator.cpp:49
Timestamp forecastEnd_
Definition: HFRCMTimeInterpolator.h:67
Definition: BlobReader.h:212
bool haveValidForecast_
Definition: HFRCMTimeInterpolator.h:68
int numModes_
Definition: HFRCMTimeInterpolator.h:64
Specifies the interface details for the HFRCMTimeInterpolator component in the EstimationModule.
Definition: HFRCMTimeInterpolator.h:37
bool lookupExpansionCoefficients(Timestamp ts, Mtx &ec)
Look up the expansion coefficients at the specified time.
Definition: HFRCMTimeInterpolator.cpp:83
Definition: Mtx.h:24
int verbosity_
Definition: HFRCMTimeInterpolator.h:60
BlobReader * forecastTimesReader_
Definition: HFRCMTimeInterpolator.h:72
Module is the abstract base class for a collection of Component objects that can be contained in a lo...
Definition: Module.h:45
Definition: ConfigReader.h:13
HFRCMTimeInterpolator(const Module *module)
Definition: HFRCMTimeInterpolator.cpp:23
Timestamp forecastStart_
Definition: HFRCMTimeInterpolator.h:66
void initialize(void)
Initialize function.
Definition: HFRCMTimeInterpolator.cpp:42
int numTimes_
Definition: HFRCMTimeInterpolator.h:65
virtual ~HFRCMTimeInterpolator()
Definition: HFRCMTimeInterpolator.cpp:39
double forecastEpochSeconds_[HFRadarCompactModelForecasterIF::TOTAL_HOURS]
Definition: HFRCMTimeInterpolator.h:63
static HFRCMTimeInterpolator * Instance()
Return the singleton.
Definition: HFRCMTimeInterpolator.h:50
Abstract Base class for components that generate other estimates.
Definition: SyncComponent.h:206
Represents absolute times.
Definition: Timestamp.h:31
Mtx expansionCoefficients_
Definition: HFRCMTimeInterpolator.h:61