Research Article
An MSCN-Based Virtual Computing Cell-Oriented BSM Dissemination Mechanism
Table 3
Explanation for Algorithm
3 variables and functions.
| Variable/function | Explanation |
| Density | The vehicle density | calculate_density ( ) | Calculate road vehicle density | Allocation_timeslots (X) | RSU preferentially allocates time slots to nodes in MSCN set X | getCH (X) | Find the cluster head in X | CH_id | The node ID of CH | Controlright_handout ( ) | CH unicasts control right hand out message to RSU | poweradjust (X) | Adjust power size of vehicle X | getmscnid (X) | Obtain the MSCN ID of the area where the X vehicle is located | Mscnid | The node ID of MSCN | getid (X) | Get node ID of node X | scheduler_flag (X, Y) | Set whether node X is used as a resource scheduler by the Boolean value Y | controlright_confirm () | X sends control right takeover confirmation message to RSU | scheduler (X) | Set X as the resource scheduler’s node ID |
|
|