RINASim  October 2016
Documentation of framework for OMNeT++
AEConstantMsgs.cc
Go to the documentation of this file.
1 #include "AEConstantMsgs.h"
2 
3 
4 
5 PingMsg::PingMsg(bool _counted){
6  pingAt = simTime();
7  counted = _counted;
8 }
9 
10 PongMsg::PongMsg(simtime_t _pingAt, bool _counted){
11  pingAt = _pingAt;
12  pongAt = simTime();
13  counted = _counted;
14 }
15 
16 
18 }
19 
20 
21 SignalMsg::SignalMsg(std::string _qos) {
22  qos = _qos;
23  type = 0;
24 }
25 SignalMsg::SignalMsg(std::string _qos, simtime_t _delay) {
26  qos = _qos;
27  delay = _delay;
28  type = 1;
29 }
30 SignalMsg::SignalMsg(std::string _qos, simtime_t _delay, simtime_t _rtt) {
31  qos = _qos;
32  delay = _delay;
33  rtt = _rtt;
34  type = 2;
35 }
SignalMsg(std::string _qos)
PingMsg(bool _counted)
bool counted
PongMsg(simtime_t _pingAt, bool _counted)
simtime_t delay
std::string qos
simtime_t pingAt
simtime_t rtt
simtime_t pongAt
simtime_t pingAt
bool counted