Figure 11. Structure diagram of experiment progress
As shown in the figure, Thread 1 simulates data collection function of plant/station, implementing real-time data generation through the program. Thread 2 creates a blockchain data structure calledBlockChain , and fills real-time data generated by Thread 1 into the structure. Thread 3 implements P-PoW algorithm, and Thread 2 calls Thread 3 to realize proof of work of BlockChain . Thread 4 is responsible for implementing human-machine UI interaction, and it also communicates with Thread 2 to achieve timely reading and real-time summoning of block data. Thread 1 to 3 together realize the data collection, local blockchain generation, and storage functions of plant/station, while Thread 4 plays the role of local dispatch center in Figure 9.