The name is absent



APPENDIX A. SOURCE CODE

77


A.3 MorevtsSotlPhase

updateT LDs and decideT Ls of the Sotl-phase traffic light controller is given
below.

public void updateTLDs() {

for ( int i = 0; i < tld . length ; i++) {

boolean switched = false ;

for ( int j = 0; j < tld [i ]. length ; j++)

if( tld [i ][j ]. getTL (). getCycleSwitched()==getCurCycle()-1)
switched = true ;

if ( switched) {

if (! tld [i ][0]. getTL (). getNode (). getKeepTLDFlag())

{

tld [i ][0]. getTL (). getNode (). setKeepTLDFlag(true);

tld [i ][0]. getTL (). getNode (). setPhaseMinimal(PHASE_MIN);

for ( int j= 0; j < tld [i ]. length ; j++)

if ( tld [ i ][ j ]. getTL (). getState ())

tld [i ][ j ]. setKappa (0);

}

}

}

}

public TLDecision [][] decideTLs() {

TLDecision currentDec ;

Drivelane curLane;

// adjust data after last cycle

updateTLDs();

for ( int i = 0; i < tld . length ; i++) { // for all nodes
Node currentNode = null ;

for ( int j = 0; j < tld [i ]. length ; j++)

if (currentNode == null ) currentNode= tld [ i ][ j ]. getTL (). getNode ();



More intriguing information

1. Fiscal Sustainability Across Government Tiers
2. The name is absent
3. DURABLE CONSUMPTION AS A STATUS GOOD: A STUDY OF NEOCLASSICAL CASES
4. The name is absent
5. Trade Liberalization, Firm Performance and Labour Market Outcomes in the Developing World: What Can We Learn from Micro-LevelData?
6. Putting Globalization and Concentration in the Agri-food Sector into Context
7. The name is absent
8. The name is absent
9. The name is absent
10. Developmental Robots - A New Paradigm
11. The effect of globalisation on industrial districts in Italy: evidence from the footwear sector
12. The name is absent
13. Robust Econometrics
14. FUTURE TRADE RESEARCH AREAS THAT MATTER TO DEVELOPING COUNTRY POLICYMAKERS
15. Towards Learning Affective Body Gesture
16. The name is absent
17. News Not Noise: Socially Aware Information Filtering
18. Work Rich, Time Poor? Time-Use of Women and Men in Ireland
19. Knowledge and Learning in Complex Urban Renewal Projects; Towards a Process Design
20. The name is absent