OverSim
Quon_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from overlay/quon/Quon.msg.
3 //
4 
5 #ifndef _QUON_M_H_
6 #define _QUON_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 #include <QuonDefs.h>
19 #include <QuonHelper.h>
20 #include <CommonMessages_m.h>
21 
22 
23 static const int QUONCOMMAND_L = 8;
24 static const int QUONPOSITION_L = 128;
25 static const int QUONAOI_L = 64;
26 static const int QUONENTRYCOUNT_L = 32;
27 static const int QUONFLAG_L = 1;
28 
29 #define QUON_L(msg) (QUONCOMMAND_L + QUONENTRY_L + KEY_L + QUONAOI_L)
30 #define QUONLIST_L(msg) (QUON_L(msg) + QUONENTRYCOUNT_L + msg->getNeighborHandleArraySize() * QUONENTRY_L)
31 #define QUONMOVE_L(msg) (QUONLIST_L(msg) + QUONPOSITION_L + QUONFLAG_L)
32 #define QUONENTRY_L (NODEHANDLE_L + QUONPOSITION_L)
33 // }}
34 
35 
36 
54  NODE_MOVE = 2,
58 };
59 
69 class QuonSelfMessage : public ::cMessage
70 {
71  protected:
73 
74  private:
75  void copy(const QuonSelfMessage& other);
76 
77  protected:
78  // protected and unimplemented operator==(), to prevent accidental usage
79  bool operator==(const QuonSelfMessage&);
80 
81  public:
82  QuonSelfMessage(const char *name=NULL, int kind=0);
83  QuonSelfMessage(const QuonSelfMessage& other);
84  virtual ~QuonSelfMessage();
86  virtual QuonSelfMessage *dup() const {return new QuonSelfMessage(*this);}
87  virtual void parsimPack(cCommBuffer *b);
88  virtual void parsimUnpack(cCommBuffer *b);
89 
90  // field getter/setter methods
91  virtual OverlayKey& getKey();
92  virtual const OverlayKey& getKey() const {return const_cast<QuonSelfMessage*>(this)->getKey();}
93  virtual void setKey(const OverlayKey& key);
94 };
95 
96 inline void doPacking(cCommBuffer *b, QuonSelfMessage& obj) {obj.parsimPack(b);}
97 inline void doUnpacking(cCommBuffer *b, QuonSelfMessage& obj) {obj.parsimUnpack(b);}
98 
112 {
113  protected:
117  double AOIsize_var;
118 
119  private:
120  void copy(const QuonMessage& other);
121 
122  protected:
123  // protected and unimplemented operator==(), to prevent accidental usage
124  bool operator==(const QuonMessage&);
125 
126  public:
127  QuonMessage(const char *name=NULL, int kind=0);
128  QuonMessage(const QuonMessage& other);
129  virtual ~QuonMessage();
130  QuonMessage& operator=(const QuonMessage& other);
131  virtual QuonMessage *dup() const {return new QuonMessage(*this);}
132  virtual void parsimPack(cCommBuffer *b);
133  virtual void parsimUnpack(cCommBuffer *b);
134 
135  // field getter/setter methods
136  virtual int getCommand() const;
137  virtual void setCommand(int command);
138  virtual NodeHandle& getSender();
139  virtual const NodeHandle& getSender() const {return const_cast<QuonMessage*>(this)->getSender();}
140  virtual void setSender(const NodeHandle& sender);
141  virtual Vector2D& getPosition();
142  virtual const Vector2D& getPosition() const {return const_cast<QuonMessage*>(this)->getPosition();}
143  virtual void setPosition(const Vector2D& position);
144  virtual double getAOIsize() const;
145  virtual void setAOIsize(double AOIsize);
146 };
147 
148 inline void doPacking(cCommBuffer *b, QuonMessage& obj) {obj.parsimPack(b);}
149 inline void doUnpacking(cCommBuffer *b, QuonMessage& obj) {obj.parsimUnpack(b);}
150 
162 {
163  protected:
168 
169  private:
170  void copy(const QuonListMessage& other);
171 
172  protected:
173  // protected and unimplemented operator==(), to prevent accidental usage
174  bool operator==(const QuonListMessage&);
175 
176  public:
177  QuonListMessage(const char *name=NULL, int kind=0);
178  QuonListMessage(const QuonListMessage& other);
179  virtual ~QuonListMessage();
181  virtual QuonListMessage *dup() const {return new QuonListMessage(*this);}
182  virtual void parsimPack(cCommBuffer *b);
183  virtual void parsimUnpack(cCommBuffer *b);
184 
185  // field getter/setter methods
186  virtual void setNeighborHandleArraySize(unsigned int size);
187  virtual unsigned int getNeighborHandleArraySize() const;
188  virtual NodeHandle& getNeighborHandle(unsigned int k);
189  virtual const NodeHandle& getNeighborHandle(unsigned int k) const {return const_cast<QuonListMessage*>(this)->getNeighborHandle(k);}
190  virtual void setNeighborHandle(unsigned int k, const NodeHandle& neighborHandle);
191  virtual void setNeighborPositionArraySize(unsigned int size);
192  virtual unsigned int getNeighborPositionArraySize() const;
193  virtual Vector2D& getNeighborPosition(unsigned int k);
194  virtual const Vector2D& getNeighborPosition(unsigned int k) const {return const_cast<QuonListMessage*>(this)->getNeighborPosition(k);}
195  virtual void setNeighborPosition(unsigned int k, const Vector2D& neighborPosition);
196 };
197 
198 inline void doPacking(cCommBuffer *b, QuonListMessage& obj) {obj.parsimPack(b);}
199 inline void doUnpacking(cCommBuffer *b, QuonListMessage& obj) {obj.parsimUnpack(b);}
200 
212 {
213  protected:
216 
217  private:
218  void copy(const QuonMoveMessage& other);
219 
220  protected:
221  // protected and unimplemented operator==(), to prevent accidental usage
222  bool operator==(const QuonMoveMessage&);
223 
224  public:
225  QuonMoveMessage(const char *name=NULL, int kind=0);
226  QuonMoveMessage(const QuonMoveMessage& other);
227  virtual ~QuonMoveMessage();
229  virtual QuonMoveMessage *dup() const {return new QuonMoveMessage(*this);}
230  virtual void parsimPack(cCommBuffer *b);
231  virtual void parsimUnpack(cCommBuffer *b);
232 
233  // field getter/setter methods
234  virtual Vector2D& getNewPosition();
235  virtual const Vector2D& getNewPosition() const {return const_cast<QuonMoveMessage*>(this)->getNewPosition();}
236  virtual void setNewPosition(const Vector2D& newPosition);
237  virtual bool getIsBinding() const;
238  virtual void setIsBinding(bool isBinding);
239 };
240 
241 inline void doPacking(cCommBuffer *b, QuonMoveMessage& obj) {obj.parsimPack(b);}
242 inline void doUnpacking(cCommBuffer *b, QuonMoveMessage& obj) {obj.parsimUnpack(b);}
243 
253 {
254  protected:
255 
256  private:
257  void copy(const QuonEventMessage& other);
258 
259  protected:
260  // protected and unimplemented operator==(), to prevent accidental usage
261  bool operator==(const QuonEventMessage&);
262 
263  public:
264  QuonEventMessage(const char *name=NULL, int kind=0);
265  QuonEventMessage(const QuonEventMessage& other);
266  virtual ~QuonEventMessage();
268  virtual QuonEventMessage *dup() const {return new QuonEventMessage(*this);}
269  virtual void parsimPack(cCommBuffer *b);
270  virtual void parsimUnpack(cCommBuffer *b);
271 
272  // field getter/setter methods
273 };
274 
275 inline void doPacking(cCommBuffer *b, QuonEventMessage& obj) {obj.parsimPack(b);}
276 inline void doUnpacking(cCommBuffer *b, QuonEventMessage& obj) {obj.parsimUnpack(b);}
277 
278 
279 #endif // _QUON_M_H_