ChordMessage_m.h

Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.0 from overlay/chord/ChordMessage.msg.
00003 //
00004 
00005 #ifndef _CHORDMESSAGE_M_H_
00006 #define _CHORDMESSAGE_M_H_
00007 
00008 #include <omnetpp.h>
00009 
00010 // opp_msgc version check
00011 #define MSGC_VERSION 0x0400
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 {{ ... }} section:
00017 
00018 #include <IPvXAddress.h>
00019 #include <NodeHandle.h>
00020 #include <TransportAddress.h>
00021 #include <CommonMessages_m.h>
00022 
00023 
00024 static const int CHORDCOMMAND_L = 8;
00025 static const int SUCNUM_L = 8;
00026 static const int FINGER_L = 8;
00027 static const int STEP_L = 8;
00028 static const int DBNODESET_L = 1;
00029 static const int OTHERLOOKUP_L = 1;
00030 static const int PRENODESET_L = 1;
00031 
00032 #define NEWSUCCESSORHINT_L(msg) (BASEOVERLAY_L(msg) + CHORDCOMMAND_L + \
00033                                  2*NODEHANDLE_L)
00034 #define NOTIFYCALL_L(msg) (BASECALL_L(msg) + DBNODESET_L)
00035 #define NOTIFYRESPONSE_L(msg) (BASERESPONSE_L(msg) + SUCNUM_L + NODEHANDLE_L +\
00036                               DBNODESET_L + (msg->getSucNodeArraySize() * NODEHANDLE_L) +\
00037                   PRENODESET_L)
00038 #define JOINCALL_L(msg) BASECALL_L(msg)
00039 #define JOINRESPONSE_L(msg) (BASERESPONSE_L(msg) + SUCNUM_L + NODEHANDLE_L +\
00040                              (msg->getSucNodeArraySize() * NODEHANDLE_L))
00041 #define STABILIZECALL_L(msg) BASECALL_L(msg)
00042 #define STABILIZERESPONSE_L(msg) (BASERESPONSE_L(msg) + NODEHANDLE_L)
00043 #define FIXFINGERSCALL_L(msg) (BASECALL_L(msg) + FINGER_L)
00044 #define FIXFINGERSRESPONSE_L(msg) (BASERESPONSE_L(msg) + FINGER_L + \
00045                                    NODEHANDLE_L + SUCNUM_L + \
00046                                    (msg->getSucNodeArraySize() * NODEHANDLE_L))
00047 #define DEBRUIJNCALL_L(msg) (BASECALL_L(msg) + KEY_L)
00048 #define DEBRUIJNRESPONSE_L(msg) (BASERESPONSE_L(msg) + SUCNUM_L + NODEHANDLE_L + \
00049                                  (msg->getSucNodeArraySize() * NODEHANDLE_L)) 
00050 
00051 #define KOORDEFINDNODEEXTMESSAGE_L (KEY_L + STEP_L + OTHERLOOKUP_L)
00052 
00053 // end cplusplus
00054 
00055 
00056 
00067 enum ChordCommand {
00068     NEWSUCCESSORHINT = 0
00069 };
00070 
00080 class ChordMessage : public BaseOverlayMessage
00081 {
00082   protected:
00083     int command_var;
00084 
00085     // protected and unimplemented operator==(), to prevent accidental usage
00086     bool operator==(const ChordMessage&);
00087 
00088   public:
00089     ChordMessage(const char *name=NULL, int kind=0);
00090     ChordMessage(const ChordMessage& other);
00091     virtual ~ChordMessage();
00092     ChordMessage& operator=(const ChordMessage& other);
00093     virtual ChordMessage *dup() const {return new ChordMessage(*this);}
00094     virtual void parsimPack(cCommBuffer *b);
00095     virtual void parsimUnpack(cCommBuffer *b);
00096 
00097     // field getter/setter methods
00098     virtual int getCommand() const;
00099     virtual void setCommand(int command_var);
00100 };
00101 
00102 inline void doPacking(cCommBuffer *b, ChordMessage& obj) {obj.parsimPack(b);}
00103 inline void doUnpacking(cCommBuffer *b, ChordMessage& obj) {obj.parsimUnpack(b);}
00104 
00115 class NewSuccessorHintMessage : public ChordMessage
00116 {
00117   protected:
00118     NodeHandle srcNode_var;
00119     NodeHandle preNode_var;
00120 
00121     // protected and unimplemented operator==(), to prevent accidental usage
00122     bool operator==(const NewSuccessorHintMessage&);
00123 
00124   public:
00125     NewSuccessorHintMessage(const char *name=NULL, int kind=0);
00126     NewSuccessorHintMessage(const NewSuccessorHintMessage& other);
00127     virtual ~NewSuccessorHintMessage();
00128     NewSuccessorHintMessage& operator=(const NewSuccessorHintMessage& other);
00129     virtual NewSuccessorHintMessage *dup() const {return new NewSuccessorHintMessage(*this);}
00130     virtual void parsimPack(cCommBuffer *b);
00131     virtual void parsimUnpack(cCommBuffer *b);
00132 
00133     // field getter/setter methods
00134     virtual NodeHandle& getSrcNode();
00135     virtual const NodeHandle& getSrcNode() const {return const_cast<NewSuccessorHintMessage*>(this)->getSrcNode();}
00136     virtual void setSrcNode(const NodeHandle& srcNode_var);
00137     virtual NodeHandle& getPreNode();
00138     virtual const NodeHandle& getPreNode() const {return const_cast<NewSuccessorHintMessage*>(this)->getPreNode();}
00139     virtual void setPreNode(const NodeHandle& preNode_var);
00140 };
00141 
00142 inline void doPacking(cCommBuffer *b, NewSuccessorHintMessage& obj) {obj.parsimPack(b);}
00143 inline void doUnpacking(cCommBuffer *b, NewSuccessorHintMessage& obj) {obj.parsimUnpack(b);}
00144 
00155 class NotifyCall : public BaseCallMessage
00156 {
00157   protected:
00158     TransportAddress failed_var;
00159     bool preDBNodeSet_var;
00160 
00161     // protected and unimplemented operator==(), to prevent accidental usage
00162     bool operator==(const NotifyCall&);
00163 
00164   public:
00165     NotifyCall(const char *name=NULL, int kind=0);
00166     NotifyCall(const NotifyCall& other);
00167     virtual ~NotifyCall();
00168     NotifyCall& operator=(const NotifyCall& other);
00169     virtual NotifyCall *dup() const {return new NotifyCall(*this);}
00170     virtual void parsimPack(cCommBuffer *b);
00171     virtual void parsimUnpack(cCommBuffer *b);
00172 
00173     // field getter/setter methods
00174     virtual TransportAddress& getFailed();
00175     virtual const TransportAddress& getFailed() const {return const_cast<NotifyCall*>(this)->getFailed();}
00176     virtual void setFailed(const TransportAddress& failed_var);
00177     virtual bool getPreDBNodeSet() const;
00178     virtual void setPreDBNodeSet(bool preDBNodeSet_var);
00179 };
00180 
00181 inline void doPacking(cCommBuffer *b, NotifyCall& obj) {obj.parsimPack(b);}
00182 inline void doUnpacking(cCommBuffer *b, NotifyCall& obj) {obj.parsimUnpack(b);}
00183 
00197 class NotifyResponse : public BaseResponseMessage
00198 {
00199   protected:
00200     int sucNum_var;
00201     bool sucDBNodeSet_var;
00202     NodeHandle *sucNode_var; // array ptr
00203     unsigned int sucNode_arraysize;
00204     NodeHandle preNode_var;
00205     bool preNodeSet_var;
00206 
00207     // protected and unimplemented operator==(), to prevent accidental usage
00208     bool operator==(const NotifyResponse&);
00209 
00210   public:
00211     NotifyResponse(const char *name=NULL, int kind=0);
00212     NotifyResponse(const NotifyResponse& other);
00213     virtual ~NotifyResponse();
00214     NotifyResponse& operator=(const NotifyResponse& other);
00215     virtual NotifyResponse *dup() const {return new NotifyResponse(*this);}
00216     virtual void parsimPack(cCommBuffer *b);
00217     virtual void parsimUnpack(cCommBuffer *b);
00218 
00219     // field getter/setter methods
00220     virtual int getSucNum() const;
00221     virtual void setSucNum(int sucNum_var);
00222     virtual bool getSucDBNodeSet() const;
00223     virtual void setSucDBNodeSet(bool sucDBNodeSet_var);
00224     virtual void setSucNodeArraySize(unsigned int size);
00225     virtual unsigned int getSucNodeArraySize() const;
00226     virtual NodeHandle& getSucNode(unsigned int k);
00227     virtual const NodeHandle& getSucNode(unsigned int k) const {return const_cast<NotifyResponse*>(this)->getSucNode(k);}
00228     virtual void setSucNode(unsigned int k, const NodeHandle& sucNode_var);
00229     virtual NodeHandle& getPreNode();
00230     virtual const NodeHandle& getPreNode() const {return const_cast<NotifyResponse*>(this)->getPreNode();}
00231     virtual void setPreNode(const NodeHandle& preNode_var);
00232     virtual bool getPreNodeSet() const;
00233     virtual void setPreNodeSet(bool preNodeSet_var);
00234 };
00235 
00236 inline void doPacking(cCommBuffer *b, NotifyResponse& obj) {obj.parsimPack(b);}
00237 inline void doUnpacking(cCommBuffer *b, NotifyResponse& obj) {obj.parsimUnpack(b);}
00238 
00247 class JoinCall : public BaseCallMessage
00248 {
00249   protected:
00250 
00251     // protected and unimplemented operator==(), to prevent accidental usage
00252     bool operator==(const JoinCall&);
00253 
00254   public:
00255     JoinCall(const char *name=NULL, int kind=0);
00256     JoinCall(const JoinCall& other);
00257     virtual ~JoinCall();
00258     JoinCall& operator=(const JoinCall& other);
00259     virtual JoinCall *dup() const {return new JoinCall(*this);}
00260     virtual void parsimPack(cCommBuffer *b);
00261     virtual void parsimUnpack(cCommBuffer *b);
00262 
00263     // field getter/setter methods
00264 };
00265 
00266 inline void doPacking(cCommBuffer *b, JoinCall& obj) {obj.parsimPack(b);}
00267 inline void doUnpacking(cCommBuffer *b, JoinCall& obj) {obj.parsimUnpack(b);}
00268 
00280 class JoinResponse : public BaseResponseMessage
00281 {
00282   protected:
00283     int sucNum_var;
00284     NodeHandle *sucNode_var; // array ptr
00285     unsigned int sucNode_arraysize;
00286     NodeHandle preNode_var;
00287 
00288     // protected and unimplemented operator==(), to prevent accidental usage
00289     bool operator==(const JoinResponse&);
00290 
00291   public:
00292     JoinResponse(const char *name=NULL, int kind=0);
00293     JoinResponse(const JoinResponse& other);
00294     virtual ~JoinResponse();
00295     JoinResponse& operator=(const JoinResponse& other);
00296     virtual JoinResponse *dup() const {return new JoinResponse(*this);}
00297     virtual void parsimPack(cCommBuffer *b);
00298     virtual void parsimUnpack(cCommBuffer *b);
00299 
00300     // field getter/setter methods
00301     virtual int getSucNum() const;
00302     virtual void setSucNum(int sucNum_var);
00303     virtual void setSucNodeArraySize(unsigned int size);
00304     virtual unsigned int getSucNodeArraySize() const;
00305     virtual NodeHandle& getSucNode(unsigned int k);
00306     virtual const NodeHandle& getSucNode(unsigned int k) const {return const_cast<JoinResponse*>(this)->getSucNode(k);}
00307     virtual void setSucNode(unsigned int k, const NodeHandle& sucNode_var);
00308     virtual NodeHandle& getPreNode();
00309     virtual const NodeHandle& getPreNode() const {return const_cast<JoinResponse*>(this)->getPreNode();}
00310     virtual void setPreNode(const NodeHandle& preNode_var);
00311 };
00312 
00313 inline void doPacking(cCommBuffer *b, JoinResponse& obj) {obj.parsimPack(b);}
00314 inline void doUnpacking(cCommBuffer *b, JoinResponse& obj) {obj.parsimUnpack(b);}
00315 
00324 class StabilizeCall : public BaseCallMessage
00325 {
00326   protected:
00327 
00328     // protected and unimplemented operator==(), to prevent accidental usage
00329     bool operator==(const StabilizeCall&);
00330 
00331   public:
00332     StabilizeCall(const char *name=NULL, int kind=0);
00333     StabilizeCall(const StabilizeCall& other);
00334     virtual ~StabilizeCall();
00335     StabilizeCall& operator=(const StabilizeCall& other);
00336     virtual StabilizeCall *dup() const {return new StabilizeCall(*this);}
00337     virtual void parsimPack(cCommBuffer *b);
00338     virtual void parsimUnpack(cCommBuffer *b);
00339 
00340     // field getter/setter methods
00341 };
00342 
00343 inline void doPacking(cCommBuffer *b, StabilizeCall& obj) {obj.parsimPack(b);}
00344 inline void doUnpacking(cCommBuffer *b, StabilizeCall& obj) {obj.parsimUnpack(b);}
00345 
00355 class StabilizeResponse : public BaseResponseMessage
00356 {
00357   protected:
00358     NodeHandle preNode_var;
00359 
00360     // protected and unimplemented operator==(), to prevent accidental usage
00361     bool operator==(const StabilizeResponse&);
00362 
00363   public:
00364     StabilizeResponse(const char *name=NULL, int kind=0);
00365     StabilizeResponse(const StabilizeResponse& other);
00366     virtual ~StabilizeResponse();
00367     StabilizeResponse& operator=(const StabilizeResponse& other);
00368     virtual StabilizeResponse *dup() const {return new StabilizeResponse(*this);}
00369     virtual void parsimPack(cCommBuffer *b);
00370     virtual void parsimUnpack(cCommBuffer *b);
00371 
00372     // field getter/setter methods
00373     virtual NodeHandle& getPreNode();
00374     virtual const NodeHandle& getPreNode() const {return const_cast<StabilizeResponse*>(this)->getPreNode();}
00375     virtual void setPreNode(const NodeHandle& preNode_var);
00376 };
00377 
00378 inline void doPacking(cCommBuffer *b, StabilizeResponse& obj) {obj.parsimPack(b);}
00379 inline void doUnpacking(cCommBuffer *b, StabilizeResponse& obj) {obj.parsimUnpack(b);}
00380 
00390 class FixfingersCall : public BaseCallMessage
00391 {
00392   protected:
00393     int finger_var;
00394 
00395     // protected and unimplemented operator==(), to prevent accidental usage
00396     bool operator==(const FixfingersCall&);
00397 
00398   public:
00399     FixfingersCall(const char *name=NULL, int kind=0);
00400     FixfingersCall(const FixfingersCall& other);
00401     virtual ~FixfingersCall();
00402     FixfingersCall& operator=(const FixfingersCall& other);
00403     virtual FixfingersCall *dup() const {return new FixfingersCall(*this);}
00404     virtual void parsimPack(cCommBuffer *b);
00405     virtual void parsimUnpack(cCommBuffer *b);
00406 
00407     // field getter/setter methods
00408     virtual int getFinger() const;
00409     virtual void setFinger(int finger_var);
00410 };
00411 
00412 inline void doPacking(cCommBuffer *b, FixfingersCall& obj) {obj.parsimPack(b);}
00413 inline void doUnpacking(cCommBuffer *b, FixfingersCall& obj) {obj.parsimUnpack(b);}
00414 
00425 class FixfingersResponse : public BaseResponseMessage
00426 {
00427   protected:
00428     int finger_var;
00429     NodeHandle *sucNode_var; // array ptr
00430     unsigned int sucNode_arraysize;
00431 
00432     // protected and unimplemented operator==(), to prevent accidental usage
00433     bool operator==(const FixfingersResponse&);
00434 
00435   public:
00436     FixfingersResponse(const char *name=NULL, int kind=0);
00437     FixfingersResponse(const FixfingersResponse& other);
00438     virtual ~FixfingersResponse();
00439     FixfingersResponse& operator=(const FixfingersResponse& other);
00440     virtual FixfingersResponse *dup() const {return new FixfingersResponse(*this);}
00441     virtual void parsimPack(cCommBuffer *b);
00442     virtual void parsimUnpack(cCommBuffer *b);
00443 
00444     // field getter/setter methods
00445     virtual int getFinger() const;
00446     virtual void setFinger(int finger_var);
00447     virtual void setSucNodeArraySize(unsigned int size);
00448     virtual unsigned int getSucNodeArraySize() const;
00449     virtual NodeHandle& getSucNode(unsigned int k);
00450     virtual const NodeHandle& getSucNode(unsigned int k) const {return const_cast<FixfingersResponse*>(this)->getSucNode(k);}
00451     virtual void setSucNode(unsigned int k, const NodeHandle& sucNode_var);
00452 };
00453 
00454 inline void doPacking(cCommBuffer *b, FixfingersResponse& obj) {obj.parsimPack(b);}
00455 inline void doUnpacking(cCommBuffer *b, FixfingersResponse& obj) {obj.parsimUnpack(b);}
00456 
00466 class ChordFindNodeExtMessage : public cPacket
00467 {
00468   protected:
00469     int chordCount_var;
00470 
00471     // protected and unimplemented operator==(), to prevent accidental usage
00472     bool operator==(const ChordFindNodeExtMessage&);
00473 
00474   public:
00475     ChordFindNodeExtMessage(const char *name=NULL, int kind=0);
00476     ChordFindNodeExtMessage(const ChordFindNodeExtMessage& other);
00477     virtual ~ChordFindNodeExtMessage();
00478     ChordFindNodeExtMessage& operator=(const ChordFindNodeExtMessage& other);
00479     virtual ChordFindNodeExtMessage *dup() const {return new ChordFindNodeExtMessage(*this);}
00480     virtual void parsimPack(cCommBuffer *b);
00481     virtual void parsimUnpack(cCommBuffer *b);
00482 
00483     // field getter/setter methods
00484     virtual int getChordCount() const;
00485     virtual void setChordCount(int chordCount_var);
00486 };
00487 
00488 inline void doPacking(cCommBuffer *b, ChordFindNodeExtMessage& obj) {obj.parsimPack(b);}
00489 inline void doUnpacking(cCommBuffer *b, ChordFindNodeExtMessage& obj) {obj.parsimUnpack(b);}
00490 
00504 class KoordeFindNodeExtMessage : public cPacket
00505 {
00506   protected:
00507     OverlayKey routeKey_var;
00508     int step_var;
00509     int length_var;
00510     bool otherLookup_var;
00511     NodeHandle srcNode_var;
00512 
00513     // protected and unimplemented operator==(), to prevent accidental usage
00514     bool operator==(const KoordeFindNodeExtMessage&);
00515 
00516   public:
00517     KoordeFindNodeExtMessage(const char *name=NULL, int kind=0);
00518     KoordeFindNodeExtMessage(const KoordeFindNodeExtMessage& other);
00519     virtual ~KoordeFindNodeExtMessage();
00520     KoordeFindNodeExtMessage& operator=(const KoordeFindNodeExtMessage& other);
00521     virtual KoordeFindNodeExtMessage *dup() const {return new KoordeFindNodeExtMessage(*this);}
00522     virtual void parsimPack(cCommBuffer *b);
00523     virtual void parsimUnpack(cCommBuffer *b);
00524 
00525     // field getter/setter methods
00526     virtual OverlayKey& getRouteKey();
00527     virtual const OverlayKey& getRouteKey() const {return const_cast<KoordeFindNodeExtMessage*>(this)->getRouteKey();}
00528     virtual void setRouteKey(const OverlayKey& routeKey_var);
00529     virtual int getStep() const;
00530     virtual void setStep(int step_var);
00531     virtual int getLength() const;
00532     virtual void setLength(int length_var);
00533     virtual bool getOtherLookup() const;
00534     virtual void setOtherLookup(bool otherLookup_var);
00535     virtual NodeHandle& getSrcNode();
00536     virtual const NodeHandle& getSrcNode() const {return const_cast<KoordeFindNodeExtMessage*>(this)->getSrcNode();}
00537     virtual void setSrcNode(const NodeHandle& srcNode_var);
00538 };
00539 
00540 inline void doPacking(cCommBuffer *b, KoordeFindNodeExtMessage& obj) {obj.parsimPack(b);}
00541 inline void doUnpacking(cCommBuffer *b, KoordeFindNodeExtMessage& obj) {obj.parsimUnpack(b);}
00542 
00552 class DeBruijnCall : public BaseCallMessage
00553 {
00554   protected:
00555     OverlayKey destKey_var;
00556 
00557     // protected and unimplemented operator==(), to prevent accidental usage
00558     bool operator==(const DeBruijnCall&);
00559 
00560   public:
00561     DeBruijnCall(const char *name=NULL, int kind=0);
00562     DeBruijnCall(const DeBruijnCall& other);
00563     virtual ~DeBruijnCall();
00564     DeBruijnCall& operator=(const DeBruijnCall& other);
00565     virtual DeBruijnCall *dup() const {return new DeBruijnCall(*this);}
00566     virtual void parsimPack(cCommBuffer *b);
00567     virtual void parsimUnpack(cCommBuffer *b);
00568 
00569     // field getter/setter methods
00570     virtual OverlayKey& getDestKey();
00571     virtual const OverlayKey& getDestKey() const {return const_cast<DeBruijnCall*>(this)->getDestKey();}
00572     virtual void setDestKey(const OverlayKey& destKey_var);
00573 };
00574 
00575 inline void doPacking(cCommBuffer *b, DeBruijnCall& obj) {obj.parsimPack(b);}
00576 inline void doUnpacking(cCommBuffer *b, DeBruijnCall& obj) {obj.parsimUnpack(b);}
00577 
00589 class DeBruijnResponse : public BaseResponseMessage
00590 {
00591   protected:
00592     NodeHandle dBNode_var;
00593     int sucNum_var;
00594     NodeHandle *sucNode_var; // array ptr
00595     unsigned int sucNode_arraysize;
00596 
00597     // protected and unimplemented operator==(), to prevent accidental usage
00598     bool operator==(const DeBruijnResponse&);
00599 
00600   public:
00601     DeBruijnResponse(const char *name=NULL, int kind=0);
00602     DeBruijnResponse(const DeBruijnResponse& other);
00603     virtual ~DeBruijnResponse();
00604     DeBruijnResponse& operator=(const DeBruijnResponse& other);
00605     virtual DeBruijnResponse *dup() const {return new DeBruijnResponse(*this);}
00606     virtual void parsimPack(cCommBuffer *b);
00607     virtual void parsimUnpack(cCommBuffer *b);
00608 
00609     // field getter/setter methods
00610     virtual NodeHandle& getDBNode();
00611     virtual const NodeHandle& getDBNode() const {return const_cast<DeBruijnResponse*>(this)->getDBNode();}
00612     virtual void setDBNode(const NodeHandle& dBNode_var);
00613     virtual int getSucNum() const;
00614     virtual void setSucNum(int sucNum_var);
00615     virtual void setSucNodeArraySize(unsigned int size);
00616     virtual unsigned int getSucNodeArraySize() const;
00617     virtual NodeHandle& getSucNode(unsigned int k);
00618     virtual const NodeHandle& getSucNode(unsigned int k) const {return const_cast<DeBruijnResponse*>(this)->getSucNode(k);}
00619     virtual void setSucNode(unsigned int k, const NodeHandle& sucNode_var);
00620 };
00621 
00622 inline void doPacking(cCommBuffer *b, DeBruijnResponse& obj) {obj.parsimPack(b);}
00623 inline void doUnpacking(cCommBuffer *b, DeBruijnResponse& obj) {obj.parsimUnpack(b);}
00624 
00625 
00626 #endif // _CHORDMESSAGE_M_H_

Generated on Fri Mar 20 18:40:25 2009 for OverSim by  doxygen 1.5.5