FNSS ns-3 adapter
ns-3 adapter for the Fast Network Simulation Setup (FNSS) toolchain
 All Classes Files 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:13
Definition: event.h:18
Event(const Quantity &time=Quantity("0sec", Units::Time))
Definition: event.cpp:5
Quantity getTime() const
Definition: event.cpp:9
Definition: property-container.h:15
Definition: quantity.h:16