Research Article

Modeling of Location Estimation for Object Tracking in WSN

Algorithm 2

Algorithm of the proposed location estimation model.
(1) //When Object O into the Sensing Filed
(2) //The set of Sensor nodes   detect Object
(3) //The set of neighbor nodes   detect Object
(4) for ( ; ; ++)
(5)  if
(6)   Send enlarge(ID) to one-hop neighbors;
(7)   end if
(8)  Broadcast notice(ID);
(9)  Broadcast contend(ID, dist(sink, ));
(10) if dist(sink, ) < dist(sink, ) then
(11)   .State = give up;
(12) else
(13)   .State = cluster;
(14) end if
(15) if .State = cluster then
(16)  Send cluster(ID) to ;
(17) else if dist , ) <
(18)  Send Mposition(Cluster, ID) to Cluster;
(19) else
(20)  Send Nposition(Cluster, ID) to Cluster;
(21) end if
(22) if .State = cluster then
(23)  Send all information to sink;
(24) end if
(25) end for