Research Article
Event-Sensitive Network: A Construction Algorithm of Agricultural Sensor Network Driven by Environmental Change
Algorithm 1
The 3D sensor deployment algorithm.
| Algorithm 3D_Deployment(, Location_). | | //Location_is the node S in the initial deployment. Coordinates on the top surface | | move to random depth using (formula (4)) | | broadcast Location_ | | wait for time T | | if isOverlap = = true then | | wait for time | | make an small arbitrary move | | broadcast Location_ | | endif | | broadcast Energy_ | | execute Clusteringusing (formula (6)) | | broadcast Envent_ | | Counter = O | | while counter≤do | | calculate total forceusing (formula (10)) | | if≥then | | move to new position | | broadcast Location_s, | | broadcast Event_s, | | end if | | counter ++ | | wait for time | | end while |
|