The name is absent



CHAPTER 4. CODING PROCESS

24


The traffic light controller is implemented in MorevtsOptimTLC. setInfrastruc-
ture
searches the path from start till finish of the green wave, calculates the phase
differences and sets it in the junctions.
decideTLs is the same as Marching control,
except the phase is calculated for every node.

This traffic light controller is tested with different maps, and everything works
properly.

Sotl-request control keeps a counter kappa which is set to zero when the light
turns red and then incremented at each time step by the number of cars that are
approaching. When
kappa reaches a threshold theta, the light turns green. This
controller is implemented in the class
M orevtsSotlRequest

The code in switchT raf ficLights, which chooses a random sign configuration
if all gains are zero, is removed. When the light is switched, the current cycle is
stored in
Sign: cycleSwitched.

Every time kappa needs to be incremented, countRoadusers(Drivelane) is called,
which counts the number of vehicles within a number of blocks (meters) for a
given lane. This number of blocks is specified by
V ISIBLE.

updateK appa() updates kappa for all inbound lanes of all nodes. When the
traffic light has been switched in the previous cycle,
kappa is set to zero and
the
K eepT LDF lag is set to true. This will keep the current T LDecision until
KeepT LDF lag is set to f alse.

decideT Ls() will decide what the traffic light should do. It first calls updateKappa()
which will reset kappa when needed. Then for all T LDecisions the counter
kappa is updated if the traffic light is red, by adding the count of cars. If kappa
exceeds the threshold theta, the q-value of the TLDecision is set to kappa and
the
K eepT LDF lag is set to f alse which allows switching of the traffic lights.
When
kappa has not reached theta, the Q-value of the T LDecision will be set to



More intriguing information

1. ISSUES AND PROBLEMS OF IMMEDIATE CONCERN
2. Problems of operationalizing the concept of a cost-of-living index
3. Density Estimation and Combination under Model Ambiguity
4. The name is absent
5. A Study of Prospective Ophthalmology Residents’ Career Perceptions
6. The Tangible Contribution of R&D Spending Foreign-Owned Plants to a Host Region: a Plant Level Study of the Irish Manufacturing Sector (1980-1996)
7. Effects of red light and loud noise on the rate at which monkeys sample the sensory environment
8. The name is absent
9. Pricing American-style Derivatives under the Heston Model Dynamics: A Fast Fourier Transformation in the Geske–Johnson Scheme
10. Trade Openness and Volatility
11. Beyond Networks? A brief response to ‘Which networks matter in education governance?’
12. NVESTIGATING LEXICAL ACQUISITION PATTERNS: CONTEXT AND COGNITION
13. Tax systems and tax reforms in Europe: Rationale and open issue for more radical reforms
14. Are Public Investment Efficient in Creating Capital Stocks in Developing Countries?
15. The Shepherd Sinfonia
16. The name is absent
17. The name is absent
18. The name is absent
19. The name is absent
20. The Economic Value of Basin Protection to Improve the Quality and Reliability of Potable Water Supply: Some Evidence from Ecuador