OverSim
Churn_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from common/Churn.msg.
3 //
4 
5 #ifndef _CHURN_M_H_
6 #define _CHURN_M_H_
7 
8 #include <omnetpp.h>
9 
10 // opp_msgc version check
11 #define MSGC_VERSION 0x0402
12 #if (MSGC_VERSION!=OMNETPP_VERSION)
13 # error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help.
14 #endif
15 
16 // cplusplus {{
17 #include <NodeHandle.h>
18 // }}
19 
20 
21 
34 class ChurnMessage : public ::cPacket
35 {
36  protected:
38  double lifetime_var;
41 
42  private:
43  void copy(const ChurnMessage& other);
44 
45  protected:
46  // protected and unimplemented operator==(), to prevent accidental usage
47  bool operator==(const ChurnMessage&);
48 
49  public:
50  ChurnMessage(const char *name=NULL, int kind=0);
51  ChurnMessage(const ChurnMessage& other);
52  virtual ~ChurnMessage();
53  ChurnMessage& operator=(const ChurnMessage& other);
54  virtual ChurnMessage *dup() const {return new ChurnMessage(*this);}
55  virtual void parsimPack(cCommBuffer *b);
56  virtual void parsimUnpack(cCommBuffer *b);
57 
58  // field getter/setter methods
59  virtual bool getCreateNode() const;
60  virtual void setCreateNode(bool createNode);
61  virtual double getLifetime() const;
62  virtual void setLifetime(double lifetime);
63  virtual int getContextPos() const;
64  virtual void setContextPos(int contextPos);
65  virtual TransportAddress& getAddr();
66  virtual const TransportAddress& getAddr() const {return const_cast<ChurnMessage*>(this)->getAddr();}
67  virtual void setAddr(const TransportAddress& addr);
68 };
69 
70 inline void doPacking(cCommBuffer *b, ChurnMessage& obj) {obj.parsimPack(b);}
71 inline void doUnpacking(cCommBuffer *b, ChurnMessage& obj) {obj.parsimUnpack(b);}
72 
84 {
85  protected:
88 
89  private:
90  void copy(const ParetoChurnMessage& other);
91 
92  protected:
93  // protected and unimplemented operator==(), to prevent accidental usage
94  bool operator==(const ParetoChurnMessage&);
95 
96  public:
97  ParetoChurnMessage(const char *name=NULL, int kind=0);
99  virtual ~ParetoChurnMessage();
101  virtual ParetoChurnMessage *dup() const {return new ParetoChurnMessage(*this);}
102  virtual void parsimPack(cCommBuffer *b);
103  virtual void parsimUnpack(cCommBuffer *b);
104 
105  // field getter/setter methods
106  virtual double getMeanLifetime() const;
107  virtual void setMeanLifetime(double meanLifetime);
108  virtual double getMeanDeadtime() const;
109  virtual void setMeanDeadtime(double meanDeadtime);
110 };
111 
112 inline void doPacking(cCommBuffer *b, ParetoChurnMessage& obj) {obj.parsimPack(b);}
113 inline void doUnpacking(cCommBuffer *b, ParetoChurnMessage& obj) {obj.parsimUnpack(b);}
114 
115 
116 #endif // _CHURN_M_H_