Skip to main content
. 2021 May 26;21(11):3691. doi: 10.3390/s21113691
Algorithm 1 Job Parsing Algorithm
  •   1:

    Find input job                   ▹ Job with no input, only output ports

  •   2:

    Process_lvl = 1             ▹jobs which process input data have process_lvl = 0

  •   3:

    whilejob to process do

  •   4:

         Cluster processed jobs

  •   5:

         Cluster unprocessed jobs

  •   6:

         for job unprocessed cluster do

  •   7:

       if input_ports of job found in output_ports from processed cluster then

  •   8:

         Add Process_lvl to job

  •   9:

       end if

  •  10:

         end for

  •  11:

         Increment Process_lvl

  •  12:

    end while

  •  13:

    Set unprocessed jobs as inactive

  •  14:

    Sort jobs by Process_lvl ascending

  •  15:

    for Process_lvl in jobs do

  •  16:

         if duplicate jobthen            ▹job name is not considered in this verification

  •  17:

       Set job as inactive

  •  18:

         end if

  •  19:

    end for

  •  20:

    Write active jobs to JSON file