forked from ahmadrezamontazerolghaem/Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSmartMeter.ned
29 lines (22 loc) · 1.09 KB
/
SmartMeter.ned
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
package smart3p;
//
// Sends energy consumption to collectors
//
simple SmartMeter
{
parameters:
double per = default(0.1);
@signal[stackSize](type="double");
@statistic[stackSize](title="Size of the outbound message stack"; source="stackSize"; record=histogram,stats; interpolationmode=none);
@signal[sessionKeyDecryptionTime](type="double");
@statistic[sessionKeyDecryptionTime](title="Decryption time using std::chrono"; source="sessionKeyDecryptionTime"; record=histogram,stats; interpolationmode=none);
@signal[sessionKeyEncryptionTime](type="double");
@statistic[sessionKeyEncryptionTime](title="Encryption time using std::chrono"; source="sessionKeyEncryptionTime"; record=histogram,stats; interpolationmode=none);
@signal[dataEncryptionTime](type="double");
@statistic[dataEncryptionTime](title="Encryption time using std::chrono"; source="dataEncryptionTime"; record=histogram,stats; interpolationmode=none);
@display("i=block/sink");
volatile double sendInterval @unit(s) = default(exponential(1s));
gates:
inout generatorLine;
inout radio;
}