OverSim
LoginCache.h
Go to the documentation of this file.
1 
2 #ifndef LOGINCACHE_H
3 #define LOGINCACHE_H
4 
5 #include <omnetpp.h>
6 #include <NodeHandle.h>
7 #include <Vector2D.h>
9 
10 class lcEntry {
11  public:
12  lcEntry() {}
13  lcEntry(Vector2D p, simtime_t t) : pos(p), time(t) {}
15  simtime_t time;
16 };
17 
18 class LoginCache : public cSimpleModule
19 {
20  public:
21  void initialize();
22  void finish();
24  void registerPos( NodeHandle node, Vector2D pos );
25 
26  private:
27  std::map<NodeHandle,lcEntry> nodelist;
28  double movementSpeed;
29  int bytessend;
30  int bytesrecv;
32 
33 };
34 
35 #endif