⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 coverage.h

📁 ns-2 code for coverage and connectivity protocol for wireless sensor network
💻 H
字号:
#ifndef COVERAGE_H#define COVERAGE_Htypedef struct {  double x;  double y;  double z;} pos_t;// The structure for two intersecting points of two circles// Don't change the sequence of members so that we // can convert the pointer to pos_t*typedef struct{  double x;  double y;  double z;  // The IDs of the nodes whose circles intersect  int node1;  int node2;  // Two intersection points   int msr;} intersec_t;int cover_debug=0;int SideLenX = 1200;int SideLenY = 400;int MSR = 1;int Rs = 50;int withdraw_window = 6;int announce_window = 10;// The strategies we use to calculate the contributiontypedef enum {RANDOM=0,DIST_SCORE} contrib_strategy_t;// The strategy we are going to usecontrib_strategy_t coverage_strategy = DIST_SCORE;#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -