The name is absent



CHAPTER 4. CODING PROCESS

22


Sotl-request control

Sotl-phase control

Sotl-platoon control

Marching control is a simple method. All intersections will have green lights
in the same direction. Intersections have a phase which counts time steps. When
the phase reaches a period value
p, the phase is reset to zero. When phi has the
value 0, red lights turn green after the clearence time has passed, and green lights
turn red. “Marching” intersections have equal phases.

In our simulation we have roads with traffic in both directions. We need a more
complex solution for the traffic lights. The traffic lights have te be green in the
following sequence.

the lights on the primary lanes turning left

the lights on the primary lanes going straight on and turning right

the lights on the lanes crossing primary road turning left

the lights on the lanes crossing primary road going straight on and turning
right

This control method is implemented in MorevtsMarchingTLC. This class is a
sublcass of
TLController. The method decideTLS implements the actual algo-
rithm. The variable
phase is added in TrafficLight with its accessors getP hase,
setP hase and incrP hase. This wil be used as a counter when the traffic lights
have to switch.

For this method we need a global counter. curCycle of SimModel would be good,
but it is not accessible by a
T LC ontroller. curC ycle is added in T LController
which has the same value as the curC ycle of S imM odel. The curC ycle of the
T LController is updated by S imM odel.

decideT Ls decides which traffic lights should turn green, and which should turn



More intriguing information

1. AGRICULTURAL TRADE LIBERALIZATION UNDER NAFTA: REPORTING ON THE REPORT CARD
2. The name is absent
3. Two-Part Tax Controls for Forest Density and Rotation Time
4. How do investors' expectations drive asset prices?
5. An Investigation of transience upon mothers of primary-aged children and their school
6. Special and Differential Treatment in the WTO Agricultural Negotiations
7. The name is absent
8. WP 48 - Population ageing in the Netherlands: Demographic and financial arguments for a balanced approach
9. Novelty and Reinforcement Learning in the Value System of Developmental Robots
10. The name is absent
11. Legal Minimum Wages and the Wages of Formal and Informal Sector Workers in Costa Rica
12. A Rational Analysis of Alternating Search and Reflection Strategies in Problem Solving
13. THE CHANGING STRUCTURE OF AGRICULTURE
14. EU enlargement and environmental policy
15. Does South Africa Have the Potential and Capacity to Grow at 7 Per Cent?: A Labour Market Perspective
16. The name is absent
17. SME'S SUPPORT AND REGIONAL POLICY IN EU - THE NORTE-LITORAL PORTUGUESE EXPERIENCE
18. The Variable-Rate Decision for Multiple Inputs with Multiple Management Zones
19. The name is absent
20. Tobacco and Alcohol: Complements or Substitutes? - A Statistical Guinea Pig Approach