| Algorithm 2 Working mode. |
| Require: the scheduling results and |
| Ensure: all and |
| 1: all and are initiated as idle mode; |
| 2: for do |
| 3: ; are the sender and receiver of ; |
| 4: if then |
| 5: ; |
| 6: ; |
| 7: else |
| 8: ; |
| 9: ; |
| 10: return all and ; |
| Algorithm 2 Working mode. |
| Require: the scheduling results and |
| Ensure: all and |
| 1: all and are initiated as idle mode; |
| 2: for do |
| 3: ; are the sender and receiver of ; |
| 4: if then |
| 5: ; |
| 6: ; |
| 7: else |
| 8: ; |
| 9: ; |
| 10: return all and ; |