资 源 简 介
This project tries to simulate the LEACH algorithm on omnet++. The code that is given is very basic and does not include all features of the algorithm.
Platform
This code is written for OMNET 3.x on Linux (FWIW). It will not work in Omnet 4.x (The current versions). However, the code can be migrated to 4.x versions.
See This Document
Usage
The code can be compiled like any other omnet code.
NOTE:The following steps are for Omnet 3.x. Steps required to the run the code may have changed in Omnet 4.x
Extract the files and change to the newly created directory.
Resolve dependencies using command
$ opp_makemake –f –N
The above step generates a Makefile which can be compiled using
$ make
The above command compiles and links the files generated in step 1
文 件 列 表
leach
cl_msg_m.cc
.tkenvrc
new_archive.tar.gz
nodebase.o
bs_n.cc~
node.cc~
node_n.cc
nodebase.h
nodebase.h~
node.ned
data.dat
cl_msg_m.h
nodebase.cc~
data.dat~
cl_msg.msg
node_n.cc~
nodebase.cc
direct.dat
improve.dat~
node.o
leach.ned
bs.o
Makefile
bs.ned
bs.h~
solar.h~
leach_n.cc~
omnetpp.ini~
bs.cc~
bs.cc
leach.ned~
omnetpp.ini
leach.h~
leach_n.cc
leach
bs_n.cc
node.h
improve.dat
node.ned~
leach.h
.tstamp
bs.h
bs.ned~
node.cc
cl_msg.msg~
node.h~
cl_msg_m.o