-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHChordMessage_m.h
1221 lines (1044 loc) · 39.3 KB
/
HChordMessage_m.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//
// Generated file, do not edit! Created by opp_msgc 3.4 from HChordMessage.msg.
//
#ifndef _HCHORDMESSAGE_M_H_
#define _HCHORDMESSAGE_M_H_
#include <omnetpp.h>
// opp_msgc version check
#define MSGC_VERSION 0x0304
#if (MSGC_VERSION!=OMNETPP_VERSION)
# error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help.
#endif
// cplusplus {{ ... }} section:
#include <IPvXAddress.h>
#include <NodeHandle.h>
#include <CommonMessages_m.h>
static const int HCHORDCOMMAND_L = 8;
static const int SUCNUM_L = 8;
static const int FINGER_L = 8;
static const int STEP_L = 8;
static const int DBNODESET_L = 1;
static const int OTHERLOOKUP_L = 1;
static const int PRENODESET_L = 1;
static const int OVERLAY_L=8;
#define HCHORD_L(msg) (BASEOVERLAY_L(msg) + NODEHANDLE_L*2 + OVERLAY_L*2 )
#define HNEWSUCCESSORHINT_L(msg) (BASEOVERLAY_L(msg) + NODEHANDLE_L*3 + OVERLAY_L*2 )
#define HNOTIFYCALL_L(msg) (HCHORD_L(msg) + DBNODESET_L)
#define HNOTIFYRESPONSE_L(msg) (HCHORD_L(msg) + SUCNUM_L + NODEHANDLE_L + (msg->getSucNodeArraySize() * NODEHANDLE_L) )
#define HJOINCALL_L(msg) (BASEOVERLAY_L(msg) + NODEHANDLE_L*2 + OVERLAY_L*2 )
#define HJOINRESPONSE_L(msg) (BASEOVERLAY_L(msg) + NODEHANDLE_L*2 + OVERLAY_L*2 + SUCNUM_L + NODEHANDLE_L + (msg->getSucNodeArraySize() * NODEHANDLE_L))
#define HSTABILIZECALL_L(msg) ( BASEOVERLAY_L(msg) + NODEHANDLE_L*2 + OVERLAY_L*2)
#define HSTABILIZERESPONSE_L(msg) (HCHORD_L(msg) + NODEHANDLE_L)
#define HFIXFINGERSCALL_L(msg) (BASEOVERLAY_L(msg) + NODEHANDLE_L*2 + OVERLAY_L*2 + FINGER_L)
#define HFIXFINGERSRESPONSE_L(msg) (HCHORD_L(msg) + FINGER_L + (msg->getSucNodeArraySize() * NODEHANDLE_L))
#define JOIN_REQUEST 0
#define JOIN_RESPONSE 1
#define NEW_SUCCESSOR_HINT 2
#define STABILIZE_CALL 3
#define STABILIZE_RESPONSE 4
#define FIXFINGERS_CALL 5
#define FIXFINGERS_RESPONSE 6
#define NOTIFY_CALL 7
#define NOTIFY_RESPONSE 8
#define MIGRATE_REQUEST 9
#define MIGRATE_RESPONSE 10
#define STABILIZE_SUPER_PEER_CALL 11
#define STABILIZE_SUPER_PEER_RESPONSE 12
#define LARGEST_NODE_REQUEST 13
#define LARGEST_NODE_RESPONSE 14
#define CHANGE_PRE 15
#define CHANGE_SUC_REQ 16
#define CHANGE_SUC_RES 17
// end cplusplus
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HChordMessage extends BaseOverlayMessage
* {
* fields:
* NodeHandle src;
* NodeHandle dest;
* int mesg_type;
* };
* </pre>
*/
class HChordMessage : public BaseOverlayMessage
{
protected:
NodeHandle src_var;
NodeHandle dest_var;
int mesg_type_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HChordMessage&);
public:
HChordMessage(const char *name=NULL, int kind=0);
HChordMessage(const HChordMessage& other);
virtual ~HChordMessage();
HChordMessage& operator=(const HChordMessage& other);
virtual cPolymorphic *dup() const {return new HChordMessage(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual NodeHandle& getSrc();
virtual const NodeHandle& getSrc() const {return const_cast<HChordMessage*>(this)->getSrc();}
virtual void setSrc(const NodeHandle& src_var);
virtual NodeHandle& getDest();
virtual const NodeHandle& getDest() const {return const_cast<HChordMessage*>(this)->getDest();}
virtual void setDest(const NodeHandle& dest_var);
virtual int getMesg_type() const;
virtual void setMesg_type(int mesg_type_var);
};
inline void doPacking(cCommBuffer *b, HChordMessage& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HChordMessage& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HJoinCall extends HChordMessage
* {
*
* };
* </pre>
*/
class HJoinCall : public HChordMessage
{
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HJoinCall&);
public:
HJoinCall(const char *name=NULL, int kind=0);
HJoinCall(const HJoinCall& other);
virtual ~HJoinCall();
HJoinCall& operator=(const HJoinCall& other);
virtual cPolymorphic *dup() const {return new HJoinCall(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
};
inline void doPacking(cCommBuffer *b, HJoinCall& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HJoinCall& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HJoinResponse extends HChordMessage
* {
* fields:
* int sucNum;
* NodeHandle sucNode[];
* NodeHandle preNode;
* NodeHandle superPeerNode;
* NodeHandle superPeerPre;
* };
* </pre>
*/
class HJoinResponse : public HChordMessage
{
protected:
int sucNum_var;
NodeHandle *sucNode_var; // array ptr
unsigned int sucNode_arraysize;
NodeHandle preNode_var;
NodeHandle superPeerNode_var;
NodeHandle superPeerPre_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HJoinResponse&);
public:
HJoinResponse(const char *name=NULL, int kind=0);
HJoinResponse(const HJoinResponse& other);
virtual ~HJoinResponse();
HJoinResponse& operator=(const HJoinResponse& other);
virtual cPolymorphic *dup() const {return new HJoinResponse(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual int getSucNum() const;
virtual void setSucNum(int sucNum_var);
virtual void setSucNodeArraySize(unsigned int size);
virtual unsigned int getSucNodeArraySize() const;
virtual NodeHandle& getSucNode(unsigned int k);
virtual const NodeHandle& getSucNode(unsigned int k) const {return const_cast<HJoinResponse*>(this)->getSucNode(k);}
virtual void setSucNode(unsigned int k, const NodeHandle& sucNode_var);
virtual NodeHandle& getPreNode();
virtual const NodeHandle& getPreNode() const {return const_cast<HJoinResponse*>(this)->getPreNode();}
virtual void setPreNode(const NodeHandle& preNode_var);
virtual NodeHandle& getSuperPeerNode();
virtual const NodeHandle& getSuperPeerNode() const {return const_cast<HJoinResponse*>(this)->getSuperPeerNode();}
virtual void setSuperPeerNode(const NodeHandle& superPeerNode_var);
virtual NodeHandle& getSuperPeerPre();
virtual const NodeHandle& getSuperPeerPre() const {return const_cast<HJoinResponse*>(this)->getSuperPeerPre();}
virtual void setSuperPeerPre(const NodeHandle& superPeerPre_var);
};
inline void doPacking(cCommBuffer *b, HJoinResponse& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HJoinResponse& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HNotifyCall extends HChordMessage
* {
*
* };
* </pre>
*/
class HNotifyCall : public HChordMessage
{
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HNotifyCall&);
public:
HNotifyCall(const char *name=NULL, int kind=0);
HNotifyCall(const HNotifyCall& other);
virtual ~HNotifyCall();
HNotifyCall& operator=(const HNotifyCall& other);
virtual cPolymorphic *dup() const {return new HNotifyCall(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
};
inline void doPacking(cCommBuffer *b, HNotifyCall& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HNotifyCall& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HNotifyResponse extends HChordMessage
* {
* fields:
* NodeHandle srcNode;
* NodeHandle sucNode[];
* int sucNum;
* };
* </pre>
*/
class HNotifyResponse : public HChordMessage
{
protected:
NodeHandle srcNode_var;
NodeHandle *sucNode_var; // array ptr
unsigned int sucNode_arraysize;
int sucNum_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HNotifyResponse&);
public:
HNotifyResponse(const char *name=NULL, int kind=0);
HNotifyResponse(const HNotifyResponse& other);
virtual ~HNotifyResponse();
HNotifyResponse& operator=(const HNotifyResponse& other);
virtual cPolymorphic *dup() const {return new HNotifyResponse(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual NodeHandle& getSrcNode();
virtual const NodeHandle& getSrcNode() const {return const_cast<HNotifyResponse*>(this)->getSrcNode();}
virtual void setSrcNode(const NodeHandle& srcNode_var);
virtual void setSucNodeArraySize(unsigned int size);
virtual unsigned int getSucNodeArraySize() const;
virtual NodeHandle& getSucNode(unsigned int k);
virtual const NodeHandle& getSucNode(unsigned int k) const {return const_cast<HNotifyResponse*>(this)->getSucNode(k);}
virtual void setSucNode(unsigned int k, const NodeHandle& sucNode_var);
virtual int getSucNum() const;
virtual void setSucNum(int sucNum_var);
};
inline void doPacking(cCommBuffer *b, HNotifyResponse& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HNotifyResponse& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HNewSuccessorHintMsg extends HChordMessage
* {
* fields:
* NodeHandle pre;
* }
* </pre>
*/
class HNewSuccessorHintMsg : public HChordMessage
{
protected:
NodeHandle pre_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HNewSuccessorHintMsg&);
public:
HNewSuccessorHintMsg(const char *name=NULL, int kind=0);
HNewSuccessorHintMsg(const HNewSuccessorHintMsg& other);
virtual ~HNewSuccessorHintMsg();
HNewSuccessorHintMsg& operator=(const HNewSuccessorHintMsg& other);
virtual cPolymorphic *dup() const {return new HNewSuccessorHintMsg(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual NodeHandle& getPre();
virtual const NodeHandle& getPre() const {return const_cast<HNewSuccessorHintMsg*>(this)->getPre();}
virtual void setPre(const NodeHandle& pre_var);
};
inline void doPacking(cCommBuffer *b, HNewSuccessorHintMsg& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HNewSuccessorHintMsg& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HStabilizeCall extends HChordMessage
* {
*
* };
* </pre>
*/
class HStabilizeCall : public HChordMessage
{
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HStabilizeCall&);
public:
HStabilizeCall(const char *name=NULL, int kind=0);
HStabilizeCall(const HStabilizeCall& other);
virtual ~HStabilizeCall();
HStabilizeCall& operator=(const HStabilizeCall& other);
virtual cPolymorphic *dup() const {return new HStabilizeCall(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
};
inline void doPacking(cCommBuffer *b, HStabilizeCall& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HStabilizeCall& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HStabilizeResponse extends HChordMessage
* {
* fields:
* NodeHandle pre;
* };
* </pre>
*/
class HStabilizeResponse : public HChordMessage
{
protected:
NodeHandle pre_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HStabilizeResponse&);
public:
HStabilizeResponse(const char *name=NULL, int kind=0);
HStabilizeResponse(const HStabilizeResponse& other);
virtual ~HStabilizeResponse();
HStabilizeResponse& operator=(const HStabilizeResponse& other);
virtual cPolymorphic *dup() const {return new HStabilizeResponse(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual NodeHandle& getPre();
virtual const NodeHandle& getPre() const {return const_cast<HStabilizeResponse*>(this)->getPre();}
virtual void setPre(const NodeHandle& pre_var);
};
inline void doPacking(cCommBuffer *b, HStabilizeResponse& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HStabilizeResponse& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HFixfingersCall extends HChordMessage
* {
* fields:
* int finger;
* OverlayKey lookupKey;
* };
* </pre>
*/
class HFixfingersCall : public HChordMessage
{
protected:
int finger_var;
OverlayKey lookupKey_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HFixfingersCall&);
public:
HFixfingersCall(const char *name=NULL, int kind=0);
HFixfingersCall(const HFixfingersCall& other);
virtual ~HFixfingersCall();
HFixfingersCall& operator=(const HFixfingersCall& other);
virtual cPolymorphic *dup() const {return new HFixfingersCall(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual int getFinger() const;
virtual void setFinger(int finger_var);
virtual OverlayKey& getLookupKey();
virtual const OverlayKey& getLookupKey() const {return const_cast<HFixfingersCall*>(this)->getLookupKey();}
virtual void setLookupKey(const OverlayKey& lookupKey_var);
};
inline void doPacking(cCommBuffer *b, HFixfingersCall& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HFixfingersCall& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HFixfingersResponse extends HChordMessage
* {
* fields:
* int finger;
* NodeHandle sucNode;
* };
* </pre>
*/
class HFixfingersResponse : public HChordMessage
{
protected:
int finger_var;
NodeHandle sucNode_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HFixfingersResponse&);
public:
HFixfingersResponse(const char *name=NULL, int kind=0);
HFixfingersResponse(const HFixfingersResponse& other);
virtual ~HFixfingersResponse();
HFixfingersResponse& operator=(const HFixfingersResponse& other);
virtual cPolymorphic *dup() const {return new HFixfingersResponse(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual int getFinger() const;
virtual void setFinger(int finger_var);
virtual NodeHandle& getSucNode();
virtual const NodeHandle& getSucNode() const {return const_cast<HFixfingersResponse*>(this)->getSucNode();}
virtual void setSucNode(const NodeHandle& sucNode_var);
};
inline void doPacking(cCommBuffer *b, HFixfingersResponse& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HFixfingersResponse& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HMigrateRequest extends HChordMessage
* {
*
* };
* </pre>
*/
class HMigrateRequest : public HChordMessage
{
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HMigrateRequest&);
public:
HMigrateRequest(const char *name=NULL, int kind=0);
HMigrateRequest(const HMigrateRequest& other);
virtual ~HMigrateRequest();
HMigrateRequest& operator=(const HMigrateRequest& other);
virtual cPolymorphic *dup() const {return new HMigrateRequest(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
};
inline void doPacking(cCommBuffer *b, HMigrateRequest& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HMigrateRequest& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HMigrateResponse extends HChordMessage
* {
*
* };
* </pre>
*/
class HMigrateResponse : public HChordMessage
{
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HMigrateResponse&);
public:
HMigrateResponse(const char *name=NULL, int kind=0);
HMigrateResponse(const HMigrateResponse& other);
virtual ~HMigrateResponse();
HMigrateResponse& operator=(const HMigrateResponse& other);
virtual cPolymorphic *dup() const {return new HMigrateResponse(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
};
inline void doPacking(cCommBuffer *b, HMigrateResponse& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HMigrateResponse& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HStabilizeSuperPeerCall extends HChordMessage
* {
* fields:
* bool largest;
* NodeHandle Suc;
* };
* </pre>
*/
class HStabilizeSuperPeerCall : public HChordMessage
{
protected:
bool largest_var;
NodeHandle Suc_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HStabilizeSuperPeerCall&);
public:
HStabilizeSuperPeerCall(const char *name=NULL, int kind=0);
HStabilizeSuperPeerCall(const HStabilizeSuperPeerCall& other);
virtual ~HStabilizeSuperPeerCall();
HStabilizeSuperPeerCall& operator=(const HStabilizeSuperPeerCall& other);
virtual cPolymorphic *dup() const {return new HStabilizeSuperPeerCall(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual bool getLargest() const;
virtual void setLargest(bool largest_var);
virtual NodeHandle& getSuc();
virtual const NodeHandle& getSuc() const {return const_cast<HStabilizeSuperPeerCall*>(this)->getSuc();}
virtual void setSuc(const NodeHandle& Suc_var);
};
inline void doPacking(cCommBuffer *b, HStabilizeSuperPeerCall& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HStabilizeSuperPeerCall& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HStabilizeSuperPeerResponse extends HChordMessage
* {
* fields:
* NodeHandle strongPeers[];
* NodeHandle preNode;
* int num;
* };
* </pre>
*/
class HStabilizeSuperPeerResponse : public HChordMessage
{
protected:
NodeHandle *strongPeers_var; // array ptr
unsigned int strongPeers_arraysize;
NodeHandle preNode_var;
int num_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HStabilizeSuperPeerResponse&);
public:
HStabilizeSuperPeerResponse(const char *name=NULL, int kind=0);
HStabilizeSuperPeerResponse(const HStabilizeSuperPeerResponse& other);
virtual ~HStabilizeSuperPeerResponse();
HStabilizeSuperPeerResponse& operator=(const HStabilizeSuperPeerResponse& other);
virtual cPolymorphic *dup() const {return new HStabilizeSuperPeerResponse(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual void setStrongPeersArraySize(unsigned int size);
virtual unsigned int getStrongPeersArraySize() const;
virtual NodeHandle& getStrongPeers(unsigned int k);
virtual const NodeHandle& getStrongPeers(unsigned int k) const {return const_cast<HStabilizeSuperPeerResponse*>(this)->getStrongPeers(k);}
virtual void setStrongPeers(unsigned int k, const NodeHandle& strongPeers_var);
virtual NodeHandle& getPreNode();
virtual const NodeHandle& getPreNode() const {return const_cast<HStabilizeSuperPeerResponse*>(this)->getPreNode();}
virtual void setPreNode(const NodeHandle& preNode_var);
virtual int getNum() const;
virtual void setNum(int num_var);
};
inline void doPacking(cCommBuffer *b, HStabilizeSuperPeerResponse& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HStabilizeSuperPeerResponse& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HLargestNodeRequest extends HChordMessage
* {
*
* };
* </pre>
*/
class HLargestNodeRequest : public HChordMessage
{
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HLargestNodeRequest&);
public:
HLargestNodeRequest(const char *name=NULL, int kind=0);
HLargestNodeRequest(const HLargestNodeRequest& other);
virtual ~HLargestNodeRequest();
HLargestNodeRequest& operator=(const HLargestNodeRequest& other);
virtual cPolymorphic *dup() const {return new HLargestNodeRequest(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
};
inline void doPacking(cCommBuffer *b, HLargestNodeRequest& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HLargestNodeRequest& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HLargestNodeResponse extends HChordMessage
* {
* fields:
* NodeHandle node;
* NodeHandle suc;
* };
* </pre>
*/
class HLargestNodeResponse : public HChordMessage
{
protected:
NodeHandle node_var;
NodeHandle suc_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HLargestNodeResponse&);
public:
HLargestNodeResponse(const char *name=NULL, int kind=0);
HLargestNodeResponse(const HLargestNodeResponse& other);
virtual ~HLargestNodeResponse();
HLargestNodeResponse& operator=(const HLargestNodeResponse& other);
virtual cPolymorphic *dup() const {return new HLargestNodeResponse(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual NodeHandle& getNode();
virtual const NodeHandle& getNode() const {return const_cast<HLargestNodeResponse*>(this)->getNode();}
virtual void setNode(const NodeHandle& node_var);
virtual NodeHandle& getSuc();
virtual const NodeHandle& getSuc() const {return const_cast<HLargestNodeResponse*>(this)->getSuc();}
virtual void setSuc(const NodeHandle& suc_var);
};
inline void doPacking(cCommBuffer *b, HLargestNodeResponse& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HLargestNodeResponse& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HChangePredecessor extends HChordMessage
* {
* fields:
* NodeHandle newPre;
* };
* </pre>
*/
class HChangePredecessor : public HChordMessage
{
protected:
NodeHandle newPre_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HChangePredecessor&);
public:
HChangePredecessor(const char *name=NULL, int kind=0);
HChangePredecessor(const HChangePredecessor& other);
virtual ~HChangePredecessor();
HChangePredecessor& operator=(const HChangePredecessor& other);
virtual cPolymorphic *dup() const {return new HChangePredecessor(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual NodeHandle& getNewPre();
virtual const NodeHandle& getNewPre() const {return const_cast<HChangePredecessor*>(this)->getNewPre();}
virtual void setNewPre(const NodeHandle& newPre_var);
};
inline void doPacking(cCommBuffer *b, HChangePredecessor& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HChangePredecessor& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HChangeSuccessorRequest extends HChordMessage
* {
* fields:
* NodeHandle newSuc;
* NodeHandle newPre;
* }
* </pre>
*/
class HChangeSuccessorRequest : public HChordMessage
{
protected:
NodeHandle newSuc_var;
NodeHandle newPre_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HChangeSuccessorRequest&);
public:
HChangeSuccessorRequest(const char *name=NULL, int kind=0);
HChangeSuccessorRequest(const HChangeSuccessorRequest& other);
virtual ~HChangeSuccessorRequest();
HChangeSuccessorRequest& operator=(const HChangeSuccessorRequest& other);
virtual cPolymorphic *dup() const {return new HChangeSuccessorRequest(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual NodeHandle& getNewSuc();
virtual const NodeHandle& getNewSuc() const {return const_cast<HChangeSuccessorRequest*>(this)->getNewSuc();}
virtual void setNewSuc(const NodeHandle& newSuc_var);
virtual NodeHandle& getNewPre();
virtual const NodeHandle& getNewPre() const {return const_cast<HChangeSuccessorRequest*>(this)->getNewPre();}
virtual void setNewPre(const NodeHandle& newPre_var);
};
inline void doPacking(cCommBuffer *b, HChangeSuccessorRequest& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HChangeSuccessorRequest& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message HChangeSuccessorResponse extends HChordMessage
* {
* fields:
* NodeHandle newSuc;
* NodeHandle newPre;
* }
* </pre>
*/
class HChangeSuccessorResponse : public HChordMessage
{
protected:
NodeHandle newSuc_var;
NodeHandle newPre_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const HChangeSuccessorResponse&);
public:
HChangeSuccessorResponse(const char *name=NULL, int kind=0);
HChangeSuccessorResponse(const HChangeSuccessorResponse& other);
virtual ~HChangeSuccessorResponse();
HChangeSuccessorResponse& operator=(const HChangeSuccessorResponse& other);
virtual cPolymorphic *dup() const {return new HChangeSuccessorResponse(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual NodeHandle& getNewSuc();
virtual const NodeHandle& getNewSuc() const {return const_cast<HChangeSuccessorResponse*>(this)->getNewSuc();}
virtual void setNewSuc(const NodeHandle& newSuc_var);
virtual NodeHandle& getNewPre();
virtual const NodeHandle& getNewPre() const {return const_cast<HChangeSuccessorResponse*>(this)->getNewPre();}
virtual void setNewPre(const NodeHandle& newPre_var);
};
inline void doPacking(cCommBuffer *b, HChangeSuccessorResponse& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, HChangeSuccessorResponse& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message UHJoinCall extends HJoinCall
* {
* fields:
* NodeHandle LowerNewSuc;
*
* };
* </pre>
*/
class UHJoinCall : public HJoinCall
{
protected:
NodeHandle LowerNewSuc_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const UHJoinCall&);
public:
UHJoinCall(const char *name=NULL, int kind=0);
UHJoinCall(const UHJoinCall& other);
virtual ~UHJoinCall();
UHJoinCall& operator=(const UHJoinCall& other);
virtual cPolymorphic *dup() const {return new UHJoinCall(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual NodeHandle& getLowerNewSuc();
virtual const NodeHandle& getLowerNewSuc() const {return const_cast<UHJoinCall*>(this)->getLowerNewSuc();}
virtual void setLowerNewSuc(const NodeHandle& LowerNewSuc_var);
};
inline void doPacking(cCommBuffer *b, UHJoinCall& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, UHJoinCall& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message UHJoinResponse extends HJoinResponse
* {
* fields:
* NodeHandle LowerNewSuc;
*
* };
* </pre>
*/
class UHJoinResponse : public HJoinResponse
{
protected:
NodeHandle LowerNewSuc_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const UHJoinResponse&);
public:
UHJoinResponse(const char *name=NULL, int kind=0);
UHJoinResponse(const UHJoinResponse& other);
virtual ~UHJoinResponse();
UHJoinResponse& operator=(const UHJoinResponse& other);
virtual cPolymorphic *dup() const {return new UHJoinResponse(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
virtual NodeHandle& getLowerNewSuc();
virtual const NodeHandle& getLowerNewSuc() const {return const_cast<UHJoinResponse*>(this)->getLowerNewSuc();}
virtual void setLowerNewSuc(const NodeHandle& LowerNewSuc_var);
};
inline void doPacking(cCommBuffer *b, UHJoinResponse& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, UHJoinResponse& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message UHNotifyCall extends HNotifyCall
* {
*
* };
* </pre>
*/
class UHNotifyCall : public HNotifyCall
{
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const UHNotifyCall&);
public:
UHNotifyCall(const char *name=NULL, int kind=0);
UHNotifyCall(const UHNotifyCall& other);
virtual ~UHNotifyCall();
UHNotifyCall& operator=(const UHNotifyCall& other);
virtual cPolymorphic *dup() const {return new UHNotifyCall(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
};
inline void doPacking(cCommBuffer *b, UHNotifyCall& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, UHNotifyCall& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message UHNotifyResponse extends HNotifyResponse
* {
*
* };
* </pre>
*/
class UHNotifyResponse : public HNotifyResponse
{
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const UHNotifyResponse&);
public:
UHNotifyResponse(const char *name=NULL, int kind=0);
UHNotifyResponse(const UHNotifyResponse& other);
virtual ~UHNotifyResponse();
UHNotifyResponse& operator=(const UHNotifyResponse& other);
virtual cPolymorphic *dup() const {return new UHNotifyResponse(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
};
inline void doPacking(cCommBuffer *b, UHNotifyResponse& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, UHNotifyResponse& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message UHStabilizeCall extends HStabilizeCall
* {
*
* };
* </pre>
*/
class UHStabilizeCall : public HStabilizeCall
{
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const UHStabilizeCall&);
public:
UHStabilizeCall(const char *name=NULL, int kind=0);
UHStabilizeCall(const UHStabilizeCall& other);
virtual ~UHStabilizeCall();
UHStabilizeCall& operator=(const UHStabilizeCall& other);
virtual cPolymorphic *dup() const {return new UHStabilizeCall(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
};
inline void doPacking(cCommBuffer *b, UHStabilizeCall& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, UHStabilizeCall& obj) {obj.netUnpack(b);}
/**
* Class generated from <tt>HChordMessage.msg</tt> by opp_msgc.
* <pre>
* message UHStabilizeResponse extends HStabilizeResponse
* {
*
* };
* </pre>
*/
class UHStabilizeResponse : public HStabilizeResponse
{
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const UHStabilizeResponse&);
public:
UHStabilizeResponse(const char *name=NULL, int kind=0);
UHStabilizeResponse(const UHStabilizeResponse& other);
virtual ~UHStabilizeResponse();
UHStabilizeResponse& operator=(const UHStabilizeResponse& other);
virtual cPolymorphic *dup() const {return new UHStabilizeResponse(*this);}
virtual void netPack(cCommBuffer *b);
virtual void netUnpack(cCommBuffer *b);
// field getter/setter methods
};