Skip to main content
. 2019 Mar 9;19(5):1208. doi: 10.3390/s19051208
Algorithm 3: Network-switching algorithm from OCC to BLE.
  1. O2B_Handover ()

  2. Initialization: Communication with camera is in progress;

  3. Begin

  4. ifdα,β is changed then

  5.   if Γ < Γcrit then

  6.    Initiation of neighboring cameras;

  7.    if ξ > 1 then

  8.     for j = 1; j < ξ

  9.       if λ(1) > λ(j) then

  10.         Accept BLE;

  11.         Set λ(j) = λ(1);

  12.         Set j = j + 1;

  13.       else if Γ(j) > Γcrit

  14.         Accept Camera (j);

  15.         Set λ(j) = λ(1);

  16.         Set j = j + 1;

  17.       else

  18.         Accept BLE;

  19.         Set j = j + 1;

  20.       end if

  21.     end for

  22.   else

  23.     Accept BLE;

  24.   end if

  25.    else

  26.   Continue communication with Camera (1);

  27.    end if

  28. else

  29.   Continue communication with Camera (1);

  30. end if

  31. End