Sink Node: |
1. Broadcast global schedule; |
2. Broadcast mining parameters ( , λ, min_sup, sim_sup); |
3. For each received activity set ASTi; |
4. Insert (ASTi, TD); |
5. End for. |
Sensor Node: |
1. Upon receiving mining parameters and node schedule; |
2. Slot number = 1; |
3. Time = current time; |
4. While (current time < time + Tprof); |
5. If (current time < time + (slot number * λ)); |
6. If there is a detected event |
a. Let; |
b. Set; |
c. Else; |
d. Slot number = slot number + 1; |
e. End if; |
7. End while; |
8. For each target within the sensor’s coverage; |
9. AS( ); |
10. If cardinality; |
11. If |
a. Send (sensor id, , , AS( )) to the sink; |
b. Else; |
c. Send (sensor id, , AS( )); |
d. End if; |
12. End if; |
13. End for. |