Newer
Older
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
//
// Generated file, do not edit! Created by nedtool 5.6 from AEMessage.msg.
//
#ifndef __AEMESSAGE_M_H
#define __AEMESSAGE_M_H
#if defined(__clang__)
# pragma clang diagnostic ignored "-Wreserved-id-macro"
#endif
#include <omnetpp.h>
// nedtool version check
#define MSGC_VERSION 0x0506
#if (MSGC_VERSION!=OMNETPP_VERSION)
# error Version mismatch! Probably this file was generated by an earlier version of nedtool: 'make clean' should help.
#endif
/**
* Class generated from <tt>AEMessage.msg:2</tt> by nedtool.
* <pre>
* message AEMessage
* {
* int queryID;
* int URI; // this is the unique identifer of the AE, sending the message
* string feature_type; // this is the feature type of the resource we are looking for; in this version of protocol
* // we can just query one feature type per QUERY
* int data; // this is the value concerning the resource we are looking for; Actually used in REGISTRATION.
* // TO DO it will be used in UPDATE, PUT, GET, REPLY.
* int op_code; // this can be
* // REGISTRATION (when AE register to CSE), value =0
* // UPDATE (when AE update every x minutes the CSE about the update in its value in local Database); value =1
* // CANCELLATION (when AE wants to cancel the Resource inside CSE local Database) value =2
* // QUERY (when AE wants to ask for resource), value =3
* // PUT (CSE to AE: CSE gives some directive to the corresponding AE) value =4
* // GET (CSE to AE: CSE ask some value from the corresponding AE) value =5
* // REPLY (AE to CSE: AE reply to the CSE with a value normally in data) value =6
* // RESPONSE (AE to CSE: AE reply to the CSE with a value normally in data) value =7
* // NOTIFY between CSE to notify modifcations in route tables value =8
*
* int maxHop; // used for a discovery query. Number of hops for the search
*
* }
* </pre>
*/
class AEMessage : public ::omnetpp::cMessage
{
protected:
int queryID;
int URI;
::omnetpp::opp_string feature_type;
int data;
int op_code;
int maxHop;
private:
void copy(const AEMessage& other);
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const AEMessage&);
public:
AEMessage(const char *name=nullptr, short kind=0);
AEMessage(const AEMessage& other);
virtual ~AEMessage();
AEMessage& operator=(const AEMessage& other);
virtual AEMessage *dup() const override {return new AEMessage(*this);}
virtual void parsimPack(omnetpp::cCommBuffer *b) const override;
virtual void parsimUnpack(omnetpp::cCommBuffer *b) override;
// field getter/setter methods
virtual int getQueryID() const;
virtual void setQueryID(int queryID);
virtual int getURI() const;
virtual void setURI(int URI);
virtual const char * getFeature_type() const;
virtual void setFeature_type(const char * feature_type);
virtual int getData() const;
virtual void setData(int data);
virtual int getOp_code() const;
virtual void setOp_code(int op_code);
virtual int getMaxHop() const;
virtual void setMaxHop(int maxHop);
};
inline void doParsimPacking(omnetpp::cCommBuffer *b, const AEMessage& obj) {obj.parsimPack(b);}
inline void doParsimUnpacking(omnetpp::cCommBuffer *b, AEMessage& obj) {obj.parsimUnpack(b);}
#endif // ifndef __AEMESSAGE_M_H