FNSS C++ library
C++ API for the Fast Network Simulation Setup (FNSS) toolchain
 All Classes Functions Typedefs Pages
event.h
1 #ifndef EVENT_H
2 #define EVENT_H
3 
4 #include "property-container.h"
5 #include "quantity.h"
6 #include "units.h"
7 
8 #include <string>
9 
10 namespace fnss {
11 
18 class Event : public PropertyContainer {
19 public:
25  Event(const Quantity &time_ = Quantity("0sec", Units::Time));
26 
32  Quantity getTime() const;
33 
39  void setTime(const Quantity &time_);
40 
41  bool operator>(const Event &other) const;
42  bool operator>=(const Event &other) const;
43  bool operator<(const Event &other) const;
44  bool operator<=(const Event &other) const;
45 
46 private:
47  Quantity time; //The scheduled time of the event.
48 
49 };
50 
51 } //namespace
52 
53 #endif //EVENT_H
void setTime(const Quantity &time_)
Definition: event.cpp:11
Definition: event.h:18
Quantity getTime() const
Definition: event.cpp:7
Event(const Quantity &time_=Quantity("0sec", Units::Time))
Definition: event.cpp:5
Definition: property-container.h:15
Definition: quantity.h:16