PubSubMessage_m.h

Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.1 from overlay/pubsubmmog/PubSubMessage.msg.
00003 //
00004 
00005 #ifndef _PUBSUBMESSAGE_M_H_
00006 #define _PUBSUBMESSAGE_M_H_
00007 
00008 #include <omnetpp.h>
00009 
00010 // opp_msgc version check
00011 #define MSGC_VERSION 0x0401
00012 #if (MSGC_VERSION!=OMNETPP_VERSION)
00013 #    error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help.
00014 #endif
00015 
00016 // cplusplus {{
00017 #include <CommonMessages_m.h>
00018 #include <Vector2D.h>
00019 
00020 static const int PUBSUB_FLAG_L = 8;
00021 static const int PUBSUB_VECTOR_L = 128;
00022 static const int PUBSUB_RESS_L = 32;
00023 static const int PUBSUB_SUBSPACE_L = 32;
00024 static const int PUBSUB_CHILDPOS_L = 16;
00025 static const int PUBSUB_TIMESTAMP_L = 32;
00026 
00027 #define PUBSUB_JOINCALL_L(msg) (BASECALL_L(msg) + PUBSUB_VECTOR_L + PUBSUB_RESS_L)
00028 #define PUBSUB_JOINRESPONSE_L(msg) (BASECALL_L(msg) + NODEHANDLE_L)
00029 #define PUBSUB_RESPONSIBLENODECALL_L(msg) (BASECALL_L(msg) + PUBSUB_VECTOR_L)
00030 #define PUBSUB_RESPONSIBLENODERESPONSE_L(msg) (BASECALL_L(msg) + NODEHANDLE_L)
00031 #define PUBSUB_TAKEOVERSUBSPACECALL_L(msg) (BASECALL_L(msg) + PUBSUB_VECTOR_L)
00032 #define PUBSUB_TAKEOVERSUBSPACERESPONSE_L(msg) (BASECALL_L(msg))
00033 #define PUBSUB_SUBSCRIPTIONCALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L)
00034 #define PUBSUB_SUBSCRIPTIONRESPONSE_L(msg) (BASECALL_L(msg) + PUBSUB_FLAG_L)
00035 #define PUBSUB_UNSUBSCRIPTION_L(msg) (NODEHANDLE_L + PUBSUB_SUBSPACE_L)
00036 #define PUBSUB_HELPCALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L + PUBSUB_FLAG_L)
00037 #define PUBSUB_HELPRESPONSE_L(msg) (BASECALL_L(msg) + NODEHANDLE_L)
00038 #define PUBSUB_INTERMEDIATECALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L)
00039 #define PUBSUB_INTERMEDIATERESPONSE_L(msg) (BASECALL_L(msg))
00040 #define PUBSUB_BACKUPCALL_L(msg) (BASECALL_L(msg) + msg->getIntermediatesArraySize()*NODEHANDLE_L + msg->getChildrenArraySize()*(NODEHANDLE_L+PUBSUB_CHILDPOS_L))
00041 #define PUBSUB_BACKUPRESPONSE_L(msg) (BASECALL_L(msg))
00042 #define PUBSUB_PINGCALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L + PUBSUB_FLAG_L)
00043 #define PUBSUB_PINGRESPONSE_L(msg) (BASECALL_L(msg))
00044 #define PUBSUB_REPLACEMENT_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L)
00045 #define PUBSUB_FAILEDNODE_L(msg) (IPADDR_L + UDPPORT_L)
00046 #define PUBSUB_NODELEFT_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L)
00047 #define PUBSUB_ADOPTCHILDCALL_L(msg) (BASECALL_L(msg) + PUBSUB_SUBSPACE_L + NODEHANDLE_L)
00048 #define PUBSUB_ADOPTCHILDRESPONSE_L(msg) (BASECALL_L(msg))
00049 #define PUBSUB_RELEASEINTERMEDIATE_L(msg) (PUBSUB_SUBSPACE_L)
00050 #define PUBSUB_HELPRELEASE_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L)
00051 #define PUBSUB_BACKUPSUBSCRIPTION_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L*3)
00052 #define PUBSUB_BACKUPINTERMEDIATE_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L + PUBSUB_CHILDPOS_L)
00053 #define PUBSUB_BACKUPUNSUBSCRIBE_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L*2)
00054 #define PUBSUB_MOVE_L(msg) (PUBSUB_SUBSPACE_L + NODEHANDLE_L + PUBSUB_VECTOR_L + PUBSUB_TIMESTAMP_L)
00055 #define PUBSUB_MOVELIST_L(msg) (PUBSUB_SUBSPACE_L + PUBSUB_TIMESTAMP_L + msg->getPlayerArraySize()*(NODEHANDLE_L+PUBSUB_VECTOR_L))
00056 // }}
00057 
00058 
00059 
00074 enum PubSubTimerType {
00075     PUBSUB_HEARTBEAT = 0,
00076     PUBSUB_CHILDPING = 1,
00077     PUBSUB_PARENT_TIMEOUT = 2,
00078     PUBSUB_TAKEOVER_GRACE_TIME = 3,
00079     PUBSUB_EVENTDELIVERY = 4
00080 };
00081 
00093 enum PubSubHelpType {
00094     PUBSUB_BACKUP = 0,
00095     PUBSUB_INTERMEDIATE = 1
00096 };
00097 
00110 enum PubSubPingType {
00111     PUBSUB_PING_BACKUP = 0,
00112     PUBSUB_PING_INTERMEDIATE = 1,
00113     PUBSUB_PING_CHILD = 2
00114 };
00115 
00126 class PubSubTimer : public ::cMessage
00127 {
00128   protected:
00129     int type_var;
00130     int subspaceId_var;
00131 
00132     // protected and unimplemented operator==(), to prevent accidental usage
00133     bool operator==(const PubSubTimer&);
00134 
00135   public:
00136     PubSubTimer(const char *name=NULL, int kind=0);
00137     PubSubTimer(const PubSubTimer& other);
00138     virtual ~PubSubTimer();
00139     PubSubTimer& operator=(const PubSubTimer& other);
00140     virtual PubSubTimer *dup() const {return new PubSubTimer(*this);}
00141     virtual void parsimPack(cCommBuffer *b);
00142     virtual void parsimUnpack(cCommBuffer *b);
00143 
00144     // field getter/setter methods
00145     virtual int getType() const;
00146     virtual void setType(int type_var);
00147     virtual int getSubspaceId() const;
00148     virtual void setSubspaceId(int subspaceId_var);
00149 };
00150 
00151 inline void doPacking(cCommBuffer *b, PubSubTimer& obj) {obj.parsimPack(b);}
00152 inline void doUnpacking(cCommBuffer *b, PubSubTimer& obj) {obj.parsimUnpack(b);}
00153 
00164 class PubSubJoinCall : public ::BaseCallMessage
00165 {
00166   protected:
00167     ::Vector2D position_var;
00168     int ressources_var;
00169 
00170     // protected and unimplemented operator==(), to prevent accidental usage
00171     bool operator==(const PubSubJoinCall&);
00172 
00173   public:
00174     PubSubJoinCall(const char *name=NULL, int kind=0);
00175     PubSubJoinCall(const PubSubJoinCall& other);
00176     virtual ~PubSubJoinCall();
00177     PubSubJoinCall& operator=(const PubSubJoinCall& other);
00178     virtual PubSubJoinCall *dup() const {return new PubSubJoinCall(*this);}
00179     virtual void parsimPack(cCommBuffer *b);
00180     virtual void parsimUnpack(cCommBuffer *b);
00181 
00182     // field getter/setter methods
00183     virtual Vector2D& getPosition();
00184     virtual const Vector2D& getPosition() const {return const_cast<PubSubJoinCall*>(this)->getPosition();}
00185     virtual void setPosition(const Vector2D& position_var);
00186     virtual int getRessources() const;
00187     virtual void setRessources(int ressources_var);
00188 };
00189 
00190 inline void doPacking(cCommBuffer *b, PubSubJoinCall& obj) {obj.parsimPack(b);}
00191 inline void doUnpacking(cCommBuffer *b, PubSubJoinCall& obj) {obj.parsimUnpack(b);}
00192 
00203 class PubSubJoinResponse : public ::BaseResponseMessage
00204 {
00205   protected:
00206     ::NodeHandle responsibleNode_var;
00207 
00208     // protected and unimplemented operator==(), to prevent accidental usage
00209     bool operator==(const PubSubJoinResponse&);
00210 
00211   public:
00212     PubSubJoinResponse(const char *name=NULL, int kind=0);
00213     PubSubJoinResponse(const PubSubJoinResponse& other);
00214     virtual ~PubSubJoinResponse();
00215     PubSubJoinResponse& operator=(const PubSubJoinResponse& other);
00216     virtual PubSubJoinResponse *dup() const {return new PubSubJoinResponse(*this);}
00217     virtual void parsimPack(cCommBuffer *b);
00218     virtual void parsimUnpack(cCommBuffer *b);
00219 
00220     // field getter/setter methods
00221     virtual NodeHandle& getResponsibleNode();
00222     virtual const NodeHandle& getResponsibleNode() const {return const_cast<PubSubJoinResponse*>(this)->getResponsibleNode();}
00223     virtual void setResponsibleNode(const NodeHandle& responsibleNode_var);
00224 };
00225 
00226 inline void doPacking(cCommBuffer *b, PubSubJoinResponse& obj) {obj.parsimPack(b);}
00227 inline void doUnpacking(cCommBuffer *b, PubSubJoinResponse& obj) {obj.parsimUnpack(b);}
00228 
00238 class PubSubResponsibleNodeCall : public ::BaseCallMessage
00239 {
00240   protected:
00241     ::Vector2D subspacePos_var;
00242 
00243     // protected and unimplemented operator==(), to prevent accidental usage
00244     bool operator==(const PubSubResponsibleNodeCall&);
00245 
00246   public:
00247     PubSubResponsibleNodeCall(const char *name=NULL, int kind=0);
00248     PubSubResponsibleNodeCall(const PubSubResponsibleNodeCall& other);
00249     virtual ~PubSubResponsibleNodeCall();
00250     PubSubResponsibleNodeCall& operator=(const PubSubResponsibleNodeCall& other);
00251     virtual PubSubResponsibleNodeCall *dup() const {return new PubSubResponsibleNodeCall(*this);}
00252     virtual void parsimPack(cCommBuffer *b);
00253     virtual void parsimUnpack(cCommBuffer *b);
00254 
00255     // field getter/setter methods
00256     virtual Vector2D& getSubspacePos();
00257     virtual const Vector2D& getSubspacePos() const {return const_cast<PubSubResponsibleNodeCall*>(this)->getSubspacePos();}
00258     virtual void setSubspacePos(const Vector2D& subspacePos_var);
00259 };
00260 
00261 inline void doPacking(cCommBuffer *b, PubSubResponsibleNodeCall& obj) {obj.parsimPack(b);}
00262 inline void doUnpacking(cCommBuffer *b, PubSubResponsibleNodeCall& obj) {obj.parsimUnpack(b);}
00263 
00274 class PubSubResponsibleNodeResponse : public ::BaseResponseMessage
00275 {
00276   protected:
00277     int subspaceId_var;
00278     ::NodeHandle responsibleNode_var;
00279 
00280     // protected and unimplemented operator==(), to prevent accidental usage
00281     bool operator==(const PubSubResponsibleNodeResponse&);
00282 
00283   public:
00284     PubSubResponsibleNodeResponse(const char *name=NULL, int kind=0);
00285     PubSubResponsibleNodeResponse(const PubSubResponsibleNodeResponse& other);
00286     virtual ~PubSubResponsibleNodeResponse();
00287     PubSubResponsibleNodeResponse& operator=(const PubSubResponsibleNodeResponse& other);
00288     virtual PubSubResponsibleNodeResponse *dup() const {return new PubSubResponsibleNodeResponse(*this);}
00289     virtual void parsimPack(cCommBuffer *b);
00290     virtual void parsimUnpack(cCommBuffer *b);
00291 
00292     // field getter/setter methods
00293     virtual int getSubspaceId() const;
00294     virtual void setSubspaceId(int subspaceId_var);
00295     virtual NodeHandle& getResponsibleNode();
00296     virtual const NodeHandle& getResponsibleNode() const {return const_cast<PubSubResponsibleNodeResponse*>(this)->getResponsibleNode();}
00297     virtual void setResponsibleNode(const NodeHandle& responsibleNode_var);
00298 };
00299 
00300 inline void doPacking(cCommBuffer *b, PubSubResponsibleNodeResponse& obj) {obj.parsimPack(b);}
00301 inline void doUnpacking(cCommBuffer *b, PubSubResponsibleNodeResponse& obj) {obj.parsimUnpack(b);}
00302 
00312 class PubSubTakeOverSubspaceCall : public ::BaseCallMessage
00313 {
00314   protected:
00315     ::Vector2D subspacePos_var;
00316 
00317     // protected and unimplemented operator==(), to prevent accidental usage
00318     bool operator==(const PubSubTakeOverSubspaceCall&);
00319 
00320   public:
00321     PubSubTakeOverSubspaceCall(const char *name=NULL, int kind=0);
00322     PubSubTakeOverSubspaceCall(const PubSubTakeOverSubspaceCall& other);
00323     virtual ~PubSubTakeOverSubspaceCall();
00324     PubSubTakeOverSubspaceCall& operator=(const PubSubTakeOverSubspaceCall& other);
00325     virtual PubSubTakeOverSubspaceCall *dup() const {return new PubSubTakeOverSubspaceCall(*this);}
00326     virtual void parsimPack(cCommBuffer *b);
00327     virtual void parsimUnpack(cCommBuffer *b);
00328 
00329     // field getter/setter methods
00330     virtual Vector2D& getSubspacePos();
00331     virtual const Vector2D& getSubspacePos() const {return const_cast<PubSubTakeOverSubspaceCall*>(this)->getSubspacePos();}
00332     virtual void setSubspacePos(const Vector2D& subspacePos_var);
00333 };
00334 
00335 inline void doPacking(cCommBuffer *b, PubSubTakeOverSubspaceCall& obj) {obj.parsimPack(b);}
00336 inline void doUnpacking(cCommBuffer *b, PubSubTakeOverSubspaceCall& obj) {obj.parsimUnpack(b);}
00337 
00347 class PubSubTakeOverSubspaceResponse : public ::BaseResponseMessage
00348 {
00349   protected:
00350     ::Vector2D subspacePos_var;
00351 
00352     // protected and unimplemented operator==(), to prevent accidental usage
00353     bool operator==(const PubSubTakeOverSubspaceResponse&);
00354 
00355   public:
00356     PubSubTakeOverSubspaceResponse(const char *name=NULL, int kind=0);
00357     PubSubTakeOverSubspaceResponse(const PubSubTakeOverSubspaceResponse& other);
00358     virtual ~PubSubTakeOverSubspaceResponse();
00359     PubSubTakeOverSubspaceResponse& operator=(const PubSubTakeOverSubspaceResponse& other);
00360     virtual PubSubTakeOverSubspaceResponse *dup() const {return new PubSubTakeOverSubspaceResponse(*this);}
00361     virtual void parsimPack(cCommBuffer *b);
00362     virtual void parsimUnpack(cCommBuffer *b);
00363 
00364     // field getter/setter methods
00365     virtual Vector2D& getSubspacePos();
00366     virtual const Vector2D& getSubspacePos() const {return const_cast<PubSubTakeOverSubspaceResponse*>(this)->getSubspacePos();}
00367     virtual void setSubspacePos(const Vector2D& subspacePos_var);
00368 };
00369 
00370 inline void doPacking(cCommBuffer *b, PubSubTakeOverSubspaceResponse& obj) {obj.parsimPack(b);}
00371 inline void doUnpacking(cCommBuffer *b, PubSubTakeOverSubspaceResponse& obj) {obj.parsimUnpack(b);}
00372 
00382 class PubSubSubscriptionCall : public ::BaseCallMessage
00383 {
00384   protected:
00385     int subspaceId_var;
00386 
00387     // protected and unimplemented operator==(), to prevent accidental usage
00388     bool operator==(const PubSubSubscriptionCall&);
00389 
00390   public:
00391     PubSubSubscriptionCall(const char *name=NULL, int kind=0);
00392     PubSubSubscriptionCall(const PubSubSubscriptionCall& other);
00393     virtual ~PubSubSubscriptionCall();
00394     PubSubSubscriptionCall& operator=(const PubSubSubscriptionCall& other);
00395     virtual PubSubSubscriptionCall *dup() const {return new PubSubSubscriptionCall(*this);}
00396     virtual void parsimPack(cCommBuffer *b);
00397     virtual void parsimUnpack(cCommBuffer *b);
00398 
00399     // field getter/setter methods
00400     virtual int getSubspaceId() const;
00401     virtual void setSubspaceId(int subspaceId_var);
00402 };
00403 
00404 inline void doPacking(cCommBuffer *b, PubSubSubscriptionCall& obj) {obj.parsimPack(b);}
00405 inline void doUnpacking(cCommBuffer *b, PubSubSubscriptionCall& obj) {obj.parsimUnpack(b);}
00406 
00416 class PubSubSubscriptionResponse : public ::BaseResponseMessage
00417 {
00418   protected:
00419     bool failed_var;
00420 
00421     // protected and unimplemented operator==(), to prevent accidental usage
00422     bool operator==(const PubSubSubscriptionResponse&);
00423 
00424   public:
00425     PubSubSubscriptionResponse(const char *name=NULL, int kind=0);
00426     PubSubSubscriptionResponse(const PubSubSubscriptionResponse& other);
00427     virtual ~PubSubSubscriptionResponse();
00428     PubSubSubscriptionResponse& operator=(const PubSubSubscriptionResponse& other);
00429     virtual PubSubSubscriptionResponse *dup() const {return new PubSubSubscriptionResponse(*this);}
00430     virtual void parsimPack(cCommBuffer *b);
00431     virtual void parsimUnpack(cCommBuffer *b);
00432 
00433     // field getter/setter methods
00434     virtual bool getFailed() const;
00435     virtual void setFailed(bool failed_var);
00436 };
00437 
00438 inline void doPacking(cCommBuffer *b, PubSubSubscriptionResponse& obj) {obj.parsimPack(b);}
00439 inline void doUnpacking(cCommBuffer *b, PubSubSubscriptionResponse& obj) {obj.parsimUnpack(b);}
00440 
00451 class PubSubUnsubscriptionMessage : public ::BaseOverlayMessage
00452 {
00453   protected:
00454     int subspaceId_var;
00455     ::NodeHandle src_var;
00456 
00457     // protected and unimplemented operator==(), to prevent accidental usage
00458     bool operator==(const PubSubUnsubscriptionMessage&);
00459 
00460   public:
00461     PubSubUnsubscriptionMessage(const char *name=NULL, int kind=0);
00462     PubSubUnsubscriptionMessage(const PubSubUnsubscriptionMessage& other);
00463     virtual ~PubSubUnsubscriptionMessage();
00464     PubSubUnsubscriptionMessage& operator=(const PubSubUnsubscriptionMessage& other);
00465     virtual PubSubUnsubscriptionMessage *dup() const {return new PubSubUnsubscriptionMessage(*this);}
00466     virtual void parsimPack(cCommBuffer *b);
00467     virtual void parsimUnpack(cCommBuffer *b);
00468 
00469     // field getter/setter methods
00470     virtual int getSubspaceId() const;
00471     virtual void setSubspaceId(int subspaceId_var);
00472     virtual NodeHandle& getSrc();
00473     virtual const NodeHandle& getSrc() const {return const_cast<PubSubUnsubscriptionMessage*>(this)->getSrc();}
00474     virtual void setSrc(const NodeHandle& src_var);
00475 };
00476 
00477 inline void doPacking(cCommBuffer *b, PubSubUnsubscriptionMessage& obj) {obj.parsimPack(b);}
00478 inline void doUnpacking(cCommBuffer *b, PubSubUnsubscriptionMessage& obj) {obj.parsimUnpack(b);}
00479 
00490 class PubSubHelpCall : public ::BaseCallMessage
00491 {
00492   protected:
00493     int subspaceId_var;
00494     int helpType_var;
00495 
00496     // protected and unimplemented operator==(), to prevent accidental usage
00497     bool operator==(const PubSubHelpCall&);
00498 
00499   public:
00500     PubSubHelpCall(const char *name=NULL, int kind=0);
00501     PubSubHelpCall(const PubSubHelpCall& other);
00502     virtual ~PubSubHelpCall();
00503     PubSubHelpCall& operator=(const PubSubHelpCall& other);
00504     virtual PubSubHelpCall *dup() const {return new PubSubHelpCall(*this);}
00505     virtual void parsimPack(cCommBuffer *b);
00506     virtual void parsimUnpack(cCommBuffer *b);
00507 
00508     // field getter/setter methods
00509     virtual int getSubspaceId() const;
00510     virtual void setSubspaceId(int subspaceId_var);
00511     virtual int getHelpType() const;
00512     virtual void setHelpType(int helpType_var);
00513 };
00514 
00515 inline void doPacking(cCommBuffer *b, PubSubHelpCall& obj) {obj.parsimPack(b);}
00516 inline void doUnpacking(cCommBuffer *b, PubSubHelpCall& obj) {obj.parsimUnpack(b);}
00517 
00529 class PubSubHelpResponse : public ::BaseResponseMessage
00530 {
00531   protected:
00532     int subspaceId_var;
00533     int helpType_var;
00534     ::NodeHandle node_var;
00535 
00536     // protected and unimplemented operator==(), to prevent accidental usage
00537     bool operator==(const PubSubHelpResponse&);
00538 
00539   public:
00540     PubSubHelpResponse(const char *name=NULL, int kind=0);
00541     PubSubHelpResponse(const PubSubHelpResponse& other);
00542     virtual ~PubSubHelpResponse();
00543     PubSubHelpResponse& operator=(const PubSubHelpResponse& other);
00544     virtual PubSubHelpResponse *dup() const {return new PubSubHelpResponse(*this);}
00545     virtual void parsimPack(cCommBuffer *b);
00546     virtual void parsimUnpack(cCommBuffer *b);
00547 
00548     // field getter/setter methods
00549     virtual int getSubspaceId() const;
00550     virtual void setSubspaceId(int subspaceId_var);
00551     virtual int getHelpType() const;
00552     virtual void setHelpType(int helpType_var);
00553     virtual NodeHandle& getNode();
00554     virtual const NodeHandle& getNode() const {return const_cast<PubSubHelpResponse*>(this)->getNode();}
00555     virtual void setNode(const NodeHandle& node_var);
00556 };
00557 
00558 inline void doPacking(cCommBuffer *b, PubSubHelpResponse& obj) {obj.parsimPack(b);}
00559 inline void doUnpacking(cCommBuffer *b, PubSubHelpResponse& obj) {obj.parsimUnpack(b);}
00560 
00570 class PubSubIntermediateCall : public ::BaseCallMessage
00571 {
00572   protected:
00573     int subspaceId_var;
00574 
00575     // protected and unimplemented operator==(), to prevent accidental usage
00576     bool operator==(const PubSubIntermediateCall&);
00577 
00578   public:
00579     PubSubIntermediateCall(const char *name=NULL, int kind=0);
00580     PubSubIntermediateCall(const PubSubIntermediateCall& other);
00581     virtual ~PubSubIntermediateCall();
00582     PubSubIntermediateCall& operator=(const PubSubIntermediateCall& other);
00583     virtual PubSubIntermediateCall *dup() const {return new PubSubIntermediateCall(*this);}
00584     virtual void parsimPack(cCommBuffer *b);
00585     virtual void parsimUnpack(cCommBuffer *b);
00586 
00587     // field getter/setter methods
00588     virtual int getSubspaceId() const;
00589     virtual void setSubspaceId(int subspaceId_var);
00590 };
00591 
00592 inline void doPacking(cCommBuffer *b, PubSubIntermediateCall& obj) {obj.parsimPack(b);}
00593 inline void doUnpacking(cCommBuffer *b, PubSubIntermediateCall& obj) {obj.parsimUnpack(b);}
00594 
00604 class PubSubIntermediateResponse : public ::BaseResponseMessage
00605 {
00606   protected:
00607     int subspaceId_var;
00608 
00609     // protected and unimplemented operator==(), to prevent accidental usage
00610     bool operator==(const PubSubIntermediateResponse&);
00611 
00612   public:
00613     PubSubIntermediateResponse(const char *name=NULL, int kind=0);
00614     PubSubIntermediateResponse(const PubSubIntermediateResponse& other);
00615     virtual ~PubSubIntermediateResponse();
00616     PubSubIntermediateResponse& operator=(const PubSubIntermediateResponse& other);
00617     virtual PubSubIntermediateResponse *dup() const {return new PubSubIntermediateResponse(*this);}
00618     virtual void parsimPack(cCommBuffer *b);
00619     virtual void parsimUnpack(cCommBuffer *b);
00620 
00621     // field getter/setter methods
00622     virtual int getSubspaceId() const;
00623     virtual void setSubspaceId(int subspaceId_var);
00624 };
00625 
00626 inline void doPacking(cCommBuffer *b, PubSubIntermediateResponse& obj) {obj.parsimPack(b);}
00627 inline void doUnpacking(cCommBuffer *b, PubSubIntermediateResponse& obj) {obj.parsimUnpack(b);}
00628 
00641 class PubSubBackupCall : public ::BaseCallMessage
00642 {
00643   protected:
00644     int subspaceId_var;
00645     ::NodeHandle *intermediates_var; // array ptr
00646     unsigned int intermediates_arraysize;
00647     ::NodeHandle *children_var; // array ptr
00648     unsigned int children_arraysize;
00649     int *childrenPos_var; // array ptr
00650     unsigned int childrenPos_arraysize;
00651 
00652     // protected and unimplemented operator==(), to prevent accidental usage
00653     bool operator==(const PubSubBackupCall&);
00654 
00655   public:
00656     PubSubBackupCall(const char *name=NULL, int kind=0);
00657     PubSubBackupCall(const PubSubBackupCall& other);
00658     virtual ~PubSubBackupCall();
00659     PubSubBackupCall& operator=(const PubSubBackupCall& other);
00660     virtual PubSubBackupCall *dup() const {return new PubSubBackupCall(*this);}
00661     virtual void parsimPack(cCommBuffer *b);
00662     virtual void parsimUnpack(cCommBuffer *b);
00663 
00664     // field getter/setter methods
00665     virtual int getSubspaceId() const;
00666     virtual void setSubspaceId(int subspaceId_var);
00667     virtual void setIntermediatesArraySize(unsigned int size);
00668     virtual unsigned int getIntermediatesArraySize() const;
00669     virtual NodeHandle& getIntermediates(unsigned int k);
00670     virtual const NodeHandle& getIntermediates(unsigned int k) const {return const_cast<PubSubBackupCall*>(this)->getIntermediates(k);}
00671     virtual void setIntermediates(unsigned int k, const NodeHandle& intermediates_var);
00672     virtual void setChildrenArraySize(unsigned int size);
00673     virtual unsigned int getChildrenArraySize() const;
00674     virtual NodeHandle& getChildren(unsigned int k);
00675     virtual const NodeHandle& getChildren(unsigned int k) const {return const_cast<PubSubBackupCall*>(this)->getChildren(k);}
00676     virtual void setChildren(unsigned int k, const NodeHandle& children_var);
00677     virtual void setChildrenPosArraySize(unsigned int size);
00678     virtual unsigned int getChildrenPosArraySize() const;
00679     virtual int getChildrenPos(unsigned int k) const;
00680     virtual void setChildrenPos(unsigned int k, int childrenPos_var);
00681 };
00682 
00683 inline void doPacking(cCommBuffer *b, PubSubBackupCall& obj) {obj.parsimPack(b);}
00684 inline void doUnpacking(cCommBuffer *b, PubSubBackupCall& obj) {obj.parsimUnpack(b);}
00685 
00695 class PubSubBackupResponse : public ::BaseResponseMessage
00696 {
00697   protected:
00698     int subspaceId_var;
00699 
00700     // protected and unimplemented operator==(), to prevent accidental usage
00701     bool operator==(const PubSubBackupResponse&);
00702 
00703   public:
00704     PubSubBackupResponse(const char *name=NULL, int kind=0);
00705     PubSubBackupResponse(const PubSubBackupResponse& other);
00706     virtual ~PubSubBackupResponse();
00707     PubSubBackupResponse& operator=(const PubSubBackupResponse& other);
00708     virtual PubSubBackupResponse *dup() const {return new PubSubBackupResponse(*this);}
00709     virtual void parsimPack(cCommBuffer *b);
00710     virtual void parsimUnpack(cCommBuffer *b);
00711 
00712     // field getter/setter methods
00713     virtual int getSubspaceId() const;
00714     virtual void setSubspaceId(int subspaceId_var);
00715 };
00716 
00717 inline void doPacking(cCommBuffer *b, PubSubBackupResponse& obj) {obj.parsimPack(b);}
00718 inline void doUnpacking(cCommBuffer *b, PubSubBackupResponse& obj) {obj.parsimUnpack(b);}
00719 
00730 class PubSubPingCall : public ::BaseCallMessage
00731 {
00732   protected:
00733     int subspaceId_var;
00734     int pingType_var;
00735 
00736     // protected and unimplemented operator==(), to prevent accidental usage
00737     bool operator==(const PubSubPingCall&);
00738 
00739   public:
00740     PubSubPingCall(const char *name=NULL, int kind=0);
00741     PubSubPingCall(const PubSubPingCall& other);
00742     virtual ~PubSubPingCall();
00743     PubSubPingCall& operator=(const PubSubPingCall& other);
00744     virtual PubSubPingCall *dup() const {return new PubSubPingCall(*this);}
00745     virtual void parsimPack(cCommBuffer *b);
00746     virtual void parsimUnpack(cCommBuffer *b);
00747 
00748     // field getter/setter methods
00749     virtual int getSubspaceId() const;
00750     virtual void setSubspaceId(int subspaceId_var);
00751     virtual int getPingType() const;
00752     virtual void setPingType(int pingType_var);
00753 };
00754 
00755 inline void doPacking(cCommBuffer *b, PubSubPingCall& obj) {obj.parsimPack(b);}
00756 inline void doUnpacking(cCommBuffer *b, PubSubPingCall& obj) {obj.parsimUnpack(b);}
00757 
00767 class PubSubPingResponse : public ::BaseResponseMessage
00768 {
00769   protected:
00770     int subspaceId_var;
00771 
00772     // protected and unimplemented operator==(), to prevent accidental usage
00773     bool operator==(const PubSubPingResponse&);
00774 
00775   public:
00776     PubSubPingResponse(const char *name=NULL, int kind=0);
00777     PubSubPingResponse(const PubSubPingResponse& other);
00778     virtual ~PubSubPingResponse();
00779     PubSubPingResponse& operator=(const PubSubPingResponse& other);
00780     virtual PubSubPingResponse *dup() const {return new PubSubPingResponse(*this);}
00781     virtual void parsimPack(cCommBuffer *b);
00782     virtual void parsimUnpack(cCommBuffer *b);
00783 
00784     // field getter/setter methods
00785     virtual int getSubspaceId() const;
00786     virtual void setSubspaceId(int subspaceId_var);
00787 };
00788 
00789 inline void doPacking(cCommBuffer *b, PubSubPingResponse& obj) {obj.parsimPack(b);}
00790 inline void doUnpacking(cCommBuffer *b, PubSubPingResponse& obj) {obj.parsimUnpack(b);}
00791 
00802 class PubSubReplacementMessage : public ::BaseOverlayMessage
00803 {
00804   protected:
00805     int subspaceId_var;
00806     ::NodeHandle newResponsibleNode_var;
00807 
00808     // protected and unimplemented operator==(), to prevent accidental usage
00809     bool operator==(const PubSubReplacementMessage&);
00810 
00811   public:
00812     PubSubReplacementMessage(const char *name=NULL, int kind=0);
00813     PubSubReplacementMessage(const PubSubReplacementMessage& other);
00814     virtual ~PubSubReplacementMessage();
00815     PubSubReplacementMessage& operator=(const PubSubReplacementMessage& other);
00816     virtual PubSubReplacementMessage *dup() const {return new PubSubReplacementMessage(*this);}
00817     virtual void parsimPack(cCommBuffer *b);
00818     virtual void parsimUnpack(cCommBuffer *b);
00819 
00820     // field getter/setter methods
00821     virtual int getSubspaceId() const;
00822     virtual void setSubspaceId(int subspaceId_var);
00823     virtual NodeHandle& getNewResponsibleNode();
00824     virtual const NodeHandle& getNewResponsibleNode() const {return const_cast<PubSubReplacementMessage*>(this)->getNewResponsibleNode();}
00825     virtual void setNewResponsibleNode(const NodeHandle& newResponsibleNode_var);
00826 };
00827 
00828 inline void doPacking(cCommBuffer *b, PubSubReplacementMessage& obj) {obj.parsimPack(b);}
00829 inline void doUnpacking(cCommBuffer *b, PubSubReplacementMessage& obj) {obj.parsimUnpack(b);}
00830 
00840 class PubSubFailedNodeMessage : public ::BaseOverlayMessage
00841 {
00842   protected:
00843     ::TransportAddress failedNode_var;
00844 
00845     // protected and unimplemented operator==(), to prevent accidental usage
00846     bool operator==(const PubSubFailedNodeMessage&);
00847 
00848   public:
00849     PubSubFailedNodeMessage(const char *name=NULL, int kind=0);
00850     PubSubFailedNodeMessage(const PubSubFailedNodeMessage& other);
00851     virtual ~PubSubFailedNodeMessage();
00852     PubSubFailedNodeMessage& operator=(const PubSubFailedNodeMessage& other);
00853     virtual PubSubFailedNodeMessage *dup() const {return new PubSubFailedNodeMessage(*this);}
00854     virtual void parsimPack(cCommBuffer *b);
00855     virtual void parsimUnpack(cCommBuffer *b);
00856 
00857     // field getter/setter methods
00858     virtual TransportAddress& getFailedNode();
00859     virtual const TransportAddress& getFailedNode() const {return const_cast<PubSubFailedNodeMessage*>(this)->getFailedNode();}
00860     virtual void setFailedNode(const TransportAddress& failedNode_var);
00861 };
00862 
00863 inline void doPacking(cCommBuffer *b, PubSubFailedNodeMessage& obj) {obj.parsimPack(b);}
00864 inline void doUnpacking(cCommBuffer *b, PubSubFailedNodeMessage& obj) {obj.parsimUnpack(b);}
00865 
00876 class PubSubNodeLeftMessage : public ::BaseOverlayMessage
00877 {
00878   protected:
00879     int subspaceId_var;
00880     ::NodeHandle node_var;
00881 
00882     // protected and unimplemented operator==(), to prevent accidental usage
00883     bool operator==(const PubSubNodeLeftMessage&);
00884 
00885   public:
00886     PubSubNodeLeftMessage(const char *name=NULL, int kind=0);
00887     PubSubNodeLeftMessage(const PubSubNodeLeftMessage& other);
00888     virtual ~PubSubNodeLeftMessage();
00889     PubSubNodeLeftMessage& operator=(const PubSubNodeLeftMessage& other);
00890     virtual PubSubNodeLeftMessage *dup() const {return new PubSubNodeLeftMessage(*this);}
00891     virtual void parsimPack(cCommBuffer *b);
00892     virtual void parsimUnpack(cCommBuffer *b);
00893 
00894     // field getter/setter methods
00895     virtual int getSubspaceId() const;
00896     virtual void setSubspaceId(int subspaceId_var);
00897     virtual NodeHandle& getNode();
00898     virtual const NodeHandle& getNode() const {return const_cast<PubSubNodeLeftMessage*>(this)->getNode();}
00899     virtual void setNode(const NodeHandle& node_var);
00900 };
00901 
00902 inline void doPacking(cCommBuffer *b, PubSubNodeLeftMessage& obj) {obj.parsimPack(b);}
00903 inline void doUnpacking(cCommBuffer *b, PubSubNodeLeftMessage& obj) {obj.parsimUnpack(b);}
00904 
00915 class PubSubAdoptChildCall : public ::BaseCallMessage
00916 {
00917   protected:
00918     int subspaceId_var;
00919     ::NodeHandle child_var;
00920 
00921     // protected and unimplemented operator==(), to prevent accidental usage
00922     bool operator==(const PubSubAdoptChildCall&);
00923 
00924   public:
00925     PubSubAdoptChildCall(const char *name=NULL, int kind=0);
00926     PubSubAdoptChildCall(const PubSubAdoptChildCall& other);
00927     virtual ~PubSubAdoptChildCall();
00928     PubSubAdoptChildCall& operator=(const PubSubAdoptChildCall& other);
00929     virtual PubSubAdoptChildCall *dup() const {return new PubSubAdoptChildCall(*this);}
00930     virtual void parsimPack(cCommBuffer *b);
00931     virtual void parsimUnpack(cCommBuffer *b);
00932 
00933     // field getter/setter methods
00934     virtual int getSubspaceId() const;
00935     virtual void setSubspaceId(int subspaceId_var);
00936     virtual NodeHandle& getChild();
00937     virtual const NodeHandle& getChild() const {return const_cast<PubSubAdoptChildCall*>(this)->getChild();}
00938     virtual void setChild(const NodeHandle& child_var);
00939 };
00940 
00941 inline void doPacking(cCommBuffer *b, PubSubAdoptChildCall& obj) {obj.parsimPack(b);}
00942 inline void doUnpacking(cCommBuffer *b, PubSubAdoptChildCall& obj) {obj.parsimUnpack(b);}
00943 
00954 class PubSubAdoptChildResponse : public ::BaseResponseMessage
00955 {
00956   protected:
00957     int subspaceId_var;
00958     ::NodeHandle child_var;
00959 
00960     // protected and unimplemented operator==(), to prevent accidental usage
00961     bool operator==(const PubSubAdoptChildResponse&);
00962 
00963   public:
00964     PubSubAdoptChildResponse(const char *name=NULL, int kind=0);
00965     PubSubAdoptChildResponse(const PubSubAdoptChildResponse& other);
00966     virtual ~PubSubAdoptChildResponse();
00967     PubSubAdoptChildResponse& operator=(const PubSubAdoptChildResponse& other);
00968     virtual PubSubAdoptChildResponse *dup() const {return new PubSubAdoptChildResponse(*this);}
00969     virtual void parsimPack(cCommBuffer *b);
00970     virtual void parsimUnpack(cCommBuffer *b);
00971 
00972     // field getter/setter methods
00973     virtual int getSubspaceId() const;
00974     virtual void setSubspaceId(int subspaceId_var);
00975     virtual NodeHandle& getChild();
00976     virtual const NodeHandle& getChild() const {return const_cast<PubSubAdoptChildResponse*>(this)->getChild();}
00977     virtual void setChild(const NodeHandle& child_var);
00978 };
00979 
00980 inline void doPacking(cCommBuffer *b, PubSubAdoptChildResponse& obj) {obj.parsimPack(b);}
00981 inline void doUnpacking(cCommBuffer *b, PubSubAdoptChildResponse& obj) {obj.parsimUnpack(b);}
00982 
00992 class PubSubReleaseIntermediateMessage : public ::BaseOverlayMessage
00993 {
00994   protected:
00995     int subspaceId_var;
00996 
00997     // protected and unimplemented operator==(), to prevent accidental usage
00998     bool operator==(const PubSubReleaseIntermediateMessage&);
00999 
01000   public:
01001     PubSubReleaseIntermediateMessage(const char *name=NULL, int kind=0);
01002     PubSubReleaseIntermediateMessage(const PubSubReleaseIntermediateMessage& other);
01003     virtual ~PubSubReleaseIntermediateMessage();
01004     PubSubReleaseIntermediateMessage& operator=(const PubSubReleaseIntermediateMessage& other);
01005     virtual PubSubReleaseIntermediateMessage *dup() const {return new PubSubReleaseIntermediateMessage(*this);}
01006     virtual void parsimPack(cCommBuffer *b);
01007     virtual void parsimUnpack(cCommBuffer *b);
01008 
01009     // field getter/setter methods
01010     virtual int getSubspaceId() const;
01011     virtual void setSubspaceId(int subspaceId_var);
01012 };
01013 
01014 inline void doPacking(cCommBuffer *b, PubSubReleaseIntermediateMessage& obj) {obj.parsimPack(b);}
01015 inline void doUnpacking(cCommBuffer *b, PubSubReleaseIntermediateMessage& obj) {obj.parsimUnpack(b);}
01016 
01027 class PubSubHelpReleaseMessage : public ::BaseOverlayMessage
01028 {
01029   protected:
01030     int subspaceId_var;
01031     ::NodeHandle node_var;
01032 
01033     // protected and unimplemented operator==(), to prevent accidental usage
01034     bool operator==(const PubSubHelpReleaseMessage&);
01035 
01036   public:
01037     PubSubHelpReleaseMessage(const char *name=NULL, int kind=0);
01038     PubSubHelpReleaseMessage(const PubSubHelpReleaseMessage& other);
01039     virtual ~PubSubHelpReleaseMessage();
01040     PubSubHelpReleaseMessage& operator=(const PubSubHelpReleaseMessage& other);
01041     virtual PubSubHelpReleaseMessage *dup() const {return new PubSubHelpReleaseMessage(*this);}
01042     virtual void parsimPack(cCommBuffer *b);
01043     virtual void parsimUnpack(cCommBuffer *b);
01044 
01045     // field getter/setter methods
01046     virtual int getSubspaceId() const;
01047     virtual void setSubspaceId(int subspaceId_var);
01048     virtual NodeHandle& getNode();
01049     virtual const NodeHandle& getNode() const {return const_cast<PubSubHelpReleaseMessage*>(this)->getNode();}
01050     virtual void setNode(const NodeHandle& node_var);
01051 };
01052 
01053 inline void doPacking(cCommBuffer *b, PubSubHelpReleaseMessage& obj) {obj.parsimPack(b);}
01054 inline void doUnpacking(cCommBuffer *b, PubSubHelpReleaseMessage& obj) {obj.parsimUnpack(b);}
01055 
01068 class PubSubBackupSubscriptionMessage : public ::BaseOverlayMessage
01069 {
01070   protected:
01071     int subspaceId_var;
01072     ::NodeHandle child_var;
01073     ::NodeHandle parent_var;
01074     ::NodeHandle oldParent_var;
01075 
01076     // protected and unimplemented operator==(), to prevent accidental usage
01077     bool operator==(const PubSubBackupSubscriptionMessage&);
01078 
01079   public:
01080     PubSubBackupSubscriptionMessage(const char *name=NULL, int kind=0);
01081     PubSubBackupSubscriptionMessage(const PubSubBackupSubscriptionMessage& other);
01082     virtual ~PubSubBackupSubscriptionMessage();
01083     PubSubBackupSubscriptionMessage& operator=(const PubSubBackupSubscriptionMessage& other);
01084     virtual PubSubBackupSubscriptionMessage *dup() const {return new PubSubBackupSubscriptionMessage(*this);}
01085     virtual void parsimPack(cCommBuffer *b);
01086     virtual void parsimUnpack(cCommBuffer *b);
01087 
01088     // field getter/setter methods
01089     virtual int getSubspaceId() const;
01090     virtual void setSubspaceId(int subspaceId_var);
01091     virtual NodeHandle& getChild();
01092     virtual const NodeHandle& getChild() const {return const_cast<PubSubBackupSubscriptionMessage*>(this)->getChild();}
01093     virtual void setChild(const NodeHandle& child_var);
01094     virtual NodeHandle& getParent();
01095     virtual const NodeHandle& getParent() const {return const_cast<PubSubBackupSubscriptionMessage*>(this)->getParent();}
01096     virtual void setParent(const NodeHandle& parent_var);
01097     virtual NodeHandle& getOldParent();
01098     virtual const NodeHandle& getOldParent() const {return const_cast<PubSubBackupSubscriptionMessage*>(this)->getOldParent();}
01099     virtual void setOldParent(const NodeHandle& oldParent_var);
01100 };
01101 
01102 inline void doPacking(cCommBuffer *b, PubSubBackupSubscriptionMessage& obj) {obj.parsimPack(b);}
01103 inline void doUnpacking(cCommBuffer *b, PubSubBackupSubscriptionMessage& obj) {obj.parsimUnpack(b);}
01104 
01116 class PubSubBackupIntermediateMessage : public ::BaseOverlayMessage
01117 {
01118   protected:
01119     int subspaceId_var;
01120     ::NodeHandle node_var;
01121     int pos_var;
01122 
01123     // protected and unimplemented operator==(), to prevent accidental usage
01124     bool operator==(const PubSubBackupIntermediateMessage&);
01125 
01126   public:
01127     PubSubBackupIntermediateMessage(const char *name=NULL, int kind=0);
01128     PubSubBackupIntermediateMessage(const PubSubBackupIntermediateMessage& other);
01129     virtual ~PubSubBackupIntermediateMessage();
01130     PubSubBackupIntermediateMessage& operator=(const PubSubBackupIntermediateMessage& other);
01131     virtual PubSubBackupIntermediateMessage *dup() const {return new PubSubBackupIntermediateMessage(*this);}
01132     virtual void parsimPack(cCommBuffer *b);
01133     virtual void parsimUnpack(cCommBuffer *b);
01134 
01135     // field getter/setter methods
01136     virtual int getSubspaceId() const;
01137     virtual void setSubspaceId(int subspaceId_var);
01138     virtual NodeHandle& getNode();
01139     virtual const NodeHandle& getNode() const {return const_cast<PubSubBackupIntermediateMessage*>(this)->getNode();}
01140     virtual void setNode(const NodeHandle& node_var);
01141     virtual int getPos() const;
01142     virtual void setPos(int pos_var);
01143 };
01144 
01145 inline void doPacking(cCommBuffer *b, PubSubBackupIntermediateMessage& obj) {obj.parsimPack(b);}
01146 inline void doUnpacking(cCommBuffer *b, PubSubBackupIntermediateMessage& obj) {obj.parsimUnpack(b);}
01147 
01159 class PubSubBackupUnsubscribeMessage : public ::BaseOverlayMessage
01160 {
01161   protected:
01162     int subspaceId_var;
01163     ::NodeHandle child_var;
01164     ::NodeHandle intermediate_var;
01165 
01166     // protected and unimplemented operator==(), to prevent accidental usage
01167     bool operator==(const PubSubBackupUnsubscribeMessage&);
01168 
01169   public:
01170     PubSubBackupUnsubscribeMessage(const char *name=NULL, int kind=0);
01171     PubSubBackupUnsubscribeMessage(const PubSubBackupUnsubscribeMessage& other);
01172     virtual ~PubSubBackupUnsubscribeMessage();
01173     PubSubBackupUnsubscribeMessage& operator=(const PubSubBackupUnsubscribeMessage& other);
01174     virtual PubSubBackupUnsubscribeMessage *dup() const {return new PubSubBackupUnsubscribeMessage(*this);}
01175     virtual void parsimPack(cCommBuffer *b);
01176     virtual void parsimUnpack(cCommBuffer *b);
01177 
01178     // field getter/setter methods
01179     virtual int getSubspaceId() const;
01180     virtual void setSubspaceId(int subspaceId_var);
01181     virtual NodeHandle& getChild();
01182     virtual const NodeHandle& getChild() const {return const_cast<PubSubBackupUnsubscribeMessage*>(this)->getChild();}
01183     virtual void setChild(const NodeHandle& child_var);
01184     virtual NodeHandle& getIntermediate();
01185     virtual const NodeHandle& getIntermediate() const {return const_cast<PubSubBackupUnsubscribeMessage*>(this)->getIntermediate();}
01186     virtual void setIntermediate(const NodeHandle& intermediate_var);
01187 };
01188 
01189 inline void doPacking(cCommBuffer *b, PubSubBackupUnsubscribeMessage& obj) {obj.parsimPack(b);}
01190 inline void doUnpacking(cCommBuffer *b, PubSubBackupUnsubscribeMessage& obj) {obj.parsimUnpack(b);}
01191 
01204 class PubSubMoveMessage : public ::BaseOverlayMessage
01205 {
01206   protected:
01207     int subspaceId_var;
01208     simtime_t timestamp_var;
01209     ::NodeHandle player_var;
01210     ::Vector2D position_var;
01211 
01212     // protected and unimplemented operator==(), to prevent accidental usage
01213     bool operator==(const PubSubMoveMessage&);
01214 
01215   public:
01216     PubSubMoveMessage(const char *name=NULL, int kind=0);
01217     PubSubMoveMessage(const PubSubMoveMessage& other);
01218     virtual ~PubSubMoveMessage();
01219     PubSubMoveMessage& operator=(const PubSubMoveMessage& other);
01220     virtual PubSubMoveMessage *dup() const {return new PubSubMoveMessage(*this);}
01221     virtual void parsimPack(cCommBuffer *b);
01222     virtual void parsimUnpack(cCommBuffer *b);
01223 
01224     // field getter/setter methods
01225     virtual int getSubspaceId() const;
01226     virtual void setSubspaceId(int subspaceId_var);
01227     virtual simtime_t getTimestamp() const;
01228     virtual void setTimestamp(simtime_t timestamp_var);
01229     virtual NodeHandle& getPlayer();
01230     virtual const NodeHandle& getPlayer() const {return const_cast<PubSubMoveMessage*>(this)->getPlayer();}
01231     virtual void setPlayer(const NodeHandle& player_var);
01232     virtual Vector2D& getPosition();
01233     virtual const Vector2D& getPosition() const {return const_cast<PubSubMoveMessage*>(this)->getPosition();}
01234     virtual void setPosition(const Vector2D& position_var);
01235 };
01236 
01237 inline void doPacking(cCommBuffer *b, PubSubMoveMessage& obj) {obj.parsimPack(b);}
01238 inline void doUnpacking(cCommBuffer *b, PubSubMoveMessage& obj) {obj.parsimUnpack(b);}
01239 
01253 class PubSubMoveListMessage : public ::BaseOverlayMessage
01254 {
01255   protected:
01256     int subspaceId_var;
01257     simtime_t timestamp_var;
01258     ::NodeHandle *player_var; // array ptr
01259     unsigned int player_arraysize;
01260     ::Vector2D *position_var; // array ptr
01261     unsigned int position_arraysize;
01262     simtime_t *positionAge_var; // array ptr
01263     unsigned int positionAge_arraysize;
01264 
01265     // protected and unimplemented operator==(), to prevent accidental usage
01266     bool operator==(const PubSubMoveListMessage&);
01267 
01268   public:
01269     PubSubMoveListMessage(const char *name=NULL, int kind=0);
01270     PubSubMoveListMessage(const PubSubMoveListMessage& other);
01271     virtual ~PubSubMoveListMessage();
01272     PubSubMoveListMessage& operator=(const PubSubMoveListMessage& other);
01273     virtual PubSubMoveListMessage *dup() const {return new PubSubMoveListMessage(*this);}
01274     virtual void parsimPack(cCommBuffer *b);
01275     virtual void parsimUnpack(cCommBuffer *b);
01276 
01277     // field getter/setter methods
01278     virtual int getSubspaceId() const;
01279     virtual void setSubspaceId(int subspaceId_var);
01280     virtual simtime_t getTimestamp() const;
01281     virtual void setTimestamp(simtime_t timestamp_var);
01282     virtual void setPlayerArraySize(unsigned int size);
01283     virtual unsigned int getPlayerArraySize() const;
01284     virtual NodeHandle& getPlayer(unsigned int k);
01285     virtual const NodeHandle& getPlayer(unsigned int k) const {return const_cast<PubSubMoveListMessage*>(this)->getPlayer(k);}
01286     virtual void setPlayer(unsigned int k, const NodeHandle& player_var);
01287     virtual void setPositionArraySize(unsigned int size);
01288     virtual unsigned int getPositionArraySize() const;
01289     virtual Vector2D& getPosition(unsigned int k);
01290     virtual const Vector2D& getPosition(unsigned int k) const {return const_cast<PubSubMoveListMessage*>(this)->getPosition(k);}
01291     virtual void setPosition(unsigned int k, const Vector2D& position_var);
01292     virtual void setPositionAgeArraySize(unsigned int size);
01293     virtual unsigned int getPositionAgeArraySize() const;
01294     virtual simtime_t getPositionAge(unsigned int k) const;
01295     virtual void setPositionAge(unsigned int k, simtime_t positionAge_var);
01296 };
01297 
01298 inline void doPacking(cCommBuffer *b, PubSubMoveListMessage& obj) {obj.parsimPack(b);}
01299 inline void doUnpacking(cCommBuffer *b, PubSubMoveListMessage& obj) {obj.parsimUnpack(b);}
01300 
01301 
01302 #endif // _PUBSUBMESSAGE_M_H_