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. Studies on association of arbuscular mycorrhizal fungi with gluconacetobacter diazotrophicus and its effect on improvement of sorghum bicolor (L.)
2. Response speeds of direct and securitized real estate to shocks in the fundamentals
3. Non-causality in Bivariate Binary Panel Data
4. The economic value of food labels: A lab experiment on safer infant milk formula
5. The resources and strategies that 10-11 year old boys use to construct masculinities in the school setting
6. The name is absent
7. What should educational research do, and how should it do it? A response to “Will a clinical approach make educational research more relevant to practice” by Jacquelien Bulterman-Bos
8. Public Debt Management in Brazil
9. The Response of Ethiopian Grain Markets to Liberalization
10. The name is absent