LRAUV  revA
CycleStarter.h
Go to the documentation of this file.
1 
9 #ifndef CYCLESTARTER_H_
10 #define CYCLESTARTER_H_
11 
13 
14 class EventEntry;
15 
23 {
24 public:
25  CycleStarter();
26 
27  virtual ~CycleStarter();
28 
29  virtual void run();
30 
31  // static EventEntry const* GetCycleStartEntry();
32 
33  static const Timestamp& GetCycleStartTime()
34  {
35  return CycleStartTime_;
36  }
37 
38  static int GetCycle()
39  {
40  return Cycle_;
41  }
42 
43 protected:
45  // static EventEntry CycleStartEntry_;
46 
48 
49  static int Cycle_;
50 
52 
53  //DataWriter* loadAvgWriter_;
54 
55  static const Str NAME;
56  static const DataURI LOAD_AVG;
57 
58 };
59 
60 #endif /*CYCLESTARTER_H_*/
static int GetCycle()
Definition: CycleStarter.h:38
virtual ~CycleStarter()
Definition: CycleStarter.cpp:34
Contains the SyncComponent class definition.
The CycleStarter's only purpose is to send its CycleStartEntry_ to its logger_ at the start of every ...
Definition: CycleStarter.h:22
static const DataURI LOAD_AVG
Definition: CycleStarter.h:56
Abstract Base class for components that run in the start of the computation cycle.
Definition: SyncComponent.h:149
A DataAccessor that writes values to the Slate via its associated DataElement.
Definition: UniversalDataWriter.h:24
UniversalDataWriter * timeWriter_
Definition: CycleStarter.h:51
virtual void run()
The actual "payload" of the component.
Definition: CycleStarter.cpp:37
static const Timestamp & GetCycleStartTime()
Definition: CycleStarter.h:33
Replacement for standard template class string.
Definition: Str.h:12
Code unit that represents an event to be stored in the log file.
Definition: EventEntry.h:53
Definition: ElementURI.h:229
CycleStarter()
Definition: CycleStarter.cpp:26
static int Cycle_
Definition: CycleStarter.h:49
static const Str NAME
Definition: CycleStarter.h:55
Represents absolute times.
Definition: Timestamp.h:31
static Timestamp CycleStartTime_
Event Entry posted at the start of every cycle.
Definition: CycleStarter.h:47