|
Algorithm 4 ProductionLine task |
-
1:
Require: Define the source code path of the smart contract:
-
2:
Ensure: All the results of the implementation of the rules:
-
3:
▷ Deploy the smart contract
-
4:
▷ Call the "setUser" operation to create a user on the blockchain
-
5:
-
6:
▷ Call the "setUser" operation to create a device on the blockchain
-
7:
-
8:
▷ Add devices to the smart contract
-
9:
-
10:
▷ Initialize the status of the devices on the blockchain
-
11:
-
12:
Define the output sets resulting from the execution of rule1:
-
13:
▷ Execute rules detection
-
14:
Define the output sets resulting from the execution of rule2:
-
15:
-
16:
return All the results of the implementation of the rules:
|