-
Notifications
You must be signed in to change notification settings - Fork 2
/
ClientMemory.h
45 lines (35 loc) · 1.1 KB
/
ClientMemory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef __QUANTUM_KEY_DISTRIBUTION_CLIENTMEMORY_H_
#define __QUANTUM_KEY_DISTRIBUTION_CLIENTMEMORY_H_
#include <omnetpp.h>
#include "MacTableEntry_m.h"
#include "QuantumKeyEntry_m.h"
using namespace omnetpp;
class ClientMemory : public cSimpleModule
{
private:
cArray quantumTable;
cArray quantumKey;
std::string initialKey;
std::string initialKeyBin;
std::string polarizationStates;
public:
MacTableEntry getMacTable(int index);
void addMacTableEntry(MacTableEntry *macTableEntry);
int getMacTableSize();
QuantumKeyEntry getQuantumKey(int index);
void addQautumKey(QuantumKeyEntry *key);
int getNumberOfKey();
int getPendingTransaction();
std::string getPendingKeyMacAddress();
void setPendingKey(std::string key);
std::string getInitialKey();
void setInitialKey(std::string key);
std::string getPolarizationStates();
void setPolarizationStates(std::string states);
std::string getInitialKeyBin();
void setInitialKeyBin(std::string bin);
protected:
virtual void initialize();
virtual void handleMessage(cMessage *msg);
};
#endif