|
Algorithm 5 Send a BSM |
-
1:
procedureShould_I_Send_a_BSM()
-
2:
if ( has a Car_type of “role vehicles” or “public transport vehicles”) then
-
3:
Send_the_BSM_Message(); ▹ these two kinds of vehicles always broadcast
-
4:
else if ((the number is ≥) AND (
OR
) AND (
OR
)) then
-
5:
Delete_the_BSM_Message();
-
6:
if ( == 0) then
-
7:
=0;
-
8:
else
-
9:
= 1 - / ;
-
10:
end if
-
11:
else
-
12:
Send_the_BSM_Message();
-
13:
end if
-
14:
; ▹ a reinitialization for the next timeslot
-
15:
; ▹ a reinitialization for the next timeslot
-
16:
end procedure
|