|
Algorithm 1 Time-based synchronization for raw-sensory data acquisition. |
|
Require:
: n is the total number of data sources |
|
Ensure:
: queue for time-synchronized data packets |
| 1: procedure Sync() |
| 2:
|
| 3: while
do
|
| 4:
▹ Complete-sync execution |
| 5:
|
| 6: if
then
|
| 7: if
then ▹ Incomplete-sync: Eager execution |
| 8:
|
| 9: end if
|
| 10: while
do ▹ Incomplete-sync: Rendezvous execution |
| 11:
|
| 12: if
then
|
| 13:
|
| 14: end if
|
| 15: end while
|
| 16:
|
| 17: end if
|
| 18: end while
|
| 19:
|
| 20:
|
| 21: end procedure
|