Research Article

Intelligent Traffic Management System Based on the Internet of Vehicles (IoV)

Algorithm 3

Handle emergency vehicle.
  To handle the situation when there is an emergency vehicle on a closed road
Inputs:
  : the closed road that has the emergency vehicle
  : the currently open road
(1)  Send a warning message to all vehicles on the open road that the road will be closed now due to the existence of an emergency vehicle on another road
(2)  Wait for the transition time,
(3)  Close the open road,
(4)  Open the road having the emergency vehicle
(5)  Keep that road open until the emergency vehicle sends a message that it has crossed the intersection (overriding the threshold)
(6)  Wait for the transition time,
End of “Handle Emergency Vehicle” algorithm.