OverSim
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
>
8
#include <
GlobalStatisticsAccess.h
>
9
10
class
lcEntry
{
11
public
:
12
lcEntry
() {}
13
lcEntry
(
Vector2D
p, simtime_t t) :
pos
(p),
time
(t) {}
14
Vector2D
pos
;
15
simtime_t
time
;
16
};
17
18
class
LoginCache
:
public
cSimpleModule
19
{
20
public
:
21
void
initialize
();
22
void
finish
();
23
NodeHandle
getLoginNode
(
Vector2D
pos );
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
;
31
GlobalStatistics
*
globalStatistics
;
32
33
};
34
35
#endif
src
overlay
quon
LoginCache.h
Generated on Fri Dec 7 2012 13:37:52 for OverSim by
1.8.1.2