文件名称:LEACH协议OMNET++仿真源代码
文件大小:182KB
文件格式:RAR
更新时间:2012-05-28 07:28:02
LEACH OMNET++ 仿真
LEACH协议OMNET++仿真源代码 The code contains two directories: one is a distributed LEACH version, the other one a centralized where the base station (assumed to know everything) chooses the optimal cluster head. The "optimal" is in the code approximated via rules that include some kind of geopgraphical criteria among others. In solar.h you choose if you want to have solar turned on or not and also set some other parameters. To compile on Linux: opp_makemake -f -N make On Windows with Visual C++: opp_nmakemake -f -N nmake -f Makefile.vc