Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __INET_DUPLICATESGENERATOR_H
00020 #define __INET_DUPLICATESGENERATOR_H
00021
00022 #include <omnetpp.h>
00023 #include "INETDefs.h"
00024 #include <vector>
00025
00026
00030 class INET_API DuplicatesGenerator : public cSimpleModule
00031 {
00032 protected:
00033 unsigned int numPackets;
00034 unsigned int numDuplicated;
00035 bool generateFurtherDuplicates;
00036 std::vector<unsigned int> duplicatesVector;
00037
00038 virtual void initialize();
00039 virtual void handleMessage(cMessage *msg);
00040 virtual void parseVector(const char *vector);
00041 virtual void finish();
00042 };
00043
00044 #endif