OverSim
PubSubMessage_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from overlay/pubsubmmog/PubSubMessage.msg.
3 //
4 
5 #ifndef _PUBSUBMESSAGE_M_H_
6 #define _PUBSUBMESSAGE_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 <CommonMessages_m.h>
18 #include <Vector2D.h>
19 
20 static const int PUBSUB_FLAG_L = 8;
21 static const int PUBSUB_VECTOR_L = 128;
22 static const int PUBSUB_RESS_L = 32;
23 static const int PUBSUB_SUBSPACE_L = 32;
24 static const int PUBSUB_CHILDPOS_L = 16;
25 static const int PUBSUB_TIMESTAMP_L = 32;
26 
27 #define PUBSUB_JOINCALL_L(msg) (BASECALL_L(msg) + PUBSUB_VECTOR_L + PUBSUB_RESS_L)
28 #define PUBSUB_JOINRESPONSE_L(msg) (BASECALL_L(msg) + NODEHANDLE_L)
29 #define PUBSUB_RESPONSIBLENODECALL_L(msg) (BASECALL_L(msg) + PUBSUB_VECTOR_L)
30 #define PUBSUB_RESPONSIBLENODERESPONSE_L(msg) (BASECALL_L(msg) + NODEHANDLE_L)
31 #define PUBSUB_TAKEOVERSUBSPACECALL_L(msg) (BASECALL_L(msg) + PUBSUB_VECTOR_L)
32 #define PUBSUB_TAKEOVERSUBSPACERESPONSE_L(msg) (BASECALL_L(msg))
33 #define PUBSUB_SUBSCRIPTIONCALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L)
34 #define PUBSUB_SUBSCRIPTIONRESPONSE_L(msg) (BASECALL_L(msg) + PUBSUB_FLAG_L)
35 #define PUBSUB_UNSUBSCRIPTION_L(msg) (NODEHANDLE_L + PUBSUB_SUBSPACE_L)
36 #define PUBSUB_HELPCALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L + PUBSUB_FLAG_L)
37 #define PUBSUB_HELPRESPONSE_L(msg) (BASECALL_L(msg) + NODEHANDLE_L)
38 #define PUBSUB_INTERMEDIATECALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L)
39 #define PUBSUB_INTERMEDIATERESPONSE_L(msg) (BASECALL_L(msg))
40 #define PUBSUB_BACKUPCALL_L(msg) (BASECALL_L(msg) + msg->getIntermediatesArraySize()*NODEHANDLE_L + msg->getChildrenArraySize()*(NODEHANDLE_L+PUBSUB_CHILDPOS_L))
41 #define PUBSUB_BACKUPRESPONSE_L(msg) (BASECALL_L(msg))
42 #define PUBSUB_PINGCALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L + PUBSUB_FLAG_L)
43 #define PUBSUB_PINGRESPONSE_L(msg) (BASECALL_L(msg))
44 #define PUBSUB_REPLACEMENT_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L)
45 #define PUBSUB_FAILEDNODE_L(msg) (IPADDR_L + UDPPORT_L)
46 #define PUBSUB_NODELEFT_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L)
47 #define PUBSUB_ADOPTCHILDCALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L + NODEHANDLE_L)
48 #define PUBSUB_ADOPTCHILDRESPONSE_L(msg) (BASECALL_L(msg))
49 #define PUBSUB_RELEASEINTERMEDIATE_L(msg) (PUBSUB_SUBSPACE_L)
50 #define PUBSUB_HELPRELEASE_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L)
51 #define PUBSUB_BACKUPSUBSCRIPTION_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L*3)
52 #define PUBSUB_BACKUPINTERMEDIATE_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L + PUBSUB_CHILDPOS_L)
53 #define PUBSUB_BACKUPUNSUBSCRIBE_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L*2)
54 #define PUBSUB_MOVE_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L + PUBSUB_VECTOR_L + PUBSUB_TIMESTAMP_L)
55 #define PUBSUB_MOVELIST_L(msg) (PUBSUB_SUBSPACE_L + PUBSUB_TIMESTAMP_L + msg->getPlayerArraySize()*(NODEHANDLE_L+PUBSUB_VECTOR_L))
56 // }}
57 
58 
59 
80 };
81 
96 };
97 
114 };
115 
126 class PubSubTimer : public ::cMessage
127 {
128  protected:
129  int type_var;
131 
132  private:
133  void copy(const PubSubTimer& other);
134 
135  protected:
136  // protected and unimplemented operator==(), to prevent accidental usage
137  bool operator==(const PubSubTimer&);
138 
139  public:
140  PubSubTimer(const char *name=NULL, int kind=0);
141  PubSubTimer(const PubSubTimer& other);
142  virtual ~PubSubTimer();
143  PubSubTimer& operator=(const PubSubTimer& other);
144  virtual PubSubTimer *dup() const {return new PubSubTimer(*this);}
145  virtual void parsimPack(cCommBuffer *b);
146  virtual void parsimUnpack(cCommBuffer *b);
147 
148  // field getter/setter methods
149  virtual int getType() const;
150  virtual void setType(int type);
151  virtual int getSubspaceId() const;
152  virtual void setSubspaceId(int subspaceId);
153 };
154 
155 inline void doPacking(cCommBuffer *b, PubSubTimer& obj) {obj.parsimPack(b);}
156 inline void doUnpacking(cCommBuffer *b, PubSubTimer& obj) {obj.parsimUnpack(b);}
157 
169 {
170  protected:
173 
174  private:
175  void copy(const PubSubJoinCall& other);
176 
177  protected:
178  // protected and unimplemented operator==(), to prevent accidental usage
179  bool operator==(const PubSubJoinCall&);
180 
181  public:
182  PubSubJoinCall(const char *name=NULL, int kind=0);
183  PubSubJoinCall(const PubSubJoinCall& other);
184  virtual ~PubSubJoinCall();
185  PubSubJoinCall& operator=(const PubSubJoinCall& other);
186  virtual PubSubJoinCall *dup() const {return new PubSubJoinCall(*this);}
187  virtual void parsimPack(cCommBuffer *b);
188  virtual void parsimUnpack(cCommBuffer *b);
189 
190  // field getter/setter methods
191  virtual Vector2D& getPosition();
192  virtual const Vector2D& getPosition() const {return const_cast<PubSubJoinCall*>(this)->getPosition();}
193  virtual void setPosition(const Vector2D& position);
194  virtual int getRessources() const;
195  virtual void setRessources(int ressources);
196 };
197 
198 inline void doPacking(cCommBuffer *b, PubSubJoinCall& obj) {obj.parsimPack(b);}
199 inline void doUnpacking(cCommBuffer *b, PubSubJoinCall& obj) {obj.parsimUnpack(b);}
200 
212 {
213  protected:
215 
216  private:
217  void copy(const PubSubJoinResponse& other);
218 
219  protected:
220  // protected and unimplemented operator==(), to prevent accidental usage
221  bool operator==(const PubSubJoinResponse&);
222 
223  public:
224  PubSubJoinResponse(const char *name=NULL, int kind=0);
226  virtual ~PubSubJoinResponse();
228  virtual PubSubJoinResponse *dup() const {return new PubSubJoinResponse(*this);}
229  virtual void parsimPack(cCommBuffer *b);
230  virtual void parsimUnpack(cCommBuffer *b);
231 
232  // field getter/setter methods
233  virtual NodeHandle& getResponsibleNode();
234  virtual const NodeHandle& getResponsibleNode() const {return const_cast<PubSubJoinResponse*>(this)->getResponsibleNode();}
235  virtual void setResponsibleNode(const NodeHandle& responsibleNode);
236 };
237 
238 inline void doPacking(cCommBuffer *b, PubSubJoinResponse& obj) {obj.parsimPack(b);}
239 inline void doUnpacking(cCommBuffer *b, PubSubJoinResponse& obj) {obj.parsimUnpack(b);}
240 
251 {
252  protected:
254 
255  private:
256  void copy(const PubSubResponsibleNodeCall& other);
257 
258  protected:
259  // protected and unimplemented operator==(), to prevent accidental usage
261 
262  public:
263  PubSubResponsibleNodeCall(const char *name=NULL, int kind=0);
265  virtual ~PubSubResponsibleNodeCall();
267  virtual PubSubResponsibleNodeCall *dup() const {return new PubSubResponsibleNodeCall(*this);}
268  virtual void parsimPack(cCommBuffer *b);
269  virtual void parsimUnpack(cCommBuffer *b);
270 
271  // field getter/setter methods
272  virtual Vector2D& getSubspacePos();
273  virtual const Vector2D& getSubspacePos() const {return const_cast<PubSubResponsibleNodeCall*>(this)->getSubspacePos();}
274  virtual void setSubspacePos(const Vector2D& subspacePos);
275 };
276 
277 inline void doPacking(cCommBuffer *b, PubSubResponsibleNodeCall& obj) {obj.parsimPack(b);}
278 inline void doUnpacking(cCommBuffer *b, PubSubResponsibleNodeCall& obj) {obj.parsimUnpack(b);}
279 
291 {
292  protected:
295 
296  private:
297  void copy(const PubSubResponsibleNodeResponse& other);
298 
299  protected:
300  // protected and unimplemented operator==(), to prevent accidental usage
302 
303  public:
304  PubSubResponsibleNodeResponse(const char *name=NULL, int kind=0);
309  virtual void parsimPack(cCommBuffer *b);
310  virtual void parsimUnpack(cCommBuffer *b);
311 
312  // field getter/setter methods
313  virtual int getSubspaceId() const;
314  virtual void setSubspaceId(int subspaceId);
315  virtual NodeHandle& getResponsibleNode();
316  virtual const NodeHandle& getResponsibleNode() const {return const_cast<PubSubResponsibleNodeResponse*>(this)->getResponsibleNode();}
317  virtual void setResponsibleNode(const NodeHandle& responsibleNode);
318 };
319 
320 inline void doPacking(cCommBuffer *b, PubSubResponsibleNodeResponse& obj) {obj.parsimPack(b);}
321 inline void doUnpacking(cCommBuffer *b, PubSubResponsibleNodeResponse& obj) {obj.parsimUnpack(b);}
322 
333 {
334  protected:
336 
337  private:
338  void copy(const PubSubTakeOverSubspaceCall& other);
339 
340  protected:
341  // protected and unimplemented operator==(), to prevent accidental usage
343 
344  public:
345  PubSubTakeOverSubspaceCall(const char *name=NULL, int kind=0);
347  virtual ~PubSubTakeOverSubspaceCall();
349  virtual PubSubTakeOverSubspaceCall *dup() const {return new PubSubTakeOverSubspaceCall(*this);}
350  virtual void parsimPack(cCommBuffer *b);
351  virtual void parsimUnpack(cCommBuffer *b);
352 
353  // field getter/setter methods
354  virtual Vector2D& getSubspacePos();
355  virtual const Vector2D& getSubspacePos() const {return const_cast<PubSubTakeOverSubspaceCall*>(this)->getSubspacePos();}
356  virtual void setSubspacePos(const Vector2D& subspacePos);
357 };
358 
359 inline void doPacking(cCommBuffer *b, PubSubTakeOverSubspaceCall& obj) {obj.parsimPack(b);}
360 inline void doUnpacking(cCommBuffer *b, PubSubTakeOverSubspaceCall& obj) {obj.parsimUnpack(b);}
361 
372 {
373  protected:
375 
376  private:
377  void copy(const PubSubTakeOverSubspaceResponse& other);
378 
379  protected:
380  // protected and unimplemented operator==(), to prevent accidental usage
382 
383  public:
384  PubSubTakeOverSubspaceResponse(const char *name=NULL, int kind=0);
389  virtual void parsimPack(cCommBuffer *b);
390  virtual void parsimUnpack(cCommBuffer *b);
391 
392  // field getter/setter methods
393  virtual Vector2D& getSubspacePos();
394  virtual const Vector2D& getSubspacePos() const {return const_cast<PubSubTakeOverSubspaceResponse*>(this)->getSubspacePos();}
395  virtual void setSubspacePos(const Vector2D& subspacePos);
396 };
397 
398 inline void doPacking(cCommBuffer *b, PubSubTakeOverSubspaceResponse& obj) {obj.parsimPack(b);}
399 inline void doUnpacking(cCommBuffer *b, PubSubTakeOverSubspaceResponse& obj) {obj.parsimUnpack(b);}
400 
411 {
412  protected:
414 
415  private:
416  void copy(const PubSubSubscriptionCall& other);
417 
418  protected:
419  // protected and unimplemented operator==(), to prevent accidental usage
420  bool operator==(const PubSubSubscriptionCall&);
421 
422  public:
423  PubSubSubscriptionCall(const char *name=NULL, int kind=0);
425  virtual ~PubSubSubscriptionCall();
427  virtual PubSubSubscriptionCall *dup() const {return new PubSubSubscriptionCall(*this);}
428  virtual void parsimPack(cCommBuffer *b);
429  virtual void parsimUnpack(cCommBuffer *b);
430 
431  // field getter/setter methods
432  virtual int getSubspaceId() const;
433  virtual void setSubspaceId(int subspaceId);
434 };
435 
436 inline void doPacking(cCommBuffer *b, PubSubSubscriptionCall& obj) {obj.parsimPack(b);}
437 inline void doUnpacking(cCommBuffer *b, PubSubSubscriptionCall& obj) {obj.parsimUnpack(b);}
438 
449 {
450  protected:
452 
453  private:
454  void copy(const PubSubSubscriptionResponse& other);
455 
456  protected:
457  // protected and unimplemented operator==(), to prevent accidental usage
459 
460  public:
461  PubSubSubscriptionResponse(const char *name=NULL, int kind=0);
463  virtual ~PubSubSubscriptionResponse();
465  virtual PubSubSubscriptionResponse *dup() const {return new PubSubSubscriptionResponse(*this);}
466  virtual void parsimPack(cCommBuffer *b);
467  virtual void parsimUnpack(cCommBuffer *b);
468 
469  // field getter/setter methods
470  virtual bool getFailed() const;
471  virtual void setFailed(bool failed);
472 };
473 
474 inline void doPacking(cCommBuffer *b, PubSubSubscriptionResponse& obj) {obj.parsimPack(b);}
475 inline void doUnpacking(cCommBuffer *b, PubSubSubscriptionResponse& obj) {obj.parsimUnpack(b);}
476 
488 {
489  protected:
492 
493  private:
494  void copy(const PubSubUnsubscriptionMessage& other);
495 
496  protected:
497  // protected and unimplemented operator==(), to prevent accidental usage
499 
500  public:
501  PubSubUnsubscriptionMessage(const char *name=NULL, int kind=0);
505  virtual PubSubUnsubscriptionMessage *dup() const {return new PubSubUnsubscriptionMessage(*this);}
506  virtual void parsimPack(cCommBuffer *b);
507  virtual void parsimUnpack(cCommBuffer *b);
508 
509  // field getter/setter methods
510  virtual int getSubspaceId() const;
511  virtual void setSubspaceId(int subspaceId);
512  virtual NodeHandle& getSrc();
513  virtual const NodeHandle& getSrc() const {return const_cast<PubSubUnsubscriptionMessage*>(this)->getSrc();}
514  virtual void setSrc(const NodeHandle& src);
515 };
516 
517 inline void doPacking(cCommBuffer *b, PubSubUnsubscriptionMessage& obj) {obj.parsimPack(b);}
518 inline void doUnpacking(cCommBuffer *b, PubSubUnsubscriptionMessage& obj) {obj.parsimUnpack(b);}
519 
531 {
532  protected:
535 
536  private:
537  void copy(const PubSubHelpCall& other);
538 
539  protected:
540  // protected and unimplemented operator==(), to prevent accidental usage
541  bool operator==(const PubSubHelpCall&);
542 
543  public:
544  PubSubHelpCall(const char *name=NULL, int kind=0);
545  PubSubHelpCall(const PubSubHelpCall& other);
546  virtual ~PubSubHelpCall();
547  PubSubHelpCall& operator=(const PubSubHelpCall& other);
548  virtual PubSubHelpCall *dup() const {return new PubSubHelpCall(*this);}
549  virtual void parsimPack(cCommBuffer *b);
550  virtual void parsimUnpack(cCommBuffer *b);
551 
552  // field getter/setter methods
553  virtual int getSubspaceId() const;
554  virtual void setSubspaceId(int subspaceId);
555  virtual int getHelpType() const;
556  virtual void setHelpType(int helpType);
557 };
558 
559 inline void doPacking(cCommBuffer *b, PubSubHelpCall& obj) {obj.parsimPack(b);}
560 inline void doUnpacking(cCommBuffer *b, PubSubHelpCall& obj) {obj.parsimUnpack(b);}
561 
574 {
575  protected:
579 
580  private:
581  void copy(const PubSubHelpResponse& other);
582 
583  protected:
584  // protected and unimplemented operator==(), to prevent accidental usage
585  bool operator==(const PubSubHelpResponse&);
586 
587  public:
588  PubSubHelpResponse(const char *name=NULL, int kind=0);
590  virtual ~PubSubHelpResponse();
592  virtual PubSubHelpResponse *dup() const {return new PubSubHelpResponse(*this);}
593  virtual void parsimPack(cCommBuffer *b);
594  virtual void parsimUnpack(cCommBuffer *b);
595 
596  // field getter/setter methods
597  virtual int getSubspaceId() const;
598  virtual void setSubspaceId(int subspaceId);
599  virtual int getHelpType() const;
600  virtual void setHelpType(int helpType);
601  virtual NodeHandle& getNode();
602  virtual const NodeHandle& getNode() const {return const_cast<PubSubHelpResponse*>(this)->getNode();}
603  virtual void setNode(const NodeHandle& node);
604 };
605 
606 inline void doPacking(cCommBuffer *b, PubSubHelpResponse& obj) {obj.parsimPack(b);}
607 inline void doUnpacking(cCommBuffer *b, PubSubHelpResponse& obj) {obj.parsimUnpack(b);}
608 
619 {
620  protected:
622 
623  private:
624  void copy(const PubSubIntermediateCall& other);
625 
626  protected:
627  // protected and unimplemented operator==(), to prevent accidental usage
628  bool operator==(const PubSubIntermediateCall&);
629 
630  public:
631  PubSubIntermediateCall(const char *name=NULL, int kind=0);
633  virtual ~PubSubIntermediateCall();
635  virtual PubSubIntermediateCall *dup() const {return new PubSubIntermediateCall(*this);}
636  virtual void parsimPack(cCommBuffer *b);
637  virtual void parsimUnpack(cCommBuffer *b);
638 
639  // field getter/setter methods
640  virtual int getSubspaceId() const;
641  virtual void setSubspaceId(int subspaceId);
642 };
643 
644 inline void doPacking(cCommBuffer *b, PubSubIntermediateCall& obj) {obj.parsimPack(b);}
645 inline void doUnpacking(cCommBuffer *b, PubSubIntermediateCall& obj) {obj.parsimUnpack(b);}
646 
657 {
658  protected:
660 
661  private:
662  void copy(const PubSubIntermediateResponse& other);
663 
664  protected:
665  // protected and unimplemented operator==(), to prevent accidental usage
667 
668  public:
669  PubSubIntermediateResponse(const char *name=NULL, int kind=0);
671  virtual ~PubSubIntermediateResponse();
673  virtual PubSubIntermediateResponse *dup() const {return new PubSubIntermediateResponse(*this);}
674  virtual void parsimPack(cCommBuffer *b);
675  virtual void parsimUnpack(cCommBuffer *b);
676 
677  // field getter/setter methods
678  virtual int getSubspaceId() const;
679  virtual void setSubspaceId(int subspaceId);
680 };
681 
682 inline void doPacking(cCommBuffer *b, PubSubIntermediateResponse& obj) {obj.parsimPack(b);}
683 inline void doUnpacking(cCommBuffer *b, PubSubIntermediateResponse& obj) {obj.parsimUnpack(b);}
684 
698 {
699  protected:
703  NodeHandle *children_var; // array ptr
704  unsigned int children_arraysize;
705  int *childrenPos_var; // array ptr
706  unsigned int childrenPos_arraysize;
707 
708  private:
709  void copy(const PubSubBackupCall& other);
710 
711  protected:
712  // protected and unimplemented operator==(), to prevent accidental usage
713  bool operator==(const PubSubBackupCall&);
714 
715  public:
716  PubSubBackupCall(const char *name=NULL, int kind=0);
717  PubSubBackupCall(const PubSubBackupCall& other);
718  virtual ~PubSubBackupCall();
720  virtual PubSubBackupCall *dup() const {return new PubSubBackupCall(*this);}
721  virtual void parsimPack(cCommBuffer *b);
722  virtual void parsimUnpack(cCommBuffer *b);
723 
724  // field getter/setter methods
725  virtual int getSubspaceId() const;
726  virtual void setSubspaceId(int subspaceId);
727  virtual void setIntermediatesArraySize(unsigned int size);
728  virtual unsigned int getIntermediatesArraySize() const;
729  virtual NodeHandle& getIntermediates(unsigned int k);
730  virtual const NodeHandle& getIntermediates(unsigned int k) const {return const_cast<PubSubBackupCall*>(this)->getIntermediates(k);}
731  virtual void setIntermediates(unsigned int k, const NodeHandle& intermediates);
732  virtual void setChildrenArraySize(unsigned int size);
733  virtual unsigned int getChildrenArraySize() const;
734  virtual NodeHandle& getChildren(unsigned int k);
735  virtual const NodeHandle& getChildren(unsigned int k) const {return const_cast<PubSubBackupCall*>(this)->getChildren(k);}
736  virtual void setChildren(unsigned int k, const NodeHandle& children);
737  virtual void setChildrenPosArraySize(unsigned int size);
738  virtual unsigned int getChildrenPosArraySize() const;
739  virtual int getChildrenPos(unsigned int k) const;
740  virtual void setChildrenPos(unsigned int k, int childrenPos);
741 };
742 
743 inline void doPacking(cCommBuffer *b, PubSubBackupCall& obj) {obj.parsimPack(b);}
744 inline void doUnpacking(cCommBuffer *b, PubSubBackupCall& obj) {obj.parsimUnpack(b);}
745 
756 {
757  protected:
759 
760  private:
761  void copy(const PubSubBackupResponse& other);
762 
763  protected:
764  // protected and unimplemented operator==(), to prevent accidental usage
765  bool operator==(const PubSubBackupResponse&);
766 
767  public:
768  PubSubBackupResponse(const char *name=NULL, int kind=0);
770  virtual ~PubSubBackupResponse();
772  virtual PubSubBackupResponse *dup() const {return new PubSubBackupResponse(*this);}
773  virtual void parsimPack(cCommBuffer *b);
774  virtual void parsimUnpack(cCommBuffer *b);
775 
776  // field getter/setter methods
777  virtual int getSubspaceId() const;
778  virtual void setSubspaceId(int subspaceId);
779 };
780 
781 inline void doPacking(cCommBuffer *b, PubSubBackupResponse& obj) {obj.parsimPack(b);}
782 inline void doUnpacking(cCommBuffer *b, PubSubBackupResponse& obj) {obj.parsimUnpack(b);}
783 
795 {
796  protected:
799 
800  private:
801  void copy(const PubSubPingCall& other);
802 
803  protected:
804  // protected and unimplemented operator==(), to prevent accidental usage
805  bool operator==(const PubSubPingCall&);
806 
807  public:
808  PubSubPingCall(const char *name=NULL, int kind=0);
809  PubSubPingCall(const PubSubPingCall& other);
810  virtual ~PubSubPingCall();
811  PubSubPingCall& operator=(const PubSubPingCall& other);
812  virtual PubSubPingCall *dup() const {return new PubSubPingCall(*this);}
813  virtual void parsimPack(cCommBuffer *b);
814  virtual void parsimUnpack(cCommBuffer *b);
815 
816  // field getter/setter methods
817  virtual int getSubspaceId() const;
818  virtual void setSubspaceId(int subspaceId);
819  virtual int getPingType() const;
820  virtual void setPingType(int pingType);
821 };
822 
823 inline void doPacking(cCommBuffer *b, PubSubPingCall& obj) {obj.parsimPack(b);}
824 inline void doUnpacking(cCommBuffer *b, PubSubPingCall& obj) {obj.parsimUnpack(b);}
825 
836 {
837  protected:
839 
840  private:
841  void copy(const PubSubPingResponse& other);
842 
843  protected:
844  // protected and unimplemented operator==(), to prevent accidental usage
845  bool operator==(const PubSubPingResponse&);
846 
847  public:
848  PubSubPingResponse(const char *name=NULL, int kind=0);
850  virtual ~PubSubPingResponse();
852  virtual PubSubPingResponse *dup() const {return new PubSubPingResponse(*this);}
853  virtual void parsimPack(cCommBuffer *b);
854  virtual void parsimUnpack(cCommBuffer *b);
855 
856  // field getter/setter methods
857  virtual int getSubspaceId() const;
858  virtual void setSubspaceId(int subspaceId);
859 };
860 
861 inline void doPacking(cCommBuffer *b, PubSubPingResponse& obj) {obj.parsimPack(b);}
862 inline void doUnpacking(cCommBuffer *b, PubSubPingResponse& obj) {obj.parsimUnpack(b);}
863 
875 {
876  protected:
879 
880  private:
881  void copy(const PubSubReplacementMessage& other);
882 
883  protected:
884  // protected and unimplemented operator==(), to prevent accidental usage
886 
887  public:
888  PubSubReplacementMessage(const char *name=NULL, int kind=0);
890  virtual ~PubSubReplacementMessage();
892  virtual PubSubReplacementMessage *dup() const {return new PubSubReplacementMessage(*this);}
893  virtual void parsimPack(cCommBuffer *b);
894  virtual void parsimUnpack(cCommBuffer *b);
895 
896  // field getter/setter methods
897  virtual int getSubspaceId() const;
898  virtual void setSubspaceId(int subspaceId);
900  virtual const NodeHandle& getNewResponsibleNode() const {return const_cast<PubSubReplacementMessage*>(this)->getNewResponsibleNode();}
901  virtual void setNewResponsibleNode(const NodeHandle& newResponsibleNode);
902 };
903 
904 inline void doPacking(cCommBuffer *b, PubSubReplacementMessage& obj) {obj.parsimPack(b);}
905 inline void doUnpacking(cCommBuffer *b, PubSubReplacementMessage& obj) {obj.parsimUnpack(b);}
906 
917 {
918  protected:
920 
921  private:
922  void copy(const PubSubFailedNodeMessage& other);
923 
924  protected:
925  // protected and unimplemented operator==(), to prevent accidental usage
926  bool operator==(const PubSubFailedNodeMessage&);
927 
928  public:
929  PubSubFailedNodeMessage(const char *name=NULL, int kind=0);
931  virtual ~PubSubFailedNodeMessage();
933  virtual PubSubFailedNodeMessage *dup() const {return new PubSubFailedNodeMessage(*this);}
934  virtual void parsimPack(cCommBuffer *b);
935  virtual void parsimUnpack(cCommBuffer *b);
936 
937  // field getter/setter methods
938  virtual TransportAddress& getFailedNode();
939  virtual const TransportAddress& getFailedNode() const {return const_cast<PubSubFailedNodeMessage*>(this)->getFailedNode();}
940  virtual void setFailedNode(const TransportAddress& failedNode);
941 };
942 
943 inline void doPacking(cCommBuffer *b, PubSubFailedNodeMessage& obj) {obj.parsimPack(b);}
944 inline void doUnpacking(cCommBuffer *b, PubSubFailedNodeMessage& obj) {obj.parsimUnpack(b);}
945 
957 {
958  protected:
961 
962  private:
963  void copy(const PubSubNodeLeftMessage& other);
964 
965  protected:
966  // protected and unimplemented operator==(), to prevent accidental usage
967  bool operator==(const PubSubNodeLeftMessage&);
968 
969  public:
970  PubSubNodeLeftMessage(const char *name=NULL, int kind=0);
972  virtual ~PubSubNodeLeftMessage();
974  virtual PubSubNodeLeftMessage *dup() const {return new PubSubNodeLeftMessage(*this);}
975  virtual void parsimPack(cCommBuffer *b);
976  virtual void parsimUnpack(cCommBuffer *b);
977 
978  // field getter/setter methods
979  virtual int getSubspaceId() const;
980  virtual void setSubspaceId(int subspaceId);
981  virtual NodeHandle& getNode();
982  virtual const NodeHandle& getNode() const {return const_cast<PubSubNodeLeftMessage*>(this)->getNode();}
983  virtual void setNode(const NodeHandle& node);
984 };
985 
986 inline void doPacking(cCommBuffer *b, PubSubNodeLeftMessage& obj) {obj.parsimPack(b);}
987 inline void doUnpacking(cCommBuffer *b, PubSubNodeLeftMessage& obj) {obj.parsimUnpack(b);}
988 
1000 {
1001  protected:
1004 
1005  private:
1006  void copy(const PubSubAdoptChildCall& other);
1007 
1008  protected:
1009  // protected and unimplemented operator==(), to prevent accidental usage
1010  bool operator==(const PubSubAdoptChildCall&);
1011 
1012  public:
1013  PubSubAdoptChildCall(const char *name=NULL, int kind=0);
1015  virtual ~PubSubAdoptChildCall();
1017  virtual PubSubAdoptChildCall *dup() const {return new PubSubAdoptChildCall(*this);}
1018  virtual void parsimPack(cCommBuffer *b);
1019  virtual void parsimUnpack(cCommBuffer *b);
1020 
1021  // field getter/setter methods
1022  virtual int getSubspaceId() const;
1023  virtual void setSubspaceId(int subspaceId);
1024  virtual NodeHandle& getChild();
1025  virtual const NodeHandle& getChild() const {return const_cast<PubSubAdoptChildCall*>(this)->getChild();}
1026  virtual void setChild(const NodeHandle& child);
1027 };
1028 
1029 inline void doPacking(cCommBuffer *b, PubSubAdoptChildCall& obj) {obj.parsimPack(b);}
1030 inline void doUnpacking(cCommBuffer *b, PubSubAdoptChildCall& obj) {obj.parsimUnpack(b);}
1031 
1043 {
1044  protected:
1047 
1048  private:
1049  void copy(const PubSubAdoptChildResponse& other);
1050 
1051  protected:
1052  // protected and unimplemented operator==(), to prevent accidental usage
1053  bool operator==(const PubSubAdoptChildResponse&);
1054 
1055  public:
1056  PubSubAdoptChildResponse(const char *name=NULL, int kind=0);
1058  virtual ~PubSubAdoptChildResponse();
1060  virtual PubSubAdoptChildResponse *dup() const {return new PubSubAdoptChildResponse(*this);}
1061  virtual void parsimPack(cCommBuffer *b);
1062  virtual void parsimUnpack(cCommBuffer *b);
1063 
1064  // field getter/setter methods
1065  virtual int getSubspaceId() const;
1066  virtual void setSubspaceId(int subspaceId);
1067  virtual NodeHandle& getChild();
1068  virtual const NodeHandle& getChild() const {return const_cast<PubSubAdoptChildResponse*>(this)->getChild();}
1069  virtual void setChild(const NodeHandle& child);
1070 };
1071 
1072 inline void doPacking(cCommBuffer *b, PubSubAdoptChildResponse& obj) {obj.parsimPack(b);}
1073 inline void doUnpacking(cCommBuffer *b, PubSubAdoptChildResponse& obj) {obj.parsimUnpack(b);}
1074 
1085 {
1086  protected:
1088 
1089  private:
1090  void copy(const PubSubReleaseIntermediateMessage& other);
1091 
1092  protected:
1093  // protected and unimplemented operator==(), to prevent accidental usage
1095 
1096  public:
1097  PubSubReleaseIntermediateMessage(const char *name=NULL, int kind=0);
1102  virtual void parsimPack(cCommBuffer *b);
1103  virtual void parsimUnpack(cCommBuffer *b);
1104 
1105  // field getter/setter methods
1106  virtual int getSubspaceId() const;
1107  virtual void setSubspaceId(int subspaceId);
1108 };
1109 
1110 inline void doPacking(cCommBuffer *b, PubSubReleaseIntermediateMessage& obj) {obj.parsimPack(b);}
1111 inline void doUnpacking(cCommBuffer *b, PubSubReleaseIntermediateMessage& obj) {obj.parsimUnpack(b);}
1112 
1124 {
1125  protected:
1128 
1129  private:
1130  void copy(const PubSubHelpReleaseMessage& other);
1131 
1132  protected:
1133  // protected and unimplemented operator==(), to prevent accidental usage
1134  bool operator==(const PubSubHelpReleaseMessage&);
1135 
1136  public:
1137  PubSubHelpReleaseMessage(const char *name=NULL, int kind=0);
1139  virtual ~PubSubHelpReleaseMessage();
1141  virtual PubSubHelpReleaseMessage *dup() const {return new PubSubHelpReleaseMessage(*this);}
1142  virtual void parsimPack(cCommBuffer *b);
1143  virtual void parsimUnpack(cCommBuffer *b);
1144 
1145  // field getter/setter methods
1146  virtual int getSubspaceId() const;
1147  virtual void setSubspaceId(int subspaceId);
1148  virtual NodeHandle& getNode();
1149  virtual const NodeHandle& getNode() const {return const_cast<PubSubHelpReleaseMessage*>(this)->getNode();}
1150  virtual void setNode(const NodeHandle& node);
1151 };
1152 
1153 inline void doPacking(cCommBuffer *b, PubSubHelpReleaseMessage& obj) {obj.parsimPack(b);}
1154 inline void doUnpacking(cCommBuffer *b, PubSubHelpReleaseMessage& obj) {obj.parsimUnpack(b);}
1155 
1169 {
1170  protected:
1175 
1176  private:
1177  void copy(const PubSubBackupSubscriptionMessage& other);
1178 
1179  protected:
1180  // protected and unimplemented operator==(), to prevent accidental usage
1182 
1183  public:
1184  PubSubBackupSubscriptionMessage(const char *name=NULL, int kind=0);
1189  virtual void parsimPack(cCommBuffer *b);
1190  virtual void parsimUnpack(cCommBuffer *b);
1191 
1192  // field getter/setter methods
1193  virtual int getSubspaceId() const;
1194  virtual void setSubspaceId(int subspaceId);
1195  virtual NodeHandle& getChild();
1196  virtual const NodeHandle& getChild() const {return const_cast<PubSubBackupSubscriptionMessage*>(this)->getChild();}
1197  virtual void setChild(const NodeHandle& child);
1198  virtual NodeHandle& getParent();
1199  virtual const NodeHandle& getParent() const {return const_cast<PubSubBackupSubscriptionMessage*>(this)->getParent();}
1200  virtual void setParent(const NodeHandle& parent);
1201  virtual NodeHandle& getOldParent();
1202  virtual const NodeHandle& getOldParent() const {return const_cast<PubSubBackupSubscriptionMessage*>(this)->getOldParent();}
1203  virtual void setOldParent(const NodeHandle& oldParent);
1204 };
1205 
1206 inline void doPacking(cCommBuffer *b, PubSubBackupSubscriptionMessage& obj) {obj.parsimPack(b);}
1207 inline void doUnpacking(cCommBuffer *b, PubSubBackupSubscriptionMessage& obj) {obj.parsimUnpack(b);}
1208 
1221 {
1222  protected:
1225  int pos_var;
1226 
1227  private:
1228  void copy(const PubSubBackupIntermediateMessage& other);
1229 
1230  protected:
1231  // protected and unimplemented operator==(), to prevent accidental usage
1233 
1234  public:
1235  PubSubBackupIntermediateMessage(const char *name=NULL, int kind=0);
1240  virtual void parsimPack(cCommBuffer *b);
1241  virtual void parsimUnpack(cCommBuffer *b);
1242 
1243  // field getter/setter methods
1244  virtual int getSubspaceId() const;
1245  virtual void setSubspaceId(int subspaceId);
1246  virtual NodeHandle& getNode();
1247  virtual const NodeHandle& getNode() const {return const_cast<PubSubBackupIntermediateMessage*>(this)->getNode();}
1248  virtual void setNode(const NodeHandle& node);
1249  virtual int getPos() const;
1250  virtual void setPos(int pos);
1251 };
1252 
1253 inline void doPacking(cCommBuffer *b, PubSubBackupIntermediateMessage& obj) {obj.parsimPack(b);}
1254 inline void doUnpacking(cCommBuffer *b, PubSubBackupIntermediateMessage& obj) {obj.parsimUnpack(b);}
1255 
1268 {
1269  protected:
1273 
1274  private:
1275  void copy(const PubSubBackupUnsubscribeMessage& other);
1276 
1277  protected:
1278  // protected and unimplemented operator==(), to prevent accidental usage
1280 
1281  public:
1282  PubSubBackupUnsubscribeMessage(const char *name=NULL, int kind=0);
1287  virtual void parsimPack(cCommBuffer *b);
1288  virtual void parsimUnpack(cCommBuffer *b);
1289 
1290  // field getter/setter methods
1291  virtual int getSubspaceId() const;
1292  virtual void setSubspaceId(int subspaceId);
1293  virtual NodeHandle& getChild();
1294  virtual const NodeHandle& getChild() const {return const_cast<PubSubBackupUnsubscribeMessage*>(this)->getChild();}
1295  virtual void setChild(const NodeHandle& child);
1296  virtual NodeHandle& getIntermediate();
1297  virtual const NodeHandle& getIntermediate() const {return const_cast<PubSubBackupUnsubscribeMessage*>(this)->getIntermediate();}
1298  virtual void setIntermediate(const NodeHandle& intermediate);
1299 };
1300 
1301 inline void doPacking(cCommBuffer *b, PubSubBackupUnsubscribeMessage& obj) {obj.parsimPack(b);}
1302 inline void doUnpacking(cCommBuffer *b, PubSubBackupUnsubscribeMessage& obj) {obj.parsimUnpack(b);}
1303 
1317 {
1318  protected:
1320  simtime_t timestamp_var;
1323 
1324  private:
1325  void copy(const PubSubMoveMessage& other);
1326 
1327  protected:
1328  // protected and unimplemented operator==(), to prevent accidental usage
1329  bool operator==(const PubSubMoveMessage&);
1330 
1331  public:
1332  PubSubMoveMessage(const char *name=NULL, int kind=0);
1333  PubSubMoveMessage(const PubSubMoveMessage& other);
1334  virtual ~PubSubMoveMessage();
1336  virtual PubSubMoveMessage *dup() const {return new PubSubMoveMessage(*this);}
1337  virtual void parsimPack(cCommBuffer *b);
1338  virtual void parsimUnpack(cCommBuffer *b);
1339 
1340  // field getter/setter methods
1341  virtual int getSubspaceId() const;
1342  virtual void setSubspaceId(int subspaceId);
1343  virtual simtime_t getTimestamp() const;
1344  virtual void setTimestamp(simtime_t timestamp);
1345  virtual NodeHandle& getPlayer();
1346  virtual const NodeHandle& getPlayer() const {return const_cast<PubSubMoveMessage*>(this)->getPlayer();}
1347  virtual void setPlayer(const NodeHandle& player);
1348  virtual Vector2D& getPosition();
1349  virtual const Vector2D& getPosition() const {return const_cast<PubSubMoveMessage*>(this)->getPosition();}
1350  virtual void setPosition(const Vector2D& position);
1351 };
1352 
1353 inline void doPacking(cCommBuffer *b, PubSubMoveMessage& obj) {obj.parsimPack(b);}
1354 inline void doUnpacking(cCommBuffer *b, PubSubMoveMessage& obj) {obj.parsimUnpack(b);}
1355 
1370 {
1371  protected:
1373  simtime_t timestamp_var;
1374  NodeHandle *player_var; // array ptr
1375  unsigned int player_arraysize;
1376  Vector2D *position_var; // array ptr
1377  unsigned int position_arraysize;
1378  simtime_t *positionAge_var; // array ptr
1380 
1381  private:
1382  void copy(const PubSubMoveListMessage& other);
1383 
1384  protected:
1385  // protected and unimplemented operator==(), to prevent accidental usage
1386  bool operator==(const PubSubMoveListMessage&);
1387 
1388  public:
1389  PubSubMoveListMessage(const char *name=NULL, int kind=0);
1391  virtual ~PubSubMoveListMessage();
1393  virtual PubSubMoveListMessage *dup() const {return new PubSubMoveListMessage(*this);}
1394  virtual void parsimPack(cCommBuffer *b);
1395  virtual void parsimUnpack(cCommBuffer *b);
1396 
1397  // field getter/setter methods
1398  virtual int getSubspaceId() const;
1399  virtual void setSubspaceId(int subspaceId);
1400  virtual simtime_t getTimestamp() const;
1401  virtual void setTimestamp(simtime_t timestamp);
1402  virtual void setPlayerArraySize(unsigned int size);
1403  virtual unsigned int getPlayerArraySize() const;
1404  virtual NodeHandle& getPlayer(unsigned int k);
1405  virtual const NodeHandle& getPlayer(unsigned int k) const {return const_cast<PubSubMoveListMessage*>(this)->getPlayer(k);}
1406  virtual void setPlayer(unsigned int k, const NodeHandle& player);
1407  virtual void setPositionArraySize(unsigned int size);
1408  virtual unsigned int getPositionArraySize() const;
1409  virtual Vector2D& getPosition(unsigned int k);
1410  virtual const Vector2D& getPosition(unsigned int k) const {return const_cast<PubSubMoveListMessage*>(this)->getPosition(k);}
1411  virtual void setPosition(unsigned int k, const Vector2D& position);
1412  virtual void setPositionAgeArraySize(unsigned int size);
1413  virtual unsigned int getPositionAgeArraySize() const;
1414  virtual simtime_t getPositionAge(unsigned int k) const;
1415  virtual void setPositionAge(unsigned int k, simtime_t positionAge);
1416 };
1417 
1418 inline void doPacking(cCommBuffer *b, PubSubMoveListMessage& obj) {obj.parsimPack(b);}
1419 inline void doUnpacking(cCommBuffer *b, PubSubMoveListMessage& obj) {obj.parsimUnpack(b);}
1420 
1421 
1422 #endif // _PUBSUBMESSAGE_M_H_