Research Article
Design of Signal Timing Plan for Urban Signalized Networks including Left Turn Prohibition
Algorithm 2
Calculation of green duration for each stage.
Require: | Ensure: | (1)function CALCULATEGREENS | (2) | (3) | (4)repeat | (5) | (6)for normal stages do | (7) (18) | (8)if then | (9) | (10) | (11) | (12) | (13)end if | (14)end for | (15)for stages sharing movements and their related stages do | (16) (18) | (17) (18) | (18)if then | (19) | (20)end if | (21)end for | (22)for stages sharing movements and their related stages do | (23)if and then | (24) | (25) | (26) | (27)else | (28) | (29)end if | (30)end for | (31)until | (32)for all stages do | (33) | (34)end for | (35)return | (36)end function |
|