GCBM
cbmsequencer.h
Go to the documentation of this file.
1 #ifndef MOJA_MODULES_CBM_CBMSEQUENCER_H_
2 #define MOJA_MODULES_CBM_CBMSEQUENCER_H_
3 
4 #include "moja/modules/cbm/_modules.cbm_exports.h"
5 #include "moja/datetime.h"
6 #include "moja/flint/itiming.h"
7 #include "moja/flint/sequencermodulebase.h"
8 #include "moja/flint/ilandunitcontroller.h"
9 #include "moja/notificationcenter.h"
10 
11 #include <string>
12 
13 namespace moja {
14 namespace modules {
15 namespace cbm {
16 
17  class CBM_API CBMSequencer : public flint::SequencerModuleBase {
18  public:
20  virtual ~CBMSequencer() {};
21 
22  void configure(flint::ITiming& timing) override {
23  _startDate = timing.startDate();
24  _endDate = timing.endDate();
25  timing.setStepLengthInYears(1);
26  };
27 
28  bool Run(NotificationCenter& _notificationCenter,
29  flint::ILandUnitController& luc) override;
30 
31  private:
32  DateTime _startDate;
33  DateTime _endDate;
34  };
35 
36 }}} // namespace moja::Modules::CBM
37 #endif // MOJA_MODULES_CBM_CBMSEQUENCER_H_
moja::modules::cbm::CBMSequencer
Definition: cbmsequencer.h:17
moja::modules::cbm
Definition: ageclasshelper.cpp:12
moja::modules::cbm::CBMSequencer::configure
void configure(flint::ITiming &timing) override
Definition: cbmsequencer.h:22
moja::modules::cbm::CBMSequencer::_startDate
DateTime _startDate
Definition: cbmsequencer.h:32
moja::modules::cbm::CBMSequencer::CBMSequencer
CBMSequencer()
Definition: cbmsequencer.h:19
moja::modules::cbm::CBMSequencer::_endDate
DateTime _endDate
Definition: cbmsequencer.h:33
moja::modules::cbm::CBMSequencer::~CBMSequencer
virtual ~CBMSequencer()
Definition: cbmsequencer.h:20
moja
Definition: ageclasshelper.cpp:10