RINASim  October 2016
Documentation of framework for OMNeT++
AEExtendedPing.h
Go to the documentation of this file.
1 // The MIT License (MIT)
2 //
3 // Copyright (c) 2014-2016 Brno University of Technology, PRISTINE project
4 //
5 // Permission is hereby granted, free of charge, to any person obtaining a copy
6 // of this software and associated documentation files (the "Software"), to deal
7 // in the Software without restriction, including without limitation the rights
8 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 // copies of the Software, and to permit persons to whom the Software is
10 // furnished to do so, subject to the following conditions:
11 //
12 // The above copyright notice and this permission notice shall be included in
13 // all copies or substantial portions of the Software.
14 //
15 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 // THE SOFTWARE.
22 
23 #ifndef __RINA_AEEXTENDEDPING_H_
24 #define __RINA_AEEXTENDEDPING_H_
25 
26 //Standard libraries
27 #include <omnetpp.h>
28 //RINASim libraries
29 #include "AE.h"
30 
31 
32 class AEExtendedPing : public AE
33 {
34  public:
36  virtual ~AEExtendedPing();
37 
38  protected:
39  virtual void initialize();
40  virtual void handleMessage(cMessage *msg);
41 
42  void handleSelfMessage(cMessage* msg);
43 
44  private:
45  std::string myPath;
46 
47  std::string dstApName;
48  std::string dstApInstance;
49  std::string dstAeName;
50  std::string dstAeInstance;
51 
52  simtime_t startAt;
53  simtime_t stopAt;
54  simtime_t connectAt;
55  simtime_t pingAt;
56  int rate;
57  unsigned int size;
58 
60  void preparePing();
63 
64  virtual void processMRead(CDAPMessage* msg);
65  virtual void processMReadR(CDAPMessage* msg);
66 
67 };
68 
69 #endif
70 
std::string myPath
void prepareConnectionRequest()
Definition: AE.h:44
void prepareAllocateRequest()
virtual ~AEExtendedPing()
simtime_t pingAt
virtual void processMReadR(CDAPMessage *msg)
unsigned int size
std::string dstApName
simtime_t connectAt
std::string dstAeName
virtual void handleMessage(cMessage *msg)
void prepareDeallocateRequest()
void handleSelfMessage(cMessage *msg)
virtual void processMRead(CDAPMessage *msg)
std::string dstApInstance
simtime_t startAt
simtime_t stopAt
virtual void initialize()
std::string dstAeInstance