|
Algorithm 3 Path-planning algorithm in the actuator network. |
-
1:
= runSmartDataProcessing( D) ▹ Get PSL with smart data processing
-
2:
List(empty) ▹ Initialize visited list
-
3:
= List(empty) ▹ Initialize actuator correlation value list
-
4:
for j = 1 to do ▹ Calculate for all actuators
-
5:
-
6:
.insert()
-
7:
end for
-
8:
if data ferry then
-
9:
while
do ▹ Run until DaaG visits every actuator
-
10:
= getActuatorToCommunicate() ▹ Get with highest in
-
11:
getPos()
-
12:
.insert() ▹ Put into VL
-
13:
moveDaaGTo
-
14:
end while
-
15:
else if multi-hop then
-
16:
= getActuatorToCommunicate()
-
17:
getPosition()
-
18:
= getNearestSensorFrom()
-
19:
getPosition()
-
20:
for k = 1 to
do
-
21:
moveDaaGTo
-
22:
end for
-
23:
end if
|