Research Article
A Service-Based Method for Multiple Sensor Streams Aggregation in Fog Computing
Algorithm 2
Updating the routing targets.
while receiving collaborate result | extract source service ; | if the result is a composed event | extract the valid routing path ; | .weight = .weight+ ; | else | extract the invalid routing path ; | .weight = .weight- ; | if .weight< | remove from ; | end if | end if | for each in | .weight = .weight+; | if .weight ≥ | add in ; | end if | end for | end while |
|