OverSim
PastryMessage_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from overlay/pastry/PastryMessage.msg.
3 //
4 
5 #ifndef _PASTRYMESSAGE_M_H_
6 #define _PASTRYMESSAGE_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 <IPvXAddress.h>
18 #include <NodeHandle.h>
19 #include <OverlayKey.h>
20 #include <CommonMessages_m.h>
21 
22 
23 static const int PASTRYTYPE_L = 8;
24 static const int LASTHOPFLAG_L = 8;
25 static const int TIMESTAMP_L = 32;
26 static const int ROWNUMBER_L = 16;
28 
29 #define PASTRY_L(msg) (BASEOVERLAY_L(msg) + PASTRYTYPE_L)
30 
31 #define PASTRYSTATE_L(msg) (PASTRY_L(msg) + TRANSPORTADDRESS_L \
32  + NODEHANDLE_L * \
33  (msg->getRoutingTableArraySize() + msg->getLeafSetArraySize() \
34  + msg->getNeighborhoodSetArraySize()) + 3 * ARRAYSIZE_L + HOPCOUNT_L + \
35  LASTHOPFLAG_L + TIMESTAMP_L)
36 
37 #define PASTRYNEWLEAFS_L(msg) (msg->getLeafsArraySize() * NODEHANDLE_L + \
38  ARRAYSIZE_L)
39 
40 #define PASTRYJOINCALL_L(msg) PASTRY_L(msg)
41 #define PASTRYJOINRESPONSE_L(msg) PASTRY_L(msg)
42 
43 #define PASTRYREQUESTSTATECALL_L(msg) PASTRY_L(msg)
44 #define PASTRYREQUESTSTATERESPONSE_L(msg) PASTRY_L(msg)
45 
46 #define PASTRYREQUESTREPAIRCALL_L(msg) PASTRY_L(msg)
47 #define PASTRYREQUESTREPAIRRESPONSE_L(msg) PASTRY_L(msg)
48 
49 #define PASTRYREQUESTLEAFSETCALL_L(msg) PASTRY_L(msg)
50 #define PASTRYREQUESTLEAFSETRESPONSE_L(msg) PASTRY_L(msg)
51 
52 #define PASTRYREQUESTROUTINGROWCALL_L(msg) (PASTRY_L(msg) + ROWNUMBER_L)
53 #define PASTRYREQUESTROUTINGROWRESPONSE_L(msg) PASTRY_L(msg)
54 // }}
55 
56 
57 
83 };
84 
102 {
103  protected:
108  NodeHandle *leafSet_var; // array ptr
109  unsigned int leafSet_arraysize;
112  int row_var;
114  simtime_t timestamp_var;
115 
116  private:
117  void copy(const PastryStateMessage& other);
118 
119  protected:
120  // protected and unimplemented operator==(), to prevent accidental usage
121  bool operator==(const PastryStateMessage&);
122 
123  public:
124  PastryStateMessage(const char *name=NULL, int kind=0);
126  virtual ~PastryStateMessage();
128  virtual PastryStateMessage *dup() const {return new PastryStateMessage(*this);}
129  virtual void parsimPack(cCommBuffer *b);
130  virtual void parsimUnpack(cCommBuffer *b);
131 
132  // field getter/setter methods
133  virtual int getPastryStateMsgType() const;
134  virtual void setPastryStateMsgType(int pastryStateMsgType);
135  virtual NodeHandle& getSender();
136  virtual const NodeHandle& getSender() const {return const_cast<PastryStateMessage*>(this)->getSender();}
137  virtual void setSender(const NodeHandle& sender);
138  virtual void setRoutingTableArraySize(unsigned int size);
139  virtual unsigned int getRoutingTableArraySize() const;
140  virtual NodeHandle& getRoutingTable(unsigned int k);
141  virtual const NodeHandle& getRoutingTable(unsigned int k) const {return const_cast<PastryStateMessage*>(this)->getRoutingTable(k);}
142  virtual void setRoutingTable(unsigned int k, const NodeHandle& routingTable);
143  virtual void setLeafSetArraySize(unsigned int size);
144  virtual unsigned int getLeafSetArraySize() const;
145  virtual NodeHandle& getLeafSet(unsigned int k);
146  virtual const NodeHandle& getLeafSet(unsigned int k) const {return const_cast<PastryStateMessage*>(this)->getLeafSet(k);}
147  virtual void setLeafSet(unsigned int k, const NodeHandle& leafSet);
148  virtual void setNeighborhoodSetArraySize(unsigned int size);
149  virtual unsigned int getNeighborhoodSetArraySize() const;
150  virtual NodeHandle& getNeighborhoodSet(unsigned int k);
151  virtual const NodeHandle& getNeighborhoodSet(unsigned int k) const {return const_cast<PastryStateMessage*>(this)->getNeighborhoodSet(k);}
152  virtual void setNeighborhoodSet(unsigned int k, const NodeHandle& neighborhoodSet);
153  virtual int getRow() const;
154  virtual void setRow(int row);
155  virtual bool getLastHop() const;
156  virtual void setLastHop(bool lastHop);
157  virtual simtime_t getTimestamp() const;
158  virtual void setTimestamp(simtime_t timestamp);
159 };
160 
161 inline void doPacking(cCommBuffer *b, PastryStateMessage& obj) {obj.parsimPack(b);}
162 inline void doUnpacking(cCommBuffer *b, PastryStateMessage& obj) {obj.parsimUnpack(b);}
163 
174 class PastryFindNodeExtData : public ::cPacket
175 {
176  protected:
179 
180  private:
181  void copy(const PastryFindNodeExtData& other);
182 
183  protected:
184  // protected and unimplemented operator==(), to prevent accidental usage
185  bool operator==(const PastryFindNodeExtData&);
186 
187  public:
188  PastryFindNodeExtData(const char *name=NULL, int kind=0);
190  virtual ~PastryFindNodeExtData();
192  virtual PastryFindNodeExtData *dup() const {return new PastryFindNodeExtData(*this);}
193  virtual void parsimPack(cCommBuffer *b);
194  virtual void parsimUnpack(cCommBuffer *b);
195 
196  // field getter/setter methods
197  virtual TransportAddress& getSendStateTo();
198  virtual const TransportAddress& getSendStateTo() const {return const_cast<PastryFindNodeExtData*>(this)->getSendStateTo();}
199  virtual void setSendStateTo(const TransportAddress& sendStateTo);
200  virtual int getJoinHopCount() const;
201  virtual void setJoinHopCount(int joinHopCount);
202 };
203 
204 inline void doPacking(cCommBuffer *b, PastryFindNodeExtData& obj) {obj.parsimPack(b);}
205 inline void doUnpacking(cCommBuffer *b, PastryFindNodeExtData& obj) {obj.parsimUnpack(b);}
206 
216 class PastryNewLeafsMessage : public ::cPacket
217 {
218  protected:
219  NodeHandle *leafs_var; // array ptr
220  unsigned int leafs_arraysize;
221 
222  private:
223  void copy(const PastryNewLeafsMessage& other);
224 
225  protected:
226  // protected and unimplemented operator==(), to prevent accidental usage
227  bool operator==(const PastryNewLeafsMessage&);
228 
229  public:
230  PastryNewLeafsMessage(const char *name=NULL, int kind=0);
232  virtual ~PastryNewLeafsMessage();
234  virtual PastryNewLeafsMessage *dup() const {return new PastryNewLeafsMessage(*this);}
235  virtual void parsimPack(cCommBuffer *b);
236  virtual void parsimUnpack(cCommBuffer *b);
237 
238  // field getter/setter methods
239  virtual void setLeafsArraySize(unsigned int size);
240  virtual unsigned int getLeafsArraySize() const;
241  virtual NodeHandle& getLeafs(unsigned int k);
242  virtual const NodeHandle& getLeafs(unsigned int k) const {return const_cast<PastryNewLeafsMessage*>(this)->getLeafs(k);}
243  virtual void setLeafs(unsigned int k, const NodeHandle& leafs);
244 };
245 
246 inline void doPacking(cCommBuffer *b, PastryNewLeafsMessage& obj) {obj.parsimPack(b);}
247 inline void doUnpacking(cCommBuffer *b, PastryNewLeafsMessage& obj) {obj.parsimUnpack(b);}
248 
258 class PastrySendState : public ::cMessage
259 {
260  protected:
262 
263  private:
264  void copy(const PastrySendState& other);
265 
266  protected:
267  // protected and unimplemented operator==(), to prevent accidental usage
268  bool operator==(const PastrySendState&);
269 
270  public:
271  PastrySendState(const char *name=NULL, int kind=0);
272  PastrySendState(const PastrySendState& other);
273  virtual ~PastrySendState();
275  virtual PastrySendState *dup() const {return new PastrySendState(*this);}
276  virtual void parsimPack(cCommBuffer *b);
277  virtual void parsimUnpack(cCommBuffer *b);
278 
279  // field getter/setter methods
280  virtual TransportAddress& getDest();
281  virtual const TransportAddress& getDest() const {return const_cast<PastrySendState*>(this)->getDest();}
282  virtual void setDest(const TransportAddress& dest);
283 };
284 
285 inline void doPacking(cCommBuffer *b, PastrySendState& obj) {obj.parsimPack(b);}
286 inline void doUnpacking(cCommBuffer *b, PastrySendState& obj) {obj.parsimUnpack(b);}
287 
297 {
298  protected:
299 
300  private:
301  void copy(const PastryJoinCall& other);
302 
303  protected:
304  // protected and unimplemented operator==(), to prevent accidental usage
305  bool operator==(const PastryJoinCall&);
306 
307  public:
308  PastryJoinCall(const char *name=NULL, int kind=0);
309  PastryJoinCall(const PastryJoinCall& other);
310  virtual ~PastryJoinCall();
311  PastryJoinCall& operator=(const PastryJoinCall& other);
312  virtual PastryJoinCall *dup() const {return new PastryJoinCall(*this);}
313  virtual void parsimPack(cCommBuffer *b);
314  virtual void parsimUnpack(cCommBuffer *b);
315 
316  // field getter/setter methods
317 };
318 
319 inline void doPacking(cCommBuffer *b, PastryJoinCall& obj) {obj.parsimPack(b);}
320 inline void doUnpacking(cCommBuffer *b, PastryJoinCall& obj) {obj.parsimUnpack(b);}
321 
331 {
332  protected:
333 
334  private:
335  void copy(const PastryJoinResponse& other);
336 
337  protected:
338  // protected and unimplemented operator==(), to prevent accidental usage
339  bool operator==(const PastryJoinResponse&);
340 
341  public:
342  PastryJoinResponse(const char *name=NULL, int kind=0);
344  virtual ~PastryJoinResponse();
346  virtual PastryJoinResponse *dup() const {return new PastryJoinResponse(*this);}
347  virtual void parsimPack(cCommBuffer *b);
348  virtual void parsimUnpack(cCommBuffer *b);
349 
350  // field getter/setter methods
351 };
352 
353 inline void doPacking(cCommBuffer *b, PastryJoinResponse& obj) {obj.parsimPack(b);}
354 inline void doUnpacking(cCommBuffer *b, PastryJoinResponse& obj) {obj.parsimUnpack(b);}
355 
365 {
366  protected:
367 
368  private:
369  void copy(const RequestStateCall& other);
370 
371  protected:
372  // protected and unimplemented operator==(), to prevent accidental usage
373  bool operator==(const RequestStateCall&);
374 
375  public:
376  RequestStateCall(const char *name=NULL, int kind=0);
377  RequestStateCall(const RequestStateCall& other);
378  virtual ~RequestStateCall();
380  virtual RequestStateCall *dup() const {return new RequestStateCall(*this);}
381  virtual void parsimPack(cCommBuffer *b);
382  virtual void parsimUnpack(cCommBuffer *b);
383 
384  // field getter/setter methods
385 };
386 
387 inline void doPacking(cCommBuffer *b, RequestStateCall& obj) {obj.parsimPack(b);}
388 inline void doUnpacking(cCommBuffer *b, RequestStateCall& obj) {obj.parsimUnpack(b);}
389 
399 {
400  protected:
401 
402  private:
403  void copy(const RequestStateResponse& other);
404 
405  protected:
406  // protected and unimplemented operator==(), to prevent accidental usage
407  bool operator==(const RequestStateResponse&);
408 
409  public:
410  RequestStateResponse(const char *name=NULL, int kind=0);
412  virtual ~RequestStateResponse();
414  virtual RequestStateResponse *dup() const {return new RequestStateResponse(*this);}
415  virtual void parsimPack(cCommBuffer *b);
416  virtual void parsimUnpack(cCommBuffer *b);
417 
418  // field getter/setter methods
419 };
420 
421 inline void doPacking(cCommBuffer *b, RequestStateResponse& obj) {obj.parsimPack(b);}
422 inline void doUnpacking(cCommBuffer *b, RequestStateResponse& obj) {obj.parsimUnpack(b);}
423 
433 {
434  protected:
435 
436  private:
437  void copy(const RequestRepairCall& other);
438 
439  protected:
440  // protected and unimplemented operator==(), to prevent accidental usage
441  bool operator==(const RequestRepairCall&);
442 
443  public:
444  RequestRepairCall(const char *name=NULL, int kind=0);
445  RequestRepairCall(const RequestRepairCall& other);
446  virtual ~RequestRepairCall();
448  virtual RequestRepairCall *dup() const {return new RequestRepairCall(*this);}
449  virtual void parsimPack(cCommBuffer *b);
450  virtual void parsimUnpack(cCommBuffer *b);
451 
452  // field getter/setter methods
453 };
454 
455 inline void doPacking(cCommBuffer *b, RequestRepairCall& obj) {obj.parsimPack(b);}
456 inline void doUnpacking(cCommBuffer *b, RequestRepairCall& obj) {obj.parsimUnpack(b);}
457 
467 {
468  protected:
469 
470  private:
471  void copy(const RequestRepairResponse& other);
472 
473  protected:
474  // protected and unimplemented operator==(), to prevent accidental usage
475  bool operator==(const RequestRepairResponse&);
476 
477  public:
478  RequestRepairResponse(const char *name=NULL, int kind=0);
480  virtual ~RequestRepairResponse();
482  virtual RequestRepairResponse *dup() const {return new RequestRepairResponse(*this);}
483  virtual void parsimPack(cCommBuffer *b);
484  virtual void parsimUnpack(cCommBuffer *b);
485 
486  // field getter/setter methods
487 };
488 
489 inline void doPacking(cCommBuffer *b, RequestRepairResponse& obj) {obj.parsimPack(b);}
490 inline void doUnpacking(cCommBuffer *b, RequestRepairResponse& obj) {obj.parsimUnpack(b);}
491 
501 {
502  protected:
503 
504  private:
505  void copy(const RequestLeafSetCall& other);
506 
507  protected:
508  // protected and unimplemented operator==(), to prevent accidental usage
509  bool operator==(const RequestLeafSetCall&);
510 
511  public:
512  RequestLeafSetCall(const char *name=NULL, int kind=0);
514  virtual ~RequestLeafSetCall();
516  virtual RequestLeafSetCall *dup() const {return new RequestLeafSetCall(*this);}
517  virtual void parsimPack(cCommBuffer *b);
518  virtual void parsimUnpack(cCommBuffer *b);
519 
520  // field getter/setter methods
521 };
522 
523 inline void doPacking(cCommBuffer *b, RequestLeafSetCall& obj) {obj.parsimPack(b);}
524 inline void doUnpacking(cCommBuffer *b, RequestLeafSetCall& obj) {obj.parsimUnpack(b);}
525 
535 {
536  protected:
537 
538  private:
539  void copy(const RequestLeafSetResponse& other);
540 
541  protected:
542  // protected and unimplemented operator==(), to prevent accidental usage
543  bool operator==(const RequestLeafSetResponse&);
544 
545  public:
546  RequestLeafSetResponse(const char *name=NULL, int kind=0);
548  virtual ~RequestLeafSetResponse();
550  virtual RequestLeafSetResponse *dup() const {return new RequestLeafSetResponse(*this);}
551  virtual void parsimPack(cCommBuffer *b);
552  virtual void parsimUnpack(cCommBuffer *b);
553 
554  // field getter/setter methods
555 };
556 
557 inline void doPacking(cCommBuffer *b, RequestLeafSetResponse& obj) {obj.parsimPack(b);}
558 inline void doUnpacking(cCommBuffer *b, RequestLeafSetResponse& obj) {obj.parsimUnpack(b);}
559 
570 {
571  protected:
572  int row_var;
573 
574  private:
575  void copy(const RequestRoutingRowCall& other);
576 
577  protected:
578  // protected and unimplemented operator==(), to prevent accidental usage
579  bool operator==(const RequestRoutingRowCall&);
580 
581  public:
582  RequestRoutingRowCall(const char *name=NULL, int kind=0);
584  virtual ~RequestRoutingRowCall();
586  virtual RequestRoutingRowCall *dup() const {return new RequestRoutingRowCall(*this);}
587  virtual void parsimPack(cCommBuffer *b);
588  virtual void parsimUnpack(cCommBuffer *b);
589 
590  // field getter/setter methods
591  virtual int getRow() const;
592  virtual void setRow(int row);
593 };
594 
595 inline void doPacking(cCommBuffer *b, RequestRoutingRowCall& obj) {obj.parsimPack(b);}
596 inline void doUnpacking(cCommBuffer *b, RequestRoutingRowCall& obj) {obj.parsimUnpack(b);}
597 
607 {
608  protected:
609 
610  private:
611  void copy(const RequestRoutingRowResponse& other);
612 
613  protected:
614  // protected and unimplemented operator==(), to prevent accidental usage
616 
617  public:
618  RequestRoutingRowResponse(const char *name=NULL, int kind=0);
620  virtual ~RequestRoutingRowResponse();
622  virtual RequestRoutingRowResponse *dup() const {return new RequestRoutingRowResponse(*this);}
623  virtual void parsimPack(cCommBuffer *b);
624  virtual void parsimUnpack(cCommBuffer *b);
625 
626  // field getter/setter methods
627 };
628 
629 inline void doPacking(cCommBuffer *b, RequestRoutingRowResponse& obj) {obj.parsimPack(b);}
630 inline void doUnpacking(cCommBuffer *b, RequestRoutingRowResponse& obj) {obj.parsimUnpack(b);}
631 
632 
633 #endif // _PASTRYMESSAGE_M_H_