|
Algorithm 1 Job Parsing Algorithm |
-
1:
Find input ▹ Job with no input, only output
-
2:
Process_lvl = 1 ▹ which process input data have process_lvl = 0
-
3:
while to process do
-
4:
Cluster processed
-
5:
Cluster unprocessed
-
6:
for unprocessed cluster do
-
7:
if of found in from processed cluster then
-
8:
Add Process_lvl to
-
9:
end if
-
10:
end for
-
11:
Increment Process_lvl
-
12:
end while
-
13:
Set unprocessed as inactive
-
14:
Sort by Process_lvl ascending
-
15:
for Process_lvl in do
-
16:
if duplicate then ▹ name is not considered in this verification
-
17:
Set as inactive
-
18:
end if
-
19:
end for
-
20:
Write active to JSON file
|