//
// Generated file, do not edit! Created by nedtool 5.1 from cl_msg.msg.
//
#if defined(__clang__)
# pragma clang diagnostic ignored "-Wreserved-id-macro"
#endif
#ifndef __CL_MSG_M_H
#define __CL_MSG_M_H
#include <omnetpp.h>
// nedtool version check
#define MSGC_VERSION 0x0501
#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>cl_msg.msg:5</tt> by nedtool.
* <pre>
* //
* // Base class for message types
* //
* message ClusterMessage
* {
* string displayString = "i=msg/package_s,kind";
* int proto;
* int srcAddress;
* int destAddress;
* }
* </pre>
*/
class ClusterMessage : public ::omnetpp::cMessage
{
protected:
::omnetpp::opp_string displayString;
int proto;
int srcAddress;
int destAddress;
private:
void copy(const ClusterMessage& other);
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const ClusterMessage&);
public:
ClusterMessage(const char *name=nullptr, short kind=0);
ClusterMessage(const ClusterMessage& other);
virtual ~ClusterMessage();
ClusterMessage& operator=(const ClusterMessage& other);
virtual ClusterMessage *dup() const override {return new ClusterMessage(*this);}
virtual void parsimPack(omnetpp::cCommBuffer *b) const override;
virtual void parsimUnpack(omnetpp::cCommBuffer *b) override;
// field getter/setter methods
virtual const char * getDisplayString() const;
virtual void setDisplayString(const char * displayString);
virtual int getProto() const;
virtual void setProto(int proto);
virtual int getSrcAddress() const;
virtual void setSrcAddress(int srcAddress);
virtual int getDestAddress() const;
virtual void setDestAddress(int destAddress);
};
inline void doParsimPacking(omnetpp::cCommBuffer *b, const ClusterMessage& obj) {obj.parsimPack(b);}
inline void doParsimUnpacking(omnetpp::cCommBuffer *b, ClusterMessage& obj) {obj.parsimUnpack(b);}
/**
* Class generated from <tt>cl_msg.msg:16</tt> by nedtool.
* <pre>
* //
* // Status sent from Node to BS
* //
* message Status2BSMessage extends ClusterMessage
* {
* double energy;
* int status;
* int cluster;
* double xpos;
* double ypos;
* }
* </pre>
*/
class Status2BSMessage : public ::ClusterMessage
{
protected:
double energy;
int status;
int cluster;
double xpos;
double ypos;
private:
void copy(const Status2BSMessage& other);
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const Status2BSMessage&);
public:
Status2BSMessage(const char *name=nullptr, short kind=0);
Status2BSMessage(const Status2BSMessage& other);
virtual ~Status2BSMessage();
Status2BSMessage& operator=(const Status2BSMessage& other);
virtual Status2BSMessage *dup() const override {return new Status2BSMessage(*this);}
virtual void parsimPack(omnetpp::cCommBuffer *b) const override;
virtual void parsimUnpack(omnetpp::cCommBuffer *b) override;
// field getter/setter methods
virtual double getEnergy() const;
virtual void setEnergy(double energy);
virtual int getStatus() const;
virtual void setStatus(int status);
virtual int getCluster() const;
virtual void setCluster(int cluster);
virtual double getXpos() const;
virtual void setXpos(double xpos);
virtual double getYpos() const;
virtual void setYpos(double ypos);
};
inline void doParsimPacking(omnetpp::cCommBuffer *b, const Status2BSMessage& obj) {obj.parsimPack(b);}
inline void doParsimUnpacking(omnetpp::cCommBuffer *b, Status2BSMessage& obj) {obj.parsimUnpack(b);}
/**
* Class generated from <tt>cl_msg.msg:28</tt> by nedtool.
* <pre>
* //
* // BS sends this message to anounce cluster heads to nodes
* //
* message ClusterHeadMessage extends ClusterMessage
* {
* int cHead[103];
* }
* </pre>
*/
class ClusterHeadMessage : public ::ClusterMessage
{
protected:
int cHead[103];
private:
void copy(const ClusterHeadMessage& other);
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const ClusterHeadMessage&);
public:
ClusterHeadMessage(const char *name=nullptr, short kind=0);
ClusterHeadMessage(const ClusterHeadMessage& other);
virtual ~ClusterHeadMessage();
ClusterHeadMessage& operator=(const ClusterHeadMessage& other);
virtual ClusterHeadMessage *dup() const override {return new ClusterHeadMessage(*this);}
virtual void parsimPack(omnetpp::cCommBuffer *b) const override;
virtual void parsimUnpack(omnetpp::cCommBuffer *b) override;
// field getter/setter methods
virtual unsigned int getCHeadArraySize() const;
virtual int getCHead(unsigned int k) const;
virtual void setCHead(unsigned int k, int cHead);
};
inline void doParsimPacking(omnetpp::cCommBuffer *b, const ClusterHeadMessage& obj) {obj.parsimPack(b);}
inline void doParsimUnpacking(omnetpp::cCommBuffer *b, ClusterHeadMessage& obj) {obj.parsimUnpack(b);}
/**
* Class generated from <tt>cl_msg.msg:36</tt> by nedtool.
* <pre>
* //
* // TDMA message
* //
* message TDMAMessage extends ClusterMessage
* {
* int frames;
* int frameTime;
* int tdma[103];
* }
* </pre>
*/
class TDMAMessage : public ::ClusterMessage
{
protected:
int frames;
int frameTime;
int tdma[103];
private:
void copy(const TDMAMessage& other);
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const TDMAMessage&);
public:
TDMAMessage(const char *name=nullptr, short kind=0);
TDMAMessage(const TDMAMessage& other);
virtual ~TDMAMessage();
TDMAMessage& operator=(const TDMAMessage& other);
virtual TDMAMessage *dup() const override {return new TDMAMessage(*this);}
virtual void parsimPack(omnetpp::cCommBuffer *b) const override;
virtual void parsimUnpack(omnetpp::cCommBuffer *b) override;
// field getter/setter methods
virtual int getFrames() const;
virtual void setFrames(int frames);
virtual int getFrameTime() const;
virtual void setFrameTime(int frameTime);
virtual unsigned int getTdmaArraySize() const;
virtual int getTdma(unsigned int k) const;
virtual void setTdma(unsigned int k, int tdma);
};
inline void doParsimPacking(omnetpp::cCommBuffer *b, const TDMAMessage& obj) {obj.parsimPack(b);}
inline void doParsimUnpacking(omnetpp::cCommBuffer *b, TDMAMessage& obj) {obj.parsimUnpack(b);}
/**
* Class generated from <tt>cl_msg.msg:46</tt> by nedtool.
* <pre>
* //
* // Data sent nodes to cluster heads
* //
* message DataToCHMessage extends ClusterMessage
* {
* int data;
* }
* </pre>
*/
class DataToCHMessage : public ::ClusterMessage
{
protected:
int data;
private:
void copy(const DataToCHMessage& other);
protected:
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const DataToCHMessage&);
public:
DataToCHMessage(const char *name=nullptr, short kind=0);
DataToCHMessage(const DataToCHMessage& other);
virtual ~DataToCHMessage();
DataToCHMessage& operator=(const DataToCHMessage& other);
virtual DataToCHMessage *dup() const override {return new DataToCHMessage(*this);}
virtual void parsimPack(omnetpp::cCommBuffer *b) const override;
virtual void parsimUnpack(omnetpp::cCommBuffer *b) override;
// field getter/setter methods
virtual int getData() const;
virtual void setData(int data
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/EXE.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/EXE.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 29 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
- AshleyK2023-07-25这个文件对于研究Leach协议的人来说是非常有价值的,可以帮助他们节省大量的时间和精力。
- 林祈墨2023-07-25这个文件给出了清晰明了的示例,让人能够轻松地进行仿真实验。
- Xhinking2023-07-25作者在这个文件中提供了一些有关Leach协议的实用技巧和经验,对于初学者来说是很有帮助的。
- 基鑫阁2023-07-25这个文件提供了一个很好的Leach协议仿真代码,让人可以快速理解和掌握该协议。
- ask_ai_app2023-07-25该文件的语言朴实无华,易于理解,即使对于不太熟悉OMNeT的人来说也能够快速上手。
![avatar](https://profile-avatar.csdnimg.cn/01649cf3abac46c69e068b097f203e15_shamooxiaoz.jpg!1)
KairChen
- 粉丝: 2
- 资源: 1
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)