coverage.h

来自「ns-2 code for coverage and connectivity 」· C头文件 代码 · 共 44 行

H
44
字号
#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 + =
减小字号Ctrl + -
显示快捷键?